Skip to content

Extend WebGPU operation support and browser model validation - #1361

Merged
0xShug0 merged 1 commit into
mainfrom
feature/webgpu-model-validation
Nov 21, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
feature/webgpu-model-validation

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Add missing WebGPU operations so more existing audio models can run in the browser without model-specific changes.

  • Add F32/F16 max/average 2D pooling and tiled 2D transposed convolution, including strided views, padding and tail handling.
  • Extend BF16×BF16 matmul to matrix–matrix shapes through the existing tiled path, preserving BF16 range with F32 staging and accumulation. Existing matvec and F32/F16 dispatch remain unchanged.
  • Keep upstream’s 30-second queue-wait timeout. No model, framework, CLI, weight or precision changes; production changes are confined to WebGPU.
  • Expand the browser validation report with M5-TTS CustomVoice/VoiceClone, Tiny Voca, Kroko XL, VoxMel, MossFormer2 SE/SR, SoulX-Singer SVS/SVC, ROSVOT and MOSS-SoundEffect v2, including RTF, peak browser VRAM and output checks.

Validation

Real Chrome WASM64 + WebGPU on RTX 5090, Debug builds, one model thread, sequential requests. Warmed model measurements use three requests after one excluded warmup in the same session.

  • GGML’s backend-operation harness passed against its independent CPU reference: 268/268 pooling, 14/14 transposed-convolution and 10/10 BF16 matmul cases. Includes padded/offset views, stride gaps/overlap, odd tails, batch broadcast and values exceeding F16 range. Existing tolerances were not relaxed. This is targeted coverage, not a full operation-suite sweep.
  • Model outputs were finite and nonconstant. Checked TTS, enhancement and singing content matched their reference text/transcripts after normalization; repeated outputs were stable apart from expected MossFormer2 SE dithering. Kroko transcripts/timestamps and ROSVOT note JSON were stable across repeats. Full metrics and limits are in the report.
  • With the original timeout restored, MOSS-SoundEffect v2 completed four ten-step dog-bark requests: warmed 16.289 s, RTF 1.6289, 5,160 MiB peak browser VRAM for ten-second output. All four WAVs were byte-identical. Ten steps is an explicit validation setting; model defaults are unchanged, and output quality is not assumed equivalent to 100 steps.

@0xShug0
0xShug0 merged commit fd8564a into main Nov 21, 2026
0 of 7 checks passed
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