From 1c1f0f3551767b14e132be4832d6e34f2e115542 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 6 Nov 2024 12:53:48 +0000 Subject: automatic import of llama.cpp --- .gitignore | 1 + llama.cpp.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 65 insertions(+) create mode 100644 llama.cpp.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..2892dee 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/b4013.tar.gz diff --git a/llama.cpp.spec b/llama.cpp.spec new file mode 100644 index 0000000..7c77318 --- /dev/null +++ b/llama.cpp.spec @@ -0,0 +1,63 @@ +%define debug_package %{nil} +%global llama_commitid b4013 + +Name: llama.cpp +Version: 20241102 +Release: 2 +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 + + +BuildRequires: gcc,gcc-c++,cmake + +%description +Port of English lagre model LLaMA implemented based on C/C++, +it can be used for model dialogue based on local laptops. + +%prep +%autosetup -b 0 -n %{name}-%{llama_commitid} -p1 + +%build +mkdir llama_builddir +pushd llama_builddir +cmake .. +%make_build +popd + +%install +pushd llama_builddir +%make_install +#mv %{buildroot}%{_prefix}/local/bin/main %{buildroot}%{_prefix}/local/bin/llama_cpp_main +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} +mv %{buildroot}%{_prefix}/lib/pkgconfig/llama.pc %{buildroot}%{_prefix} +popd + +%files +%{_bindir}/* +%{_includedir}/* +%{_libdir}/* +%{_prefix}/llama.pc + +%changelog +* Wed Aug 28 2024 zhoupengcheng - 20240531-2 +- fix CVE-2024-42477,CVE-2024-42478,CVE-2024-42479.patch,CVE-2024-41130 + +* Fri Jun 21 2024 zhoupengcheng - 20240531-1 +- update llama.cpp to b3051 + +* Tue May 14 2024 wangshuo - 20230815-4 +- add loongarch64 support + +* Wed Sep 20 2023 zhoupengcheng - 20230815-3 +- rename /usr/bin/convert.py +- update long-term yum.repo in dockerfile + +* Tue Sep 19 2023 zhoupengcheng - 20230815-2 +- add dockerfile + +* Wed Aug 16 2023 zhoupengcheng - 20230815-1 +- Init package diff --git a/sources b/sources new file mode 100644 index 0000000..deb6250 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +46374e9ef178e9163f0200ed7fe20343 b4013.tar.gz -- cgit v1.2.3