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.9 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  11. </PropertyGroup>
  12. <ItemGroup>
  13. <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
  14. <PackageReference Include="System.Linq.Async" Version="6.0.1" />
  15. <PackageReference Include="xunit" Version="2.6.3" />
  16. <PackageReference Include="xunit.runner.visualstudio" Version="2.5.5">
  17. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  18. <PrivateAssets>all</PrivateAssets>
  19. </PackageReference>
  20. <PackageReference Include="coverlet.collector" Version="6.0.0">
  21. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  22. <PrivateAssets>all</PrivateAssets>
  23. </PackageReference>
  24. </ItemGroup>
  25. <Target Name="DownloadContentFiles" BeforeTargets="Build">
  26. <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">
  27. </DownloadFile>
  28. </Target>
  29. <ItemGroup>
  30. <ProjectReference Include="..\LLama.SemanticKernel\LLamaSharp.SemanticKernel.csproj" />
  31. <ProjectReference Include="..\LLama\LLamaSharp.csproj" />
  32. </ItemGroup>
  33. <ItemGroup>
  34. <Folder Include="Models\" />
  35. </ItemGroup>
  36. <ItemGroup>
  37. <None Update="Models\llama-2-7b-chat.Q4_0.gguf">
  38. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  39. </None>
  40. </ItemGroup>
  41. </Project>