You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

LLama.Unittest.csproj 1.7 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <Import Project="..\LLama\LLamaSharp.Runtime.targets" />
  3. <PropertyGroup>
  4. <TargetFramework>net6.0</TargetFramework>
  5. <RootNamespace>LLama.Unittest</RootNamespace>
  6. <ImplicitUsings>enable</ImplicitUsings>
  7. <Platforms>AnyCPU;x64</Platforms>
  8. <Nullable>enable</Nullable>
  9. <IsPackable>false</IsPackable>
  10. </PropertyGroup>
  11. <ItemGroup>
  12. <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
  13. <PackageReference Include="xunit" Version="2.4.2" />
  14. <PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
  15. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  16. <PrivateAssets>all</PrivateAssets>
  17. </PackageReference>
  18. <PackageReference Include="coverlet.collector" Version="3.1.2">
  19. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  20. <PrivateAssets>all</PrivateAssets>
  21. </PackageReference>
  22. </ItemGroup>
  23. <Target Name="DownloadContentFiles" BeforeTargets="Build">
  24. <DownloadFile SourceUrl="https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/resolve/main/llama-2-7b-chat.ggmlv3.q3_K_S.bin" DestinationFolder="Models" DestinationFileName="llama-2-7b-chat.ggmlv3.q3_K_S.bin" SkipUnchangedFiles="true">
  25. </DownloadFile>
  26. </Target>
  27. <ItemGroup>
  28. <ProjectReference Include="..\LLama\LLamaSharp.csproj" />
  29. </ItemGroup>
  30. <ItemGroup>
  31. <Folder Include="Models\" />
  32. </ItemGroup>
  33. <ItemGroup>
  34. <None Update="Models\llama-2-7b-chat.ggmlv3.q3_K_S.bin">
  35. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  36. </None>
  37. </ItemGroup>
  38. </Project>