Overview

Unlimited-SVG is an image-to-SVG model released on December 1, 2026 by Baidu's ERNIE Multimodal Team. It takes a picture — a CAD drawing, a diagram, a chart, an illustration or a photo — and writes SVG code that renders back into that picture, with coordinates, colours, text and layers kept as editable elements instead of a single traced bitmap. Baidu describes it as separating foreground from background and rebuilding overlapping shapes layer by layer.
The model is built on DeepSeek-OCR. Its DeepEncoder reads the whole image at 2048 × 2048 without tiling and compresses it into 1,024 vision tokens, and a mixture-of-experts decoder activates only about 0.5B parameters per token. That small active size is what lets it keep generating well past 10,000 tokens, the length a complex image's SVG often needs; the published examples allow up to 30,000 new tokens.
Weights are on Hugging Face and ModelScope under the MIT license, with inference recipes for Hugging Face Transformers and for vLLM on a BF16-capable NVIDIA GPU. The model card recommends greedy or low-temperature sampling (0–0.3) for CAD, diagrams and charts and 0.5–0.8 for natural scenes. Baidu published no benchmark scores at release.
| Released | 2026-12-01 |
|---|---|
| License | MIT |
| Weights | Open weights |
| Parameters | About 3B total (Hugging Face weight metadata) · about 0.5B active per token |
| Architecture | Vision-language Mixture-of-Experts built on DeepSeek-OCR — a DeepEncoder that compresses a 2048 × 2048 image into 1,024 vision tokens, and an MoE decoder that writes SVG code |
| Modalities | Image, Text |
| Status | Open weights on Hugging Face and ModelScope (MIT) |
Strengths
- Redraws images as structured SVG with real shapes, colours, text and layers that stay editable
- Whole-image input at 2048 × 2048 compressed to 1,024 vision tokens — no tiling
- About 0.5B active parameters per token, so generation stays fast past 10,000 output tokens
- MIT-licensed weights on Hugging Face and ModelScope
- Runs on a single BF16-capable GPU with Transformers or a vLLM server
Best for
- Turning CAD drawings, diagrams and charts into editable vector files
- Vectorising illustrations and screenshots for design tools and web front ends
- Batch conversion of raster images to SVG on local hardware
- Building document and diagram tooling that needs vector output
How to access
| Provider | Model ID |
|---|---|
| Hugging Face (open weights) ↗ | baidu/Unlimited-SVG |
| ModelScope (open weights) ↗ | baidu/Unlimited-SVG |
FAQ
What does Unlimited-SVG do?
Unlimited-SVG takes an image and writes SVG code that renders back into it, with shapes, colours, text and layers as separate editable elements. Baidu's examples range from CAD drawings and charts to illustrations and photographs of scenes.
Is Unlimited-SVG free to use commercially?
Yes. Baidu publishes the Unlimited-SVG weights on Hugging Face and ModelScope under the MIT license, which allows commercial use, modification and redistribution.
What hardware does Unlimited-SVG need?
The model card lists x86-64 Linux, a compatible NVIDIA driver and a BF16-capable GPU. It documents two paths: Hugging Face Transformers with an infer_hf.py script, and a vLLM server started with vllm serve baidu/Unlimited-SVG --trust-remote-code after patching vLLM's DeepSeek-OCR processor to 2048 × 2048.
How large is Unlimited-SVG?
Unlimited-SVG is a mixture-of-experts model built on DeepSeek-OCR. Baidu states it activates about 0.5B parameters per token, and the Hugging Face weight metadata lists about 3B parameters in total, stored in BF16.

