Repository navigation
Add browser WebGPU support - #1162
Merged
Merged
Conversation
This was referenced Nov 2, 2026
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This runs the existing C++ CLI and model runtimes inside a browser Web Worker, loading GGUFs from user-selected files and returning playable/downloadable outputs. It builds on the merged WebGPU kernels (#1159) and native integration (#1160).
docs/build/webgpu.md, using generic commands and placeholders. Include the explicit Kokoro WASM32 arena settings used in validation. Put the 26-model historical results indocs/reports/webgpu_browser_validation.md, and add README backend badges and build information.No GGML kernel changes, model implementation changes or new model timing instrumentation are included.
Validation used existing Debug build caches and sequential browser runs on RTX 5090 / Chrome 150:
--versionchecks passed.The report distinguishes historical performance observations from the integration smokes. Its measurements span development builds; Moonshine/Cohere timings used instrumentation deliberately excluded here. TTS ASR checks are not universally exact, and full waveform parity, cross-browser compatibility and a complete performance regression sweep are not claimed. WASM address-space limits and browser GPU buffer limits apply independently.
Browser WebGPU performance
Historical sequential measurements on RTX 5090, NVIDIA driver 595.84, Chrome 150, Emscripten 6.0.13, using Debug (
-O3 -g), WASM SIMD,--backend webgpu,--threads 1and--log. Some cases used pthreads for asynchronous prefetch.RTF below 1 means faster than real time. Request time excludes model loading and WASM initialization, but includes first-request graph/shader work. Peak VRAM is the dedicated Chrome GPU process's observed NVML peak during loading/inference, sampled nominally every 20 ms; it includes approximately 32–34 MiB of baseline and may miss short peaks. WASM is the address width, not a GPU-memory allowance.
These are single-request observations spanning development builds, not a fresh benchmark of this final commit, a warmed-throughput result, or a before/after speedup comparison. Moonshine/Cohere timings used development-only instrumentation excluded from this PR. Several WASM32 cases used reduced host arenas; Irodori used codec chunks of 256 steps. YuE2 used eight NAR steps, a 1,500 semantic-token cap,
cot=offand tiled VAE decoding. See the full report for configuration and output-validation limits.