public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/llama-cpp] rawhide: Update to b12651
@ 2026-11-30 18:10 Tom Rix
  0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-11-30 18:10 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/llama-cpp
            Branch : rawhide
            Commit : 6531de0f3b881960b27d43f0f7b546e9f74e41b9
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-11-30T10:09:52-08:00
            Stats  : +107/-142 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/llama-cpp/c/6531de0f3b881960b27d43f0f7b546e9f74e41b9?branch=rawhide

            Log:
            Update to b12651

Signed-off-by: Tom Rix <Tom.Rix@amd.com>

---
diff --git a/.gitignore b/.gitignore
index a55c87a..e039b2a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@
 /llama.cpp-b10353.tar.gz
 /llama.cpp-b10630.tar.gz
 /llama.cpp-b11232.tar.gz
+/llama.cpp-b12651.tar.gz

diff --git a/llama-cpp.spec b/llama-cpp.spec
index a049867..f336dd9 100644
--- a/llama-cpp.spec
+++ b/llama-cpp.spec
@@ -1,59 +1,28 @@
-# For the extra python package gguf that comes with llama-cpp
-%global pypi_name gguf
-%global pypi_version 0.10.0
-
-# Some optional subpackages
-%bcond_with examples
-%if %{with examples}
-%global build_examples ON
-%else
-%global build_examples OFF
-%endif
-
-%bcond_with test
-%if %{with test}
+# run the test suite at build time
+%bcond_with check
+# build the test binaries only when the test suite runs
+%if %{with check}
 %global build_test ON
 %else
 %global build_test OFF
 %endif
 
-%bcond_with check
-
-Summary:        Port of Facebook's LLaMA model in C/C++
-Name:           llama-cpp
-
-# Licensecheck reports
-#
-# *No copyright* The Unlicense
-# ----------------------------
-# common/base64.hpp
-# common/stb_image.h
-# These are public domain
-#
-# MIT License
-# -----------
-# LICENSE
-# ...
-# This is the main license
-
-License:        MIT AND Apache-2.0 AND LicenseRef-Fedora-Public-Domain
-Version:        b11232
-Release:        %autorelease
-
-URL:            https://github.com/ggerganov/llama.cpp
-Source0:        %{url}/archive/%{version}.tar.gz#/llama.cpp-%{version}.tar.gz
-
-# aarch64 needs a maintainer
-ExclusiveArch:  x86_64 aarch64
+# use dispatch, dl feature to dynamically pick backend
+%bcond_with dl_backend
+%if %{with dl_backend}
+%global build_dl ON
+%global ggml_backend_dir %{_libdir}/ggml
+%else
+%global build_dl OFF
+%endif
 
 %ifarch x86_64
 %bcond_without rocm
 %else
 %bcond_with rocm
 %endif
-# broken on stx halo b9781
 # Needs a maintainer
-%bcond_with vulkan
+%bcond_without vulkan
 
 %if %{with rocm}
 %global build_hip ON
@@ -70,7 +39,7 @@ ExclusiveArch:  x86_64 aarch64
 #  759 |     asm volatile("v_dot2_f32_f16 %0, %1, %2, %0" : "+v"(acc) : "v"(v), "v"(u));
 #
 # need our own gpu list, without gfx1250
-%global rocm_gpu_list "gfx9-generic;gfx942;gfx950;gfx10-1-generic;gfx10-3-generic;gfx1100;gfx1101;gfx1102;gfx1103;gfx1150;gfx1151;gfx1152;gfx1153;gfx1200;gfx1201"
+%global rocm_gpu_list "gfx9-generic;gfx942;gfx950;gfx10-1-generic;gfx10-3-generic;gfx1100;gfx1101;gfx1102;gfx1103;gfx1150;gfx1151;gfx1152;gfx1153;gfx1170;gfx1171;gfx1200;gfx1201"
 
 %if %{with vulkan}
 %global build_vulkan ON
