]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml-webgpu: add layer norm ops (#22406)
authorChen Yuan <redacted>
Mon, 4 May 2026 03:52:53 +0000 (23:52 -0400)
committerGitHub <redacted>
Mon, 4 May 2026 03:52:53 +0000 (20:52 -0700)
commitd4b0c22f9e67f0295e91dc1ab4f17c0fb2557fa4
treeed8e3a5dee02debaed662612aeebe9ea609a15e7
parente48034dfc9e5705248fd39dc437ca887dc55a528
ggml-webgpu: add layer norm ops (#22406)

* shader(norm): add layer norm ops

* shader(norm): stablize floating point computation with Kahan summation and handle mixed types

* shader(norm): remove the non-contiguous strides

* shader(norm): use the original implementation rather than the kahan summation
ggml/src/ggml-webgpu/ggml-webgpu-shader-lib.hpp
ggml/src/ggml-webgpu/ggml-webgpu.cpp
ggml/src/ggml-webgpu/wgsl-shaders/row_norm.wgsl