rasgaard commited on
Commit
d913929
·
verified ·
1 Parent(s): c805a96

Embla1-4bit WebGPU step graph (export + 4 rewrites)

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. README.md +23 -0
  3. embla_step.onnx +3 -0
  4. embla_step.onnx.data +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ embla_step.onnx.data filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: sevren-ai/Embla1-4bit
4
+ library_name: onnx
5
+ pipeline_tag: text-generation
6
+ tags: [embla, webgpu, onnxruntime-web, onnx]
7
+ ---
8
+
9
+ # Embla1-4bit, WebGPU step graph
10
+
11
+ The ONNX graph that runs prefill for Embla 1 on WebGPU, a browser engine for
12
+ [`sevren-ai/Embla1-4bit`](https://huggingface.co/sevren-ai/Embla1-4bit). One step of the model (a prefill chunk of up to 64
13
+ tokens, or one decode token) with the KV / engram-conv cache as explicit inputs and outputs, exported from the PyTorch reference
14
+ and rewritten for onnxruntime-web's WebGPU execution provider.
15
+
16
+ - `embla_step.onnx` + `embla_step.onnx.data` (0.48 GB): the non-expert weights in MLX's 4-bit format, as `MatMulNBits` with an
17
+ exact offset term for the affine bias.
18
+ - The routed experts (3.9 GB) are **graph inputs**, not part of this repo. The engine streams them from
19
+ `sevren-ai/Embla1-4bit/model.safetensors`. The engram rows are an input too (looked up in that repo's `engram_table.safetensors`).
20
+
21
+ Build: `sh tools/build_graph.sh` in the GitHub repo (export + four graph rewrites, documented there).
22
+
23
+ Model by [sevren.ai](https://huggingface.co/sevren-ai), MIT licensed. This is a derived format of their weights, under the same license.
embla_step.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c27d5cb891c7091fc7cd2c2e756b4caa04b983e8799cf0b2d293269b0e627acb
3
+ size 6481351
embla_step.onnx.data ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f4d3135cc250e0ccb3fe64878a0d37db12d033c99f668e27beb11edf1e9c71e
3
+ size 476631680