INT8 weight-only quantized ONNX export of baidu/Unlimited-SVG, derived from the validated ONNX conversion at wesleymatosdev/Unlimited-SVG-ONNX.
This repository is intended for local/browser inference experiments with a much smaller memory footprint than the original fp32/fp16 ONNX export.
| Path | Size | Notes |
|---|---|---|
encoder/unlsvg-encoder-int8.onnx |
0.9 MB | graph only |
encoder/unlsvg-encoder-int8.onnx.data |
426 MiB | INT8 MatMul weights (MatMulNBits, block 128, symmetric) |
decoder/unlsvg-decoder-moe-int8.onnx |
0.7 MB | graph only |
decoder/unlsvg-decoder-moe-int8.onnx.data |
3.21 GiB | decoder weights; MoE experts stored INT8 and gathered before dequantization |
Total artifact size is approximately 3.9 GB, versus approximately 7.5 GB for the original ONNX export.
The external-data files must remain beside their corresponding .onnx files with the same filenames.
Generated with modelsuite-onnx:
modelsuite quantize-weights encoder/unlsvg-encoder-fp32.onnx \
-o encoder/unlsvg-encoder-int8.onnx --bits 8 --check
modelsuite quantize-moe decoder/unlsvg-decoder-fp16.onnx \
-o decoder/unlsvg-decoder-moe-int8.onnx --check
The decoder uses a custom MoE rewrite because its expert tensors are consumed dynamically through Gather. Quantized experts are gathered first and only selected expert rows are dequantized, avoiding materialization of every expert in floating point.
CPUExecutionProvider.0.99785.0.99741.MatMulNBits; use a recent ONNX Runtime/onnxruntime-web build with support for that operator and your target execution provider.Gather, DequantizeLinear, and Cast nodes after the rewrite.7aebf08aaa51bee2d1c8e29430fa6ce66b8593106363bde942755785013efe06 encoder/unlsvg-encoder-int8.onnx
7e1f3678030471371b2be766002dfcce80e194ea79a21a061c1a3f3b59ca0839 encoder/unlsvg-encoder-int8.onnx.data
3c48696c77d99b41d7f23d53e36aff18adc4f42c41fccdfe6a880f122a3b6624 decoder/unlsvg-decoder-moe-int8.onnx
46148af07592f4f3eda7a286f594b454da6ab20f78e34b2cb4840e6adb190465 decoder/unlsvg-decoder-moe-int8.onnx.data
MIT. Upstream model and code: MIT, Copyright (c) 2026 Baidu. Base ONNX conversion: wesleymatosdev/Unlimited-SVG-ONNX. Quantization tooling: nglmercer/modelsuite-onnx.
No retraining or architecture change was performed. Tokenizer/application integration files are not included here; see the original conversion repository and unlimited-svg-web.
encoder/unlsvg-encoder-int8.onnx 910.3 KiBdecoder/unlsvg-decoder-moe-int8.onnx 671.3 KiBbaidu/Unlimited-SVG