Instructions to use AMINOXDEV/webgpu-chat-graphs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use AMINOXDEV/webgpu-chat-graphs with Transformers.js:
// ⚠️ Unknown pipeline tag
Graphs with accuracy_level=4 on MatMulNBits (int8 DP4A prompt path)
Browse files
README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- onnx
|
| 5 |
+
- webgpu
|
| 6 |
+
- transformers.js
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# WebGPU Chat graphs
|
| 10 |
+
|
| 11 |
+
ONNX graph files (no weights) used by [WebGPU Chat](https://llm.aminox.dev) ([source](https://github.com/amintikk/webgpu-chat)).
|
| 12 |
+
|
| 13 |
+
Each file is the original model graph with one change: every `com.microsoft.MatMulNBits` node gets
|
| 14 |
+
`accuracy_level = 4`. Nothing else is modified (same nodes, same inputs and outputs, same external-data
|
| 15 |
+
references). With it, ONNX Runtime's WebGPU backend may use its int8 DP4A matmul path when processing
|
| 16 |
+
prompts (4 or more tokens at once) on GPUs that expose `subgroups`. Token-by-token generation is unchanged.
|
| 17 |
+
|
| 18 |
+
The weights are not here: they are loaded from the original repositories, at the revisions below.
|
| 19 |
+
|
| 20 |
+
| File | Source graph | Weights |
|
| 21 |
+
|---|---|---|
|
| 22 |
+
| `qwen3.5-4b-opt/decoder_model_merged_q4f16.onnx` | [onnx-community/Qwen3.5-4B-ONNX-OPT@bb07226](https://huggingface.co/onnx-community/Qwen3.5-4B-ONNX-OPT/tree/bb072268d0912bdc5cf4f41c8c6f53a03fd68624) | same repo and revision |
|
| 23 |
+
| `gemma-4-12b/decoder_model_merged_q4f16.onnx` | [AMINOXDEV/gemma-4-12B-it-ONNX@90e0a27](https://huggingface.co/AMINOXDEV/gemma-4-12B-it-ONNX/tree/90e0a27bf539717b6055d7e434b9faa1f0dbd9ff) | same repo and revision |
|
| 24 |
+
|
| 25 |
+
Licences follow the original models: Qwen3.5 (Apache 2.0) and Gemma 4 (Apache 2.0).
|
gemma-4-12b/decoder_model_merged_q4f16.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2b091abfbcce1abc17fcdda47dcd7ce845035440327e1ce3fdd4f09ed92dde2
|
| 3 |
+
size 484116
|
qwen3.5-4b-opt/decoder_model_merged_q4f16.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28cddb3cd96fb34810e9b65070f271ec4a06f016500e4d111d5ce51e168c4e3f
|
| 3 |
+
size 939281
|