@@ -78,6 +47,34 @@ ExclusiveArch:  x86_64 aarch64
 %global build_vulkan OFF
 %endif
 
+Name:           llama-cpp
+Summary:        Port of Facebook's LLaMA model in C/C++
+
+
+# Licensecheck reports
+#
+# *No copyright* The Unlicense
+# ----------------------------
+# common/base64.hpp
+# common/stb_image.h
+# These are public domain
+#
+# MIT License
+# -----------
+# LICENSE
+# ...
+# This is the main license
+
+License:        MIT AND Apache-2.0 AND LicenseRef-Fedora-Public-Domain
+Version:        b12651
+Release:        %autorelease
+
+URL:            https://github.com/ggml-org/llama.cpp
+Source0:        %{url}/archive/%{version}.tar.gz#/llama.cpp-%{version}.tar.gz
+
+# aarch64 needs a maintainer
+ExclusiveArch:  x86_64 aarch64
+
 BuildRequires:  cmake
 BuildRequires:  curl
 BuildRequires:  git
@@ -87,27 +84,24 @@ BuildRequires:  langpacks-en
 # above are packages in .github/workflows/server.yml
 BuildRequires:  libcurl-devel
 BuildRequires:  gcc-c++
-BuildRequires:  openmpi
 
 %if %{with check}
 BuildRequires:  python3-devel
 BuildRequires:  python3dist(jinja2)
-%endif
-
-%if %{with examples}
-BuildRequires:  python3-devel
-BuildRequires:  python3dist(pip)
-BuildRequires:  python3dist(poetry)
+BuildRequires:  python3dist(numpy)
+BuildRequires:  python3dist(safetensors)
+BuildRequires:  python3dist(torch)
+BuildRequires:  python3dist(transformers)
 %endif
 
 %if %{with rocm}
 BuildRequires:  hipblas-devel
+BuildRequires:  rocblas-devel
 BuildRequires:  rocm-comgr-devel
 BuildRequires:  rocm-hip-devel
-BuildRequires:  rocblas-devel
-BuildRequires:  hipblas-devel
 BuildRequires:  rocm-runtime-devel
 BuildRequires:  rocm-rpm-macros
+BuildRequires:  rocminfo
 
 Requires:       hipblas
 Requires:       rocblas
@@ -162,35 +156,14 @@ contributions. This project is mainly for educational purposes and
 serves as the main playground for developing new features for the
 ggml library.
 
-%if %{with test}
-%package test
-Summary:        Tests for %{name}
-Requires:       %{name}%{?_isa} = %{version}-%{release}
-
-%description test
-%{summary}
-%endif
-
-%if %{with examples}
-%package examples
-Summary:        Examples for %{name}
-Requires:       %{name}%{?_isa} = %{version}-%{release}
-Requires:       python3dist(numpy)
-Requires:       python3dist(torch)
-Requires:       python3dist(sentencepiece)
-
-%description examples
-%{summary}
-%endif
-
 %prep
 %autosetup -p1 -n llama.cpp-%{version}
 
 # gcc 15 include cstdint
 sed -i '/#include <vector.*/a#include <cstdint>' src/llama-mmap.h
  
-# no android needed
-rm -rf exmples/llma.android
+# prebuilt web ui
+rm -rf ui/apps/chat/dist
 # git cruft
 find . -name '.gitignore' -exec rm -rf {} \;
 
@@ -206,68 +179,68 @@ sed -i -e 's@add_library(${TARGET}@add_library(${TARGET} STATIC @' tools/server/
 
 %build
 
-%if %{with examples}
-cd %{_vpath_srcdir}/gguf-py
-%pyproject_wheel
-cd -
-%endif
-
 %if %{with rocm}
 export HIPCC_COMPILE_FLAGS_APPEND="--offload-compress"
