Skip to content

Update WebGPU backend and add audio operator support - #1159

Merged
0xShug0 merged 1 commit into
mainfrom
feature/webgpu-kernels
Nov 1, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
feature/webgpu-kernels

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 1, 2026

Copy link
Copy Markdown
Owner

This updates the vendored GGML WebGPU backend and adds missing audio operations and correctness fixes. AudioCPP framework, model, CLI/server, browser application, and eSpeak integration are left for a separate PR.

  • Refresh WebGPU from ggml-org/ggml facdc44a67da17df4433adcc468b424f48e9ded2, adapting it to the existing vendored GGML API without changing other backends or shared operator math.
  • Add F16 concat, BF16 rounding/copies/matvec, mean, F32 transposed convolution, LeakyReLU, reflection padding, and causal masking.
  • Correct reduction dispatch and preserve F32 activation range in F32/BF16/Q8 matrix staging. Stabilize Dawn device lifetime, report unavailable memory information as unknown, and reject unsupported dispatch explicitly.
  • Extend the existing GGML operator harness and document upstream provenance and local changes. Existing backend build defaults are unchanged.

Validation used a Debug standalone GGML build on RTX 5090, with tests run sequentially:

  • 9/9 focused matrix cases passed on WebGPU against CPU reference; the same 9 cases also passed with CPU selected.
  • 169/169 copy, concat, masking, mean, row-sum, and reflection-padding cases passed on WebGPU against CPU reference.
  • The complete correctness suite contains 17,197 generated cases. A full-suite pass is not claimed: the initial run aborted in the CPU reference on an invalid added F16 wide-range fixture, now removed because its input exceeds FP16 range. Regular F16 coverage and F32/BF16/Q8 overflow checks remain, with unchanged tolerances. A subsequent broad run was stopped to rebuild and validate the correction.

Earlier operator checks and their limits are recorded in docs/build/WEBGPU_KERNELS.md. Full model integration and performance claims are outside this PR.

@0xShug0
0xShug0 merged commit dcec826 into main Nov 1, 2026
0 of 7 checks passed
@0xShug0
0xShug0 deleted the feature/webgpu-kernels branch November 1, 2026 23:38
@0xShug0 0xShug0 added the ggml label Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant