An 8-bit EXL3 quantization of
baidu/Unlimited-SVG (revision b639846504cd), the image → SVG
model: give it an image, it writes an editable SVG document.
It runs on CUDA with ExLlamaV3 plus the out-of-tree architecture files included here. Native Apple Silicon
support in MLXL3 (mlxl3-rs svg and Desktop › Images › Image to SVG)
is in development and not part of a release yet.
| Part | Format | Size |
|---|---|---|
| Language model (DeepSeek-V2-style MoE, 12 layers, 64 experts top-6 + 2 shared) | EXL3 8 bpw, 16-bit head (-b 8 -hb 16 -eb 16 -cb mcg --out_scales auto) |
3.28 GB (model.safetensors) |
| Vision tower (SAM ViT-B + CLIP-L + projector) | original BF16, copied byte for byte | 0.80 GB (model-vision.safetensors) |
Calibration is in-domain and image-conditioned: 152 rows (531,594 tokens) made of real images from svg-stack, MMSVG-Illustration, ChartQA and COCO, each followed by the SVG the original model writes for it (vLLM, greedy). The image positions carry the real vision features during calibration, so every layer is quantized against the activations it sees at inference time, not against plain text.
Teacher-forced next-token distributions against the official FP32 model (transformers 4.46.3, remote code of the pinned revision), on 32 held-out images (8 each from svg-stack, MMSVG-Illustration, ChartQA and COCO), over their full SVG sequences: 97,660 positions.
| Model | Mean KL (nat) | Max KL | Top-1 agreement |
|---|---|---|---|
| This EXL3 8 bpw | 2.60e-4 | 1.59 | 98.08 % |
| Unquantized FP16 in ExLlamaV3 (reference) | 1.15e-4 | 3.39 | 98.23 % |
| Official model in BF16 (for scale) | 1.21e-2 | 9.49 | 90.97 % |
Per source (mean KL): svg-stack 7.6e-4, illustration 4.0e-4, chart 3.2e-4, photo 9.5e-5.
The quantized model's mean KL to FP32 is about 47× lower than that of the original model run in BF16, and its top-1 agreement is within 0.15 points of the unquantized model. In greedy generation on 4 held-out images, it produced 4/4 complete, well-formed SVGs.
A second variant calibrated with per-expert activation weighting (-mae 0.01) scored 2.27e-4 pooled but won
only 19 of 32 images, which is within noise, so this calibration was kept.
On Apple Silicon, the MLXL3 native pipeline (pixels → native vision → native LM, M5) was checked against the official FP32 logits on 2 images × 512 positions: mean KL 4.48e-4 / 3.93e-4, top-1 99.22 % / 100 %.
Once released, MLXL3 Desktop gets Images › Image to SVG: download the model (4.1 GB), drop an image, press Vectorize. The engine command:
mlxl3-rs svg /path/to/Unlimited-SVG-EXL3-8bpw --image logo.png --output logo.svg
--temperature 0 (the default, greedy) suits icons, logos, illustrations and charts; --temperature 0.6
suits photographs. The command prints JSON lines (loaded, progress, done).
usvg_arch.py, usvg_routing.py and usvg_common.py register the architecture with ExLlamaV3 1.6.8 (the
router is a plain softmax over all experts without renormalization, as in the original). The prompt is
<BOS> + 1,057 <image> tokens + SVG:; the image features come from the original DeepEncoder
(2048 px padded input) and are passed as an MMEmbedding.
</svg>, and then no SVG is returned.model.safetensors 3.1 GiBmodel-vision.safetensors 766 MiBbaidu/Unlimited-SVG