From bbd2650cf022ddcce9562b11177e4a777bb1412b Mon Sep 17 00:00:00 2001 From: Tim Miller Date: Mon, 19 Jun 2023 18:44:51 +0900 Subject: [PATCH 1/2] Include runtime targets file --- LLama.Examples/LLama.Examples.csproj | 4 ++- LLama.Unittest/LLama.Unittest.csproj | 2 +- LLama.WebAPI/LLama.WebAPI.csproj | 2 +- LLama/LLamaSharp.Runtime.targets | 35 +++++++++++++++++++++++ LLama/LLamaSharp.csproj | 42 ++++++---------------------- 5 files changed, 49 insertions(+), 36 deletions(-) create mode 100644 LLama/LLamaSharp.Runtime.targets diff --git a/LLama.Examples/LLama.Examples.csproj b/LLama.Examples/LLama.Examples.csproj index 5b245f6d..ef7ac437 100644 --- a/LLama.Examples/LLama.Examples.csproj +++ b/LLama.Examples/LLama.Examples.csproj @@ -1,11 +1,13 @@  - + Exe net6.0 enable enable AnyCPU;x64 + + true diff --git a/LLama.Unittest/LLama.Unittest.csproj b/LLama.Unittest/LLama.Unittest.csproj index 1148df7e..93922e81 100644 --- a/LLama.Unittest/LLama.Unittest.csproj +++ b/LLama.Unittest/LLama.Unittest.csproj @@ -1,5 +1,5 @@  - + net6.0 LLama.Unittest diff --git a/LLama.WebAPI/LLama.WebAPI.csproj b/LLama.WebAPI/LLama.WebAPI.csproj index 0af61a96..9227d57f 100644 --- a/LLama.WebAPI/LLama.WebAPI.csproj +++ b/LLama.WebAPI/LLama.WebAPI.csproj @@ -1,5 +1,5 @@ - + net6.0 enable diff --git a/LLama/LLamaSharp.Runtime.targets b/LLama/LLamaSharp.Runtime.targets new file mode 100644 index 00000000..2c166bb3 --- /dev/null +++ b/LLama/LLamaSharp.Runtime.targets @@ -0,0 +1,35 @@ + + + true + + + + PreserveNewest + libllama.dll + + + PreserveNewest + libllama-cuda11.dll + + + PreserveNewest + libllama-cuda12.dll + + + PreserveNewest + libllama.so + + + PreserveNewest + libllama-cuda11.so + + + PreserveNewest + libllama-cuda12.so + + + PreserveNewest + libllama.dylib + + + \ No newline at end of file diff --git a/LLama/LLamaSharp.csproj b/LLama/LLamaSharp.csproj index f7e3a53b..e4d4db54 100644 --- a/LLama/LLamaSharp.csproj +++ b/LLama/LLamaSharp.csproj @@ -1,5 +1,4 @@  - netstandard2.0;net6.0;net7.0 LLama @@ -18,10 +17,12 @@ https://avatars3.githubusercontent.com/u/44989469?s=200&v=4 LLama, LLM, GPT, ChatGPT, NLP, AI, Chat Bot, SciSharp - 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. - 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. MIT packages @@ -46,34 +47,9 @@ - - PreserveNewest - libllama.dll - - - PreserveNewest - libllama-cuda11.dll - - - PreserveNewest - libllama-cuda12.dll - - - PreserveNewest - libllama.so - - - PreserveNewest - libllama-cuda11.so + + true + build - - PreserveNewest - libllama-cuda12.so - - - PreserveNewest - libllama.dylib - - - - + + \ No newline at end of file From 49f664646ed83bb6e7049daba2cbb857d9fbaa4c Mon Sep 17 00:00:00 2001 From: Tim Miller Date: Mon, 19 Jun 2023 18:54:38 +0900 Subject: [PATCH 2/2] Remove packaging targets file --- LLama/LLamaSharp.csproj | 6 ------ 1 file changed, 6 deletions(-) diff --git a/LLama/LLamaSharp.csproj b/LLama/LLamaSharp.csproj index e4d4db54..8d860a0e 100644 --- a/LLama/LLamaSharp.csproj +++ b/LLama/LLamaSharp.csproj @@ -46,10 +46,4 @@ - - - true - build - - \ No newline at end of file