Skip to content

Commit

Permalink
Merge pull request #496 from martindevans/smaller_unit_test_model
Browse files Browse the repository at this point in the history
Smaller Unit Test Model
  • Loading branch information
martindevans authored Feb 7, 2024
2 parents ac7faa0 + 418345c commit 5d80a56
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
name: Test
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 2
fail-fast: false
matrix:
build: [linux-release, windows-release, osx-release]
Expand Down
2 changes: 1 addition & 1 deletion LLama.Unittest/BasicTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void AdvancedModelProperties()
{ "general.name", "LLaMA v2" },
{ "general.architecture", "llama" },
{ "general.quantization_version", "2" },
{ "general.file_type", "2" },
{ "general.file_type", "11" },

{ "llama.context_length", "4096" },
{ "llama.rope.dimension_count", "128" },
Expand Down
2 changes: 1 addition & 1 deletion LLama.Unittest/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{
internal static class Constants
{
public static string ModelPath = "Models/llama-2-7b-chat.Q4_0.gguf";
public static string ModelPath = "Models/llama-2-7b-chat.Q3_K_S.gguf";
}
}
4 changes: 2 additions & 2 deletions LLama.Unittest/LLama.Unittest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</ItemGroup>

<Target Name="DownloadContentFiles" BeforeTargets="Build">
<DownloadFile SourceUrl="https://huggingface.co/TheBloke/Llama-2-7b-Chat-GGUF/resolve/main/llama-2-7b-chat.Q4_0.gguf" DestinationFolder="Models" DestinationFileName="llama-2-7b-chat.Q4_0.gguf" SkipUnchangedFiles="true">
<DownloadFile SourceUrl="https://huggingface.co/TheBloke/Llama-2-7b-Chat-GGUF/resolve/main/llama-2-7b-chat.Q3_K_S.gguf" DestinationFolder="Models" DestinationFileName="llama-2-7b-chat.Q3_K_S.gguf" SkipUnchangedFiles="true">
</DownloadFile>
</Target>

Expand All @@ -41,7 +41,7 @@
</ItemGroup>

<ItemGroup>
<None Update="Models\llama-2-7b-chat.Q4_0.gguf">
<None Update="Models\llama-2-7b-chat.Q3_K_S.gguf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
Expand Down

0 comments on commit 5d80a56

Please sign in to comment.