summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--liama.spec44
-rw-r--r--sources1
3 files changed, 46 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ab33cc6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/liama-1.0.0.tar.gz
diff --git a/liama.spec b/liama.spec
new file mode 100644
index 0000000..b50b03c
--- /dev/null
+++ b/liama.spec
@@ -0,0 +1,44 @@
+Name: liama
+Version: 1.0.0
+Release: 1%{?dist}
+Summary: Kunpeng CPU optimization patch collection and tooling for llama.cpp
+License: Apache-2.0 AND CC-BY-4.0
+URL: https://gitcode.com/boostkit/llama-CPP
+Source0: https://gitcode.com/boostkit/llama-CPP/archive/v1.0.0/liama-1.0.0.tar.gz
+
+BuildArch: noarch
+
+%description
+liama (llama-CPP) is the Kunpeng BoostKit CPU optimization patch collection for
+the upstream llama.cpp inference engine. It focuses on the CPU backend
+(AArch64 NEON / SVE-256 / i8mm) matrix-multiplication and fused SDPA attention
+kernels for the FP16/FP32/Q8_0 data types, together with several functional
+fixes, targeting upstream llama.cpp at commit 3ac67535c86.
+
+This package ships the optimization patch set, the accompanying evaluation and
+benchmark scripts (bench_bgem3_full.py, eval_llamacpp_cmteb.py) and the project
+documentation. The patches are applied to a matching llama.cpp checkout which
+is then built following the bundled quick-start guide; no binaries are produced
+by this package.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%build
+# liama is a patch/documentation collection for llama.cpp; nothing to compile.
+
+%install
+mkdir -p %{buildroot}%{_datadir}/%{name}/patch
+install -m 0644 patch/*.patch %{buildroot}%{_datadir}/%{name}/patch/
+install -m 0755 bench_bgem3_full.py %{buildroot}%{_datadir}/%{name}/
+install -m 0755 eval_llamacpp_cmteb.py %{buildroot}%{_datadir}/%{name}/
+cp -r docs %{buildroot}%{_datadir}/%{name}/docs
+
+%files
+%license LICENSE CC-BY
+%doc README.md README_en.md
+%{_datadir}/%{name}
+
+%changelog
+* Fri Nov 27 2026 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..3eee0a3
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+84cb7924e34a02da12b7d9544b46191c liama-1.0.0.tar.gz