]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml-cpu : split arch-specific implementations (llama/13892)
authorxctan <redacted>
Mon, 9 Jun 2025 14:47:13 +0000 (22:47 +0800)
committerGeorgi Gerganov <redacted>
Tue, 10 Jun 2025 06:59:25 +0000 (09:59 +0300)
commit0aef4bcf6e7b041d76c62b887daeffcabd09efd0
treec7310cd3073cf3f1bff2b3518fca32658f8f1f30
parentfd175573b6c3f85cae339d01fbee5ebe9e87437b
ggml-cpu : split arch-specific implementations (llama/13892)

* move ggml-cpu-aarch64 to repack

* split quantize_row_q8_0/1

* split helper functions

* split ggml_vec_dot_q4_0_q8_0

* split ggml_vec_dot_q4_1_q8_1

* split ggml_vec_dot_q5_0_q8_0

* split ggml_vec_dot_q5_1_q8_1

* split ggml_vec_dot_q8_0_q8_0

* split ggml_vec_dot_tq1_0_q8_K

* split ggml_vec_dot_tq2_0_q8_K

* split ggml_vec_dot_q2_K_q8_K

* split ggml_vec_dot_q3_K_q8_K

* split ggml_vec_dot_q4_K_q8_K

* split ggml_vec_dot_q5_K_q8_K

* split ggml_vec_dot_q6_K_q8_K

* split ggml_vec_dot_iq2_xxs_q8_K

* split ggml_vec_dot_iq2_xs_q8_K

* split ggml_vec_dot_iq2_s_q8_K

* split ggml_vec_dot_iq3_xxs_q8_K

* split ggml_vec_dot_iq3_s_q8_K

* split ggml_vec_dot_iq1_s_q8_K

* split ggml_vec_dot_iq1_m_q8_K

* split ggml_vec_dot_iq4_nl_q8_0

* split ggml_vec_dot_iq4_xs_q8_K

* fix typos

* fix missing prototypes

* rename ggml-cpu-quants.c

* rename ggml-cpu-traits

* rename arm folder

* move cpu-feats-x86.cpp

* rename ggml-cpu-hbm

* update arm detection macro in quants.c

* move iq quant tables

* split ggml_quantize_mat_q8_0/K

* split ggml_gemv_*

* split ggml_gemm_*

* rename namespace aarch64 to repack

* use weak aliases to replace test macros

* rename GGML_CPU_AARCH64 to GGML_CPU_REPACK

* rename more aarch64 to repack

* clean up rebase leftover

* fix compilation errors

* remove trailing spaces

* try to fix clang compilation errors

* try to fix clang compilation errors again

* try to fix clang compilation errors, 3rd attempt

* try to fix clang compilation errors, 4th attempt

* try to fix clang compilation errors, 5th attempt

* try to fix clang compilation errors, 6th attempt

* try to fix clang compilation errors, 7th attempt

* try to fix clang compilation errors, 8th attempt

* try to fix clang compilation errors, 9th attempt

* more cleanup

* fix compilation errors

* fix apple targets

* fix a typo in arm version of ggml_vec_dot_q4_K_q8_K

Co-authored-by: Georgi Gerganov <redacted>
---------

Co-authored-by: Georgi Gerganov <redacted>
32 files changed:
CMakeLists.txt
src/ggml-common.h
src/ggml-cpu/CMakeLists.txt
src/ggml-cpu/amx/amx.cpp
src/ggml-cpu/amx/mmq.cpp
src/ggml-cpu/arch/arm/quants.c [new file with mode: 0644]
src/ggml-cpu/arch/arm/repack.cpp [new file with mode: 0644]
src/ggml-cpu/arch/loongarch/quants.c [new file with mode: 0644]
src/ggml-cpu/arch/powerpc/quants.c [new file with mode: 0644]
src/ggml-cpu/arch/riscv/quants.c [new file with mode: 0644]
src/ggml-cpu/arch/riscv/repack.cpp [new file with mode: 0644]
src/ggml-cpu/arch/s390/quants.c [new file with mode: 0644]
src/ggml-cpu/arch/wasm/quants.c [new file with mode: 0644]
src/ggml-cpu/arch/x86/cpu-feats.cpp [new file with mode: 0644]
src/ggml-cpu/arch/x86/quants.c [new file with mode: 0644]
src/ggml-cpu/arch/x86/repack.cpp [new file with mode: 0644]
src/ggml-cpu/common.h
src/ggml-cpu/ggml-cpu-impl.h
src/ggml-cpu/ggml-cpu.c
src/ggml-cpu/ggml-cpu.cpp
src/ggml-cpu/hbm.cpp [new file with mode: 0644]
src/ggml-cpu/hbm.h [new file with mode: 0644]
src/ggml-cpu/kleidiai/kleidiai.cpp
src/ggml-cpu/quants.c [new file with mode: 0644]
src/ggml-cpu/quants.h [new file with mode: 0644]
src/ggml-cpu/repack.cpp [new file with mode: 0644]
src/ggml-cpu/repack.h [new file with mode: 0644]
src/ggml-cpu/traits.cpp [new file with mode: 0644]
src/ggml-cpu/traits.h [new file with mode: 0644]
src/ggml-cuda/common.cuh
src/ggml-quants.c
src/ggml-sycl/common.hpp