diff options
author | Kawrakow <iwankawrakow@gmail.com> | 2024-10-13 13:34:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-13 13:34:30 +0300 |
commit | 910a13409463f7aedb0a92be013a1b9bb50f4859 (patch) | |
tree | 16e13e1fd3010549877408a0a62706b2bc5d5f0c /include/llama.h | |
parent | c15de3654e0002537c8052fd6d52d879e778e88c (diff) |
IQ2_KS: 2.1875 bpw non-linear quantization (#85)
* Experimenting
* iq2k: Try make_qx_quants for the scale
Slightly better for LLaMA-3.1, Gemma-2, slightly worse for
Qwen2.5
* iq2k with make_qx_quants: adjust scale
* iq2ks: basics
* iq2_ks: CUDA works
* iq2_ks: WIP
* iq2_ks: WIP
* iq2_ks: Zen4
* iq2_ks: AVX2
* iq2_ks: scalar dot product
* iq2_ks: ARM_NEON
* iq2_ks: Metal
* iq2_ks: faster Metal
LLaMA-3.1-8B:
PP-512 = 475.22 ± 0.37 t/s
TG-128 = 45.32 ± 0.03 t/s
---------
Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
Diffstat (limited to 'include/llama.h')
-rw-r--r-- | include/llama.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llama.h b/include/llama.h index 9fb4af53..c9387e6b 100644 --- a/include/llama.h +++ b/include/llama.h @@ -179,6 +179,7 @@ extern "C" { LLAMA_FTYPE_MOSTLY_IQ1_TN = 144, // except 1d tensors LLAMA_FTYPE_MOSTLY_IQ4_KS = 145, // except 1d tensors LLAMA_FTYPE_MOSTLY_IQ3_KL = 146, // except 1d tensors + LLAMA_FTYPE_MOSTLY_IQ2_KS = 147, // except 1d tensors LLAMA_FTYPE_GUESSED = 1024, // not specified in the model file }; |