+
+%if %{with check}
+# Building all the gpu's does not make sense
+# Build only the first one
+gpu=`rocm_agent_enumerator | head -n 1`
+%endif
+
 %endif
 
 %cmake \
     -DCMAKE_INSTALL_LIBDIR=%{_lib} \
     -DCMAKE_SKIP_RPATH=ON \
-    -DGGML_AVX=OFF \
-    -DGGML_AVX2=OFF \
-    -DGGML_AVX512=OFF \
-    -DGGML_AVX512_VBMI=OFF \
-    -DGGML_AVX512_VNNI=OFF \
-    -DGGML_FMA=OFF \
-    -DGGML_F16C=OFF \
+    -DGGML_AMX_TILE=%{build_dl} \
+    -DGGML_AMX_INT8=%{build_dl} \
+    -DGGML_AMX_BF16=%{build_dl} \
+    -DGGML_AVX=%{build_dl} \
+    -DGGML_AVX_VNNI=%{build_dl} \
+    -DGGML_AVX2=%{build_dl} \
+    -DGGML_AVX512=%{build_dl} \
+    -DGGML_AVX512_BF16=%{build_dl} \
+    -DGGML_AVX512_VBMI=%{build_dl} \
+    -DGGML_AVX512_VNNI=%{build_dl} \
+    -DGGML_BACKEND_DIR=%{?ggml_backend_dir} \
+    -DGGML_BACKEND_DL=%{build_dl} \
+    -DGGML_CPU_ALL_VARIANTS=%{build_dl} \
+    -DGGML_BMI2=%{build_dl} \
+    -DGGML_F16C=%{build_dl} \
+    -DGGML_FMA=%{build_dl} \
     -DGGML_HIP=%{build_hip} \
+    -DGGML_OPENMP=OFF \
     -DGGML_VULKAN=%{build_vulkan} \
+%if %{with check}
+    -DGPU_TARGETS=${gpu} \
+%else
     -DGPU_TARGETS=%{rocm_gpu_list} \
-    -DLLAMA_BUILD_EXAMPLES=%{build_examples} \
+%endif
+    -DLLAMA_BUILD_EXAMPLES=OFF \
     -DLLAMA_BUILD_IS_DEV=OFF \
-    -DLLAMA_BUILD_TESTS=%{build_test}
+    -DLLAMA_BUILD_TESTS=%{build_test} \
+    -DLLAMA_BUILD_UI=OFF \
+    -DLLAMA_CONNECT=OFF \
+    -DLLAMA_USE_PREBUILT_UI=OFF
 
 %cmake_build
 
 %install
-%if %{with examples}
-cd %{_vpath_srcdir}/gguf-py
-%pyproject_install
-cd -
-%endif
-
 %cmake_install
 
 rm -rf %{buildroot}%{_libdir}/libggml_shared.*
 
-%if %{with examples}
-mkdir -p %{buildroot}%{_datarootdir}/%{name}
-cp -r %{_vpath_srcdir}/examples %{buildroot}%{_datarootdir}/%{name}/
-cp -r %{_vpath_srcdir}/models %{buildroot}%{_datarootdir}/%{name}/
-cp -r %{_vpath_srcdir}/README.md %{buildroot}%{_datarootdir}/%{name}/
-rm -rf %{buildroot}%{_datarootdir}/%{name}/examples/llama.android
-%endif
-
 # Static libraries are used in build, do not package them
 rm -rf %{buildroot}%{_libdir}/lib*.a
 
-%if %{with test}
+# check is transitory: the test binaries are for ctest only
+rm -rf %{buildroot}%{_bindir}/test-*
+
 %if %{with check}
 %check
-# cpu results
-#   16 - test-tokenizers-ggml-vocabs (Failed)              main
-# rocm 10.0 gfx1100 results
-#   16 - test-tokenizers-ggml-vocabs (Failed)              main
-export LD_LIBRARY_PATH=$PWD/%{_vpath_builddir}/bin
 %ctest
 %endif
-%endif
 
 %files
 %license LICENSE
@@ -276,20 +249,11 @@ export LD_LIBRARY_PATH=$PWD/%{_vpath_builddir}/bin
 %{_libdir}/libmtmd.so.*
 %{_libdir}/libggml.so.*
 %{_libdir}/libggml-base.so.*
-%{_libdir}/libggml-cpu.so.*
-%if %{with rocm}
-%{_libdir}/libggml-hip.so.*
-%endif
-%if %{with vulkan}
-%{_libdir}/libggml-vulkan.so.*
-%endif
 %{_bindir}/llama
 %{_bindir}/llama-batched-bench
 %{_bindir}/llama-bench
 %{_bindir}/llama-cli
 %{_bindir}/llama-completion
-%{_bindir}/llama-cvector-generator
-%{_bindir}/llama-export-lora
 %{_bindir}/llama-fit-params
 %{_bindir}/llama-gguf-split
 %{_bindir}/llama-imatrix
@@ -300,6 +264,19 @@ export LD_LIBRARY_PATH=$PWD/%{_vpath_builddir}/bin
 %{_bindir}/llama-server
 %{_bindir}/llama-tokenize
 %{_bindir}/llama-tts
+%if %{with dl_backend}
+%dir %{_libdir}/ggml
+%else
+%{_bindir}/llama-cvector-generator
+%{_bindir}/llama-export-lora
+%{_libdir}/libggml-cpu.so.*
+%if %{with rocm}
+%{_libdir}/libggml-hip.so.*
+%endif
+%if %{with vulkan}
+%{_libdir}/libggml-vulkan.so.*
+%endif
+%endif
 
 %files devel
 %dir %{_libdir}/cmake/llama
@@ -314,6 +291,12 @@ export LD_LIBRARY_PATH=$PWD/%{_vpath_builddir}/bin
 %{_libdir}/libmtmd.so
 %{_libdir}/libggml.so
 %{_libdir}/libggml-base.so
+%{_libdir}/cmake/llama/*.cmake
+%{_libdir}/cmake/ggml/*.cmake
+%{_libdir}/pkgconfig/llama.pc
+%if %{with dl_backend}
+%{_libdir}/ggml/libggml-*.so
+%else
 %{_libdir}/libggml-cpu.so
 %if %{with rocm}
 %{_libdir}/libggml-hip.so
@@ -321,25 +304,6 @@ export LD_LIBRARY_PATH=$PWD/%{_vpath_builddir}/bin
 %if %{with vulkan}
 %{_libdir}/libggml-vulkan.so
 %endif
-%{_libdir}/cmake/llama/*.cmake
-%{_libdir}/cmake/ggml/*.cmake
-%{_libdir}/pkgconfig/llama.pc
-
-%if %{with test}
-%files test
-%{_bindir}/test-*
-%endif
-
-%if %{with examples}
-%files examples
-%{_bindir}/convert_hf_to_gguf.py
-%{_bindir}/gguf-*
-%{_bindir}/llama-*
-%{_datarootdir}/%{name}/
-%{_libdir}/libllava_shared.so
-%{python3_sitelib}/%{pypi_name}
-%{python3_sitelib}/%{pypi_name}*.dist-info
-%{python3_sitelib}/scripts
 %endif
 
 %changelog

diff --git a/sources b/sources
index a6e0993..0b288ae 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (llama.cpp-b11232.tar.gz) = 639744a78b6832fee8b1c4fe3009f4b7df1945718765e6ac84f577b3907894613f13f620c8f2224dc6b13cfc1fab0e1dea0b464191fd1f721a176d6fbe92f69f
+SHA512 (llama.cpp-b12651.tar.gz) = 82495b47def992224b9474020e930ce6b7227fa20c6cf03c5377c5046dedc3b9473c8f3e70c3f2470ae6ea241340b683d0ed6df24ad2a438e6c4e69bffeb1522

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 18:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 18:10 [rpms/llama-cpp] rawhide: Update to b12651 Tom Rix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox