llama.cpp/ggml/src/ggml-cann
Djip007 19d8762ab6
ggml : refactor online repacking (#10446)
* rename ggml-cpu-aarch64.c to .cpp

* reformat extra cpu backend.

- clean Q4_0_N_M and IQ4_0_N_M
  - remove from "file" tensor type
  - allow only with dynamic repack

- extract cpu extra bufts and convert to C++
  - hbm
  - "aarch64"

- more generic use of extra buffer
  - generalise extra_supports_op
  - new API for "cpu-accel":
     - amx
     - aarch64

* clang-format

* Clean Q4_0_N_M ref

Enable restrict on C++

* add op GGML_OP_MUL_MAT_ID for Q4_0_N_M with runtime repack

* added/corrected control on tensor size for Q4 repacking.

* Update ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>

* Update ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>

* add debug logs on repacks.

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
2024-12-07 14:37:50 +02:00
..
kernels CANN: Fix SOC_TYPE compile bug (#10519) 2024-11-28 15:25:24 +08:00
.clang-format [CANN] Add Ascend NPU backend (#6035) 2024-07-17 14:23:50 +03:00
acl_tensor.cpp cann: support q4_0 model (#8822) 2024-08-05 12:22:30 +08:00
acl_tensor.h cann: support q4_0 model (#8822) 2024-08-05 12:22:30 +08:00
aclnn_ops.cpp CANN: RoPE operator optimization (#10563) 2024-11-29 14:46:55 +08:00
aclnn_ops.h [CANN] Add Ascend NPU backend (#6035) 2024-07-17 14:23:50 +03:00
CMakeLists.txt CANN: Fix SOC_TYPE compile bug (#10519) 2024-11-28 15:25:24 +08:00
common.h CANN: Improve the Inferencing Performance for Ascend NPU Device (#10454) 2024-11-26 18:08:37 +08:00
Doxyfile cann : fix doxy (ggml/0) 2024-09-08 11:05:55 +03:00
ggml-cann.cpp ggml : refactor online repacking (#10446) 2024-12-07 14:37:50 +02:00