Unlimited-SVG β ONNX export for ONNX Runtime Web (WebGPU)
ONNX export of baidu/Unlimited-SVG (image β SVG vision-language model) so the whole model runs in a browser tab with ONNX Runtime Web on WebGPU β nothing is uploaded, the browser downloads these files and runs them locally.
Built by, and the model files for, wesleymatosdev/unlimited-svg-web
(MIT). The exporter (scripts/export_encoder.py, scripts/export_decoder.py) is hard-gated: every tensor of the
ONNX graph is compared against the PyTorch reference before a file is written.
Files
| Path | Size | Notes |
|---|---|---|
encoder/unlsvg-encoder-fp32.onnx |
1.60 GB | fp32, pixels[1,3,1024,1024] β vision_embeds[1,273,1280] (fp16) |
decoder/unlsvg-decoder-fp16.onnx |
5.87 GB total | fp16, 12 layers, merged-KV single graph; weights live in 144 external files |
decoder/external-data.json |
ONNX external-data manifest (relative paths β keep the directory layout) |
Total β 7.47 GB. The decoder's largest files are ~331 MB, so hosts with a per-file cap (e.g. Cloudflare Pages,
25 MiB) cannot serve it; this repo is the canonical host. Download with hf download wesleymatosdev/Unlimited-SVG-ONNX --local-dir models.
Using with the web app
unlimited-svg-web reads a config.json with {"models": "<base URL>"}; the public build at
vectorize.wmatos.dev points at https://huggingface.co/wesleymatosdev/Unlimited-SVG-ONNX/resolve/main, and
?models=<base> overrides it. Loading is ~7.5 GB: expect a multi-minute first load; the browser caches the files.
Requirements for the browser run: Chrome/Edge with WebGPU and roughly 24 GB of GPU-addressable memory (unified memory on Apple silicon, or a discrete GPU with β₯ 24 GB VRAM). 16 GB devices are out.
Provenance / differences from the upstream weights
- Numerics: encoder fp32, decoder fp16 (weights cast to fp16 for WebGPU; validated against the reference tokens).
- The upstream PyTorch code needed a one-line MPS fix (
masked_scatter_with a broadcast mask) β irrelevant to this export, documented in the repo undernotes/. - No retraining, no change to architecture or tokenizer;
vocab.json/tokenizer files ship with the app repo.
License
MIT. Upstream model and code: MIT, Copyright (c) 2026 Baidu β see LICENSE and
https://huggingface.co/baidu/Unlimited-SVG. This repo only re-hosts an ONNX conversion of those weights.
Model tree for wesleymatosdev/Unlimited-SVG-ONNX
Base model
baidu/Unlimited-SVG