]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
1.5 bit quantization (llama/5453)
authorKawrakow <redacted>
Sun, 18 Feb 2024 16:16:55 +0000 (18:16 +0200)
committerGeorgi Gerganov <redacted>
Mon, 19 Feb 2024 13:53:23 +0000 (15:53 +0200)
commit2c1ad21ba86f74351e24db082b60df4f8834aee0
tree4f8b32dfe374ba0478ac24dfdd4fad6bd9c951f4
parenteca5ff986896d2eabd48cf9e45f4331872a6579f
1.5 bit quantization (llama/5453)

* iq1_s: WIP basics

* iq1_s: CUDA is working

* iq1_s: scalar CPU dot product

* iq1_s: WIP AVX2 dot product - something is not right

* Fix tests

* Fix shadow warnings

* Fix after merge with latest master

* iq1_s: AVX2 finally works

* iq1_s: ARM_NEON dot product. Works, but not very fast

* iq1_s: better grid

* iq1_s: use IQ2_XXS for attn_output

At a cost of 0.04 extra bpw this gives a big improvement in PPL.

* iq1_s: Metal basics

Dequantize works, but not dot product

* iq1_s: Metal works, but quite slow

As usual, Apple Silicon does not like the code I write.

* iq1_s: Tests

* iq1_s: slightly faster dot product

---------

Co-authored-by: Iwan Kawrakow <redacted>
ggml-backend.c
ggml-cuda.cu
ggml-metal.m
ggml-metal.metal
ggml-quants.c
ggml-quants.h
ggml.c
ggml.h