]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml WebGPU: add support for quantization types (#15440)
authorReese Levine <redacted>
Fri, 22 Aug 2025 18:28:03 +0000 (11:28 -0700)
committerGitHub <redacted>
Fri, 22 Aug 2025 18:28:03 +0000 (11:28 -0700)
commit45363632cbd593537d541e81b600242e0b3d47fc
tree5b872c488d524e13cc467912237a1427d35db6ec
parent32732f2459a598606055f0403f0e4ec148d06d68
ggml WebGPU: add support for quantization types (#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
ggml/src/ggml-webgpu/CMakeLists.txt
ggml/src/ggml-webgpu/ggml-webgpu.cpp
ggml/src/ggml-webgpu/wgsl-shaders/embed_wgsl.py
ggml/src/ggml-webgpu/wgsl-shaders/memset.wgsl
ggml/src/ggml-webgpu/wgsl-shaders/mul_mat.tmpl.wgsl [new file with mode: 0644]
ggml/src/ggml-webgpu/wgsl-shaders/mul_mat.wgsl [deleted file]