Include runtime targets file
This commit is contained in:
parent
08e668a313
commit
bbd2650cf0
|
@ -1,11 +1,13 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
<Import Project="..\LLama\LLamaSharp.Runtime.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<Platforms>AnyCPU;x64</Platforms>
|
<Platforms>AnyCPU;x64</Platforms>
|
||||||
|
<!-- Set IncludeBuiltInRuntimes to false to include your own runtime libraries and not link the defaults -->
|
||||||
|
<IncludeBuiltInRuntimes>true</IncludeBuiltInRuntimes>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
<Import Project="..\LLama\LLamaSharp.Runtime.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<RootNamespace>LLama.Unittest</RootNamespace>
|
<RootNamespace>LLama.Unittest</RootNamespace>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
<Import Project="..\LLama\LLamaSharp.Runtime.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<IncludeBuiltInRuntimes Condition="'$(IncludeBuiltInRuntimes)' == ''">true</IncludeBuiltInRuntimes>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup Condition="'$(IncludeBuiltInRuntimes)' == 'true'">
|
||||||
|
<None Include="$(MSBuildThisFileDirectory)runtimes/libllama.dll">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
<Link>libllama.dll</Link>
|
||||||
|
</None>
|
||||||
|
<None Include="$(MSBuildThisFileDirectory)runtimes/libllama-cuda11.dll">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
<Link>libllama-cuda11.dll</Link>
|
||||||
|
</None>
|
||||||
|
<None Include="$(MSBuildThisFileDirectory)runtimes/libllama-cuda12.dll">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
<Link>libllama-cuda12.dll</Link>
|
||||||
|
</None>
|
||||||
|
<None Include="$(MSBuildThisFileDirectory)runtimes/libllama.so">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
<Link>libllama.so</Link>
|
||||||
|
</None>
|
||||||
|
<None Include="$(MSBuildThisFileDirectory)runtimes/libllama-cuda11.so">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
<Link>libllama-cuda11.so</Link>
|
||||||
|
</None>
|
||||||
|
<None Include="$(MSBuildThisFileDirectory)runtimes/libllama-cuda12.so">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
<Link>libllama-cuda12.so</Link>
|
||||||
|
</None>
|
||||||
|
<None Include="$(MSBuildThisFileDirectory)runtimes/libllama.dylib">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
<Link>libllama.dylib</Link>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
|
@ -1,5 +1,4 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks>
|
||||||
<RootNamespace>LLama</RootNamespace>
|
<RootNamespace>LLama</RootNamespace>
|
||||||
|
@ -18,10 +17,12 @@
|
||||||
<PackageIconUrl>https://avatars3.githubusercontent.com/u/44989469?s=200&v=4</PackageIconUrl>
|
<PackageIconUrl>https://avatars3.githubusercontent.com/u/44989469?s=200&v=4</PackageIconUrl>
|
||||||
<PackageTags>LLama, LLM, GPT, ChatGPT, NLP, AI, Chat Bot, SciSharp</PackageTags>
|
<PackageTags>LLama, LLM, GPT, ChatGPT, NLP, AI, Chat Bot, SciSharp</PackageTags>
|
||||||
<Description>
|
<Description>
|
||||||
The .NET binding of LLama.cpp, providing APIs to run the model and deploy it on Web. For model weights to run, please go to https://github.com/SciSharp/LLamaSharp for more information.
|
The .NET binding of LLama.cpp, providing APIs to run the model and deploy it on Web. For model
|
||||||
|
weights to run, please go to https://github.com/SciSharp/LLamaSharp for more information.
|
||||||
</Description>
|
</Description>
|
||||||
<PackageReleaseNotes>
|
<PackageReleaseNotes>
|
||||||
LLamaSharp 0.4.0 supports better APIs than v0.3.0. Note that many break changes were made in this version. APIs of v0.3.0 were moved to LLama.Old namespace.
|
LLamaSharp 0.4.0 supports better APIs than v0.3.0. Note that many break changes were made in
|
||||||
|
this version. APIs of v0.3.0 were moved to LLama.Old namespace.
|
||||||
</PackageReleaseNotes>
|
</PackageReleaseNotes>
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
<PackageOutputPath>packages</PackageOutputPath>
|
<PackageOutputPath>packages</PackageOutputPath>
|
||||||
|
@ -46,34 +47,9 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="runtimes/libllama.dll">
|
<None Include="LLamaSharp.Runtime.targets">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<Pack>true</Pack>
|
||||||
<Link>libllama.dll</Link>
|
<PackagePath>build</PackagePath>
|
||||||
</None>
|
</None>
|
||||||
<None Include="runtimes/libllama-cuda11.dll">
|
</ItemGroup>
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
</Project>
|
||||||
<Link>libllama-cuda11.dll</Link>
|
|
||||||
</None>
|
|
||||||
<None Include="runtimes/libllama-cuda12.dll">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
<Link>libllama-cuda12.dll</Link>
|
|
||||||
</None>
|
|
||||||
<None Include="runtimes/libllama.so">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
<Link>libllama.so</Link>
|
|
||||||
</None>
|
|
||||||
<None Include="runtimes/libllama-cuda11.so">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
<Link>libllama-cuda11.so</Link>
|
|
||||||
</None>
|
|
||||||
<None Include="runtimes/libllama-cuda12.so">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
<Link>libllama-cuda12.so</Link>
|
|
||||||
</None>
|
|
||||||
<None Include="runtimes/libllama.dylib">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
<Link>libllama.dylib</Link>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
Loading…
Reference in New Issue