blob: b50b03c420aacb5dea67e0b816e74b0097173a98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
|