diff --git a/add-loongarch64-support.patch b/add-loongarch64-support.patch deleted file mode 100644 index c9ec16211ae15b970f4348751185bdf1f704fd06..0000000000000000000000000000000000000000 --- a/add-loongarch64-support.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/ggml.c b/ggml.c -index beb7f46..2374287 100644 ---- a/ggml.c -+++ b/ggml.c -@@ -299,7 +299,7 @@ typedef double ggml_float; - #if defined(_MSC_VER) || defined(__MINGW32__) - #include - #else --#if !defined(__riscv) -+#if !defined(__riscv) && !defined(__loongarch64) - #include - #endif - #endif -diff --git a/k_quants.c b/k_quants.c -index 6348fce..6816121 100644 ---- a/k_quants.c -+++ b/k_quants.c -@@ -26,7 +26,7 @@ - #if defined(_MSC_VER) || defined(__MINGW32__) - #include - #else --#if !defined(__riscv) -+#if !defined(__riscv) && !defined(__loongarch64) - #include - #endif - #endif diff --git a/b3051.tar.gz b/b3051.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..ca082bffd0b3e02374b3b3d4412b47d17bc25d5a Binary files /dev/null and b/b3051.tar.gz differ diff --git a/llama.cpp.spec b/llama.cpp.spec index 19552ecbbab08e47308ead4de885eb5238ea174c..7e114f6d4c313aaa08a72dbc924aebd7a8bc8216 100644 --- a/llama.cpp.spec +++ b/llama.cpp.spec @@ -1,15 +1,14 @@ %define debug_package %{nil} -%global llama_commitid master-3ebb009 +%global llama_commitid b3051 Name: llama.cpp -Version: 20230815 -Release: 4 +Version: 20240531 +Release: 1 License: MIT Summary: Port of English lagre model LLaMA implemented based on C/C++ URL: https://github.com/ggerganov/llama.cpp Source0: https://github.com/ggerganov/llama.cpp/archive/refs/tags/%{llama_commitid}.tar.gz -Patch0: add-loongarch64-support.patch BuildRequires: gcc,gcc-c++,cmake @@ -31,15 +30,19 @@ popd pushd llama_builddir %make_install mv %{buildroot}%{_prefix}/local/bin/main %{buildroot}%{_prefix}/local/bin/llama_cpp_main -mv %{buildroot}%{_prefix}/local/bin/convert.py %{buildroot}%{_prefix}/local/bin/llama_convert.py +mv %{buildroot}%{_prefix}/local/bin/convert-hf-to-gguf.py %{buildroot}%{_prefix}/local/bin/llama_convert-hf-to-gguf.py mv %{buildroot}%{_prefix}/local/* %{buildroot}%{_prefix} popd %files %{_bindir}/* -%{_libdir}/libembdinput.a +%{_includedir}/* +%{_libdir}/* %changelog +* Fri Jun 21 2024 zhoupengcheng - 20240531-1 +- update llama.cpp to b3051 + * Tue May 14 2024 wangshuo - 20230815-4 - add loongarch64 support diff --git a/master-3ebb009.tar.gz b/master-3ebb009.tar.gz deleted file mode 100644 index 356831c48e7b03dea92a6d97b2f5c5b9d5d1c257..0000000000000000000000000000000000000000 Binary files a/master-3ebb009.tar.gz and /dev/null differ