Vela 3.1 — ONNX for the browser

Browser-ready ONNX exports of the decision path of the Vela 3.1 models by vLLM Semantic Router × KR Labs, for onnxruntime-web (WASM and WebGPU). Each export bundles the encoder and the decision readout heads, so a call is render → tokenise → one forward per question → softmax. Unofficial conversion; all credit for the models goes to the original authors.

Folder Source Notes
pico-150m/ vllm-sr/vela3.1-pico-150m choice / yes-no decisions; int8 ~210 MB, fp16w ~305 MB
pico-380m/ vllm-sr/vela3.1-pico-380m choice / yes-no decisions; int8 ~610 MB, fp16w ~760 MB

Each folder holds config.json (marker ids, file map), tokenizer.json, tokenizer_config.json, parity.json (reference answers from the PyTorch package) and:

File Use
onnx/model_quantized.onnx WASM / CPU — dynamic int8; RoPE, attention, MLP down-projections and heads kept fp32
onnx/model_fp16w.onnx WebGPU — weights stored fp16 (cast to fp32 at load), fp32 math: exact on WebGPU, ~25 ms per question for pico-150m on an M4 Pro

I/O. Inputs: input_ids [1, T] int64, opt_pos [K] int64 (positions of the [O] markers), pool [2] int64 (start/end of the state span). Output: logits [K] — softmax gives the option probabilities.

Rendering (render31 from the source package): [BOS] [Q] instructions ([O] name[: description])* [SEP_SCHEMA] [SEG_user] state [EOS]; a yes/no question is the choice {no, yes}. Strings are used as-is, anything else as compact JSON. Text is tokenised without special tokens.

Parity (JS port vs the PyTorch package): token ids identical; fp32 and fp16w probabilities identical (max |Δp| ≤ 0.0003); int8 max |Δp| ≈ 0.11 (pico-150m) / 0.06 (pico-380m) with the same choices. Full fp16 compute is not shipped: on onnxruntime-web's WebGPU EP it flips decisions (max |Δp| 0.8).

Use / reproduce. JS loader and export script: AndreOS — src/js/assistant/engine/vela.js (loadVela({ baseUrl }).decide(state, questions) returns System One answers) and scripts/export_vela_web.py.

Indicative benchmarks

Measured in Chrome on an Apple M4 Pro (Nov 2026), using these models as the command router and planner of the AndreOS assistant. The eval sets are small (28 routing cases, 14 commands, 9 multi-turn conversations), so read these as indications, not a leaderboard.

Single decision (one question, median after warm-up):

pico-150m Device Per question
model_fp16w.onnx WebGPU ~25 ms
model_quantized.onnx WASM (CPU) ~80 ms

Assistant tasks (score · median time per call; a plan is one or more decisions):

Model Device Routing Commands Plans All three
pico-150m WebGPU 100% · 37 ms 93% · 170 ms 89% · 86 ms 6.1 s
pico-380m WebGPU 96% · 51 ms 79% · 284 ms 56% · 286 ms 11.4 s
pico-150m WASM (CPU) 100% · 223 ms 93% · 1.4 s 89% · 835 ms 50.7 s
Qwen3.5 2B (LLM, same tasks via prompting) GPU, native (Ollama) 96% · 376 ms 86% · 658 ms 78% · 653 ms 37.7 s
Qwen3.5 2B (LLM, same tasks via prompting) CPU, native (Ollama) 93% · 837 ms 86% · 1.65 s 78% · 1.47 s 85.5 s

Notes: the LLM's prompt contains several of the eval inputs as few-shot examples; the decision models' option descriptions do not. The decision models match the request against option text, so well-described, well-named options matter more than examples. pico-380m is more sensitive to that wording than pico-150m. On these tasks the int8 CPU file and the WebGPU file score the same as fp32.

License: Apache-2.0, as the source models.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for andreped/vela3.1-onnx

Quantized
(1)
this model