-
-
Notifications
You must be signed in to change notification settings - Fork 77
WebGPU + ONNX provider: Qwen 3 0.6B in-browser (7.4.0) #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
esokullu
wants to merge
33
commits into
main
Choose a base branch
from
webgpu
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
b26d299
WebGPU + ONNX provider (Qwen 3 0.6B, in-browser, no server needed)
esokullu c7ed019
chore: bump version 7.3.1 → 7.4.0
esokullu 351971f
Merge branch 'main' into webgpu
esokullu ac615d0
Update offscreen.html
esokullu 479fe8d
WebGPU: download progress indicator
esokullu 3ab4a97
Vendor @huggingface/transformers 4.2.0 (WebGPU + ONNX runtime)
esokullu 007488c
version up
esokullu 71bc9c9
WebGPU: fix bare-specifier import (vendor ort.webgpu.bundle, patch
esokullu 60802f5
WebGPU: vendor UNMINIFIED builds (Web Store policy + readability)
esokullu 2ec3c04
WebGPU: vendor onnxruntime-common, patch second bare specifier
esokullu 2596d1d
WebGPU: vendor asyncify WASM variant for CPU fallback ops
esokullu 08d1cdb
WebGPU: switch default dtype from q4 to q4f16
esokullu 446a3ed
WebGPU: document fp16 fallback when q4f16 kernel overflows
esokullu e46db35
WebGPU: surface fallback-adapter / no-GPU case in Test Connection
esokullu 7e23df5
WebGPU: force .jsep wasm variant so WebGPU EP actually engages
esokullu 258dbbe
WebGPU: enable cross-origin isolation for SharedArrayBuffer
esokullu 32fbe65
WebGPU: address PR #66 codex review (tool-call streaming + cache key)
esokullu 5d66564
WebGPU: disable wasm-cache for chrome-extension scheme
esokullu e84f36a
WebGPU: move inference to a dedicated Worker + upgrade to Qwen 3.5 0.8B
esokullu 9db2be7
title change
esokullu efc9a9d
WebGPU: keep outputs on GPU to avoid mapAsync OOM
esokullu 117f7ff
Merge branch 'main' into webgpu
esokullu ffecb66
9.0.0
esokullu 51c4128
9.0.2
esokullu 69c7f5d
Fix WebGPU CPU tensor access error in worker pipeline
esokullu f991fc3
Handle WebGPU OrtRun buffer download/CPU data failures with retry mode
esokullu 1aac015
Add robust fallback for WebGPU buffer map failures
esokullu 9b46bc7
Improve WebGPU fallback errors and switch default ONNX model to Gemma
esokullu 05461e1
Reset WebGPU mode when WASM kernel init fails
esokullu 9c6d130
Retry WebGPU unaligned-access failures with fp16 dtype
esokullu c4209b9
Skip WASM fallback for quantized WebGPU models
esokullu 901fef1
Retry quantized WebGPU map failures with fp16 before aborting
esokullu 28fd949
improvements
esokullu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,9 @@ | ||
| <!DOCTYPE html> | ||
| <html><head><script src="offscreen.js"></script></head></html> | ||
| <!-- | ||
| Offscreen document for WebBrain. | ||
| - Local-network fetch proxy (PNA workaround). | ||
| - WebGPU + ONNX LLM runtime via vendored @huggingface/transformers. | ||
| type="module" is required so offscreen.js can dynamically import the | ||
| vendored library. | ||
| --> | ||
| <html><head><script type="module" src="offscreen.js"></script></head></html> |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pipeline cache key only checks
modelId, but users can editdtypeanddevicein provider settings. After one successful load, changing quantization/backend (for exampleq4→q8orwebgpu→wasm) will silently keep using the old pipeline, so configuration changes do not take effect until the offscreen document is recreated.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed