Skip to content

ggml: add WebGPU GROUP_NORM support - #1172

Merged
0xShug0 merged 1 commit into
mainfrom
feature/webgpu-group-norm
Nov 2, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
feature/webgpu-group-norm

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Add F32 GROUP_NORM support to WebGPU using a separate variant of the existing normalization shader and cached pipeline.

The implementation follows GGML's channel grouping and epsilon layout. It supports batches, partial final groups, offset/strided views with a contiguous innermost dimension, and in-place execution. The change is limited to the WebGPU backend and generic operator tests.

Validation:

  • Debug native and Emscripten WASM32 builds passed.
  • Existing GGML CPU-reference harness: 101/101 tests passed for GROUP_NORM, GROUP_NORM_MUL_ADD, NORM, RMS_NORM, and L2_NORM. Added coverage includes batches, partial groups, strided views, in-place execution, and singleton groups.
  • Chrome 150 browser WebGPU end-to-end checks passed on RTX 5090. Generated waveforms retained their sample rate and length, with cosine similarity above 0.99999999 against native WebGPU output.

@0xShug0
0xShug0 merged commit be3d36e into main Nov 2, 2026
7 checks passed
@0xShug0
0xShug0 deleted the feature/webgpu-group-norm branch November 2, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant