summaryrefslogtreecommitdiff
path: root/liama.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-11-27 07:12:09 +0000
committerCoprDistGit <infra@openeuler.org>2026-11-27 07:12:09 +0000
commitb21e57878258a0ea771ae059eba68eef25274adf (patch)
tree3a0fa4985c36b690297f3fe2e1b5a634e3fb9dd5 /liama.spec
parentbdcfacc5386e4b0078cb6eec82fb6cd209131485 (diff)
automatic import of liamaopeneuler24.03_LTS_SP3
Diffstat (limited to 'liama.spec')
-rw-r--r--liama.spec44
1 files changed, 44 insertions, 0 deletions
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