49 lines
1.8 KiB
XML
49 lines
1.8 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<Import Project="..\LLama\LLamaSharp.Runtime.targets" />
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<RootNamespace>LLama.Unittest</RootNamespace>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Platforms>AnyCPU;x64</Platforms>
|
|
<Nullable>enable</Nullable>
|
|
|
|
<IsPackable>false</IsPackable>
|
|
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
|
|
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
|
|
<PackageReference Include="xunit" Version="2.6.3" />
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.5">
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="coverlet.collector" Version="6.0.0">
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
</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>
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\LLama.SemanticKernel\LLamaSharp.SemanticKernel.csproj" />
|
|
<ProjectReference Include="..\LLama\LLamaSharp.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Folder Include="Models\" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Update="Models\llama-2-7b-chat.Q4_0.gguf">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
</Project>
|