Remove native libraries from LLama.csproj and replace it with a targets file.tags/v0.4.1-preview
| @@ -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,7 +17,8 @@ | |||||
| <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.1 followed up the master branch of llama.cpp. (commit id: aacdbd4) | LLamaSharp 0.4.1 followed up the master branch of llama.cpp. (commit id: aacdbd4) | ||||
| @@ -46,35 +46,4 @@ | |||||
| <PackageReference Include="System.Text.Json" Version="6.0.0" /> | <PackageReference Include="System.Text.Json" Version="6.0.0" /> | ||||
| </ItemGroup> | </ItemGroup> | ||||
| <ItemGroup> | |||||
| <None Include="runtimes/libllama.dll"> | |||||
| <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
| <Link>libllama.dll</Link> | |||||
| </None> | |||||
| <None Include="runtimes/libllama-cuda11.dll"> | |||||
| <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
| <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> | |||||
| </Project> | |||||