]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml WebGPU: add support for quantization types (llama/15440)
authorReese Levine <redacted>
Fri, 22 Aug 2025 18:28:03 +0000 (11:28 -0700)
committerGeorgi Gerganov <redacted>
Fri, 5 Sep 2025 09:54:01 +0000 (12:54 +0300)
commit294bc5f395cd900efecb575b96a996f834ed47d3
treecd2906707f9eeecf28b8efc5615fa74fb94fd92e
parente18c24978ee96f5c63ac8ddbc71558b482268667
ggml WebGPU: add support for quantization types (llama/15440)

* Begin work on set_rows

* Work on set rows

* Add error buffers for reporting unsupported SET_ROWS indices

* Remove extra comments

* Work on templating for different types in shaders

* Work on shader type generation

* Working q4_0 mul_mat and some templating for different types

* Add q4_0_f16 matmul and fix device init

* Add matmul support for basic quantization types

* Add q2_k and q3_k quantization

* Add rest of k-quants

* Get firt i-quant working

* Closer to supporting all i-quants

* Support rest of i-quants

* Cleanup code

* Fix python formatting

* debug

* Bugfix for memset

* Add padding to end of buffers on creation

* Simplify bit-shifting

* Update usage of StringView
src/ggml-webgpu/CMakeLists.txt
src/ggml-webgpu/ggml-webgpu.cpp
src/ggml-webgpu/wgsl-shaders/embed_wgsl.py
src/ggml-webgpu/wgsl-shaders/memset.wgsl
src/ggml-webgpu/wgsl-shaders/mul_mat.tmpl.wgsl [new file with mode: 0644]
src/ggml-webgpu/wgsl-shaders/mul_mat.wgsl [deleted file]