Baidu releases Unlimited-SVG, a 0.5B-active model that redraws images as SVG

The Baidu ERNIE Multimodal Team has released Unlimited-SVG, a multimodal model that, in the README's words, redraws any image as a structured, editable SVG using just 0.5B activated parameters. The repository README carries entries dated 2026-12-01: the model announcement, its availability on ModelScope, and a Hugging Face Spaces demo that the authors thank AK and Hugging Face for creating.
The problem the authors target is length. A complete SVG for a complex image often exceeds 10,000 tokens, a long-context regime where, they say, large models quickly become slow and prohibitive. Unlimited-SVG is built on DeepSeek-OCR and attacks the bottleneck from both ends.
On the input side, DeepEncoder compresses an entire 2048 × 2048 image into just 1024 vision tokens. The README says it preserves fine details such as small text, thin strokes and exact spatial coordinates, and that this shrinks the visual prefix before decoding even begins. On the decoding side, the mixture-of-experts (MoE) architecture activates only about 0.5B parameters per token. The authors claim the combination sustains real-time generation well past 10,000 tokens, which makes long, complex SVG conversion practical on a compact, locally deployable model instead of heavy frontier APIs. The README names GPT-6.2 Astra, Claude Fable 5.2 and Gemini 4 Argon as the alternatives it means to avoid.
The README is mostly a run guide. It needs x86-64 Linux with uv, a compatible NVIDIA driver and a free BF16-capable GPU. The model is baidu/Unlimited-SVG on Hugging Face, which supports 2048 × 2048 global inference. Both example scripts resize the long edge to 2048 pixels with ImageOps.pad, keeping the aspect ratio, and center the image on a gray 2048 × 2048 canvas without tiling. Transparent pixels are composited onto white first so images with alpha do not turn black. The prompt is the image followed by SVG:.
Two inference paths are given. The Transformers path pins torch 2.6.0 and transformers 4.46.3 in a Python 3.12 environment and sets max_new_tokens to 30000. The vLLM path pins vllm 0.33.0 and torch 2.14.0, patches vLLM's DeepSeek-OCR processor to a 2048 × 2048 image size with no tiling, and serves the model with --max-model-len 32768 and --max-num-seqs 1. Both examples decode greedily by default for deterministic output, and both check that the result is a complete, parseable SVG, raising an error if it is not.
The README advises tuning sampling temperature by image type. For CAD, diagrams, charts and other images that need exact detail, keep it low (0 to 0.3) to preserve geometry and text. For natural scenes and photos, raise it (0.5 to 0.8) to avoid repetitive loops and get more varied strokes. The citation block gives the work as Unlimited SVG Works: Trace On, Projection of Visual Worlds into SVG-Anything, by Baidu ERNIE, Multimodal Team, 2026, with a project page at unlimited-svg.github.io.
Key facts
- Baidu's ERNIE Multimodal Team released Unlimited-SVG, built on DeepSeek-OCR, which redraws an image as a structured, editable SVG using about 0.5B activated parameters per token (MoE decoder).
- DeepEncoder compresses a whole 2048 × 2048 image into 1024 vision tokens, while the authors say it keeps small text, thin strokes and exact coordinates.
- Complete SVGs for complex images often exceed 10,000 tokens; the authors claim real-time generation well past that length on a compact, locally deployable model.
- Weights are at baidu/Unlimited-SVG on Hugging Face and on ModelScope, with a Hugging Face Spaces demo; Transformers and vLLM (0.33.0) recipes need a free BF16-capable NVIDIA GPU on x86-64 Linux.
- Suggested temperature is 0 to 0.3 for CAD, diagrams and charts, and 0.5 to 0.8 for natural scenes and photos; the examples default to greedy decoding.
Why it matters
Turning a raster image into clean vector code is a long-output task, since a complete SVG for a complex image often runs past 10,000 tokens. Unlimited-SVG is a bid to make that practical on a small model instead of a large hosted one. Its two levers are an input squeezed to 1024 vision tokens and a mixture-of-experts decoder that activates only about 0.5B parameters per token. If the real-time claim holds, editable vector output from diagrams, charts and CAD-style images becomes something you can run yourself.
Who it affects
People who want editable vector graphics from existing images: designers, and developers working with diagrams, charts or CAD-like drawings, which the README singles out as needing exact detail. It also matters to anyone who wants to run this locally, since the README contrasts the model with heavy frontier APIs. The hardware bar is a free BF16-capable NVIDIA GPU on x86-64 Linux.
How to use it
The model is baidu/Unlimited-SVG on Hugging Face, also on ModelScope, and there is a demo on Hugging Face Spaces. For local runs, the README gives two routes on x86-64 Linux with uv, a compatible NVIDIA driver and a free BF16-capable GPU. Route one is Transformers: create a Python 3.12 environment with the pinned packages (torch 2.6.0, transformers 4.46.3), save infer_hf.py and run it with an image path. The first run downloads the weights into the local Hugging Face cache. Route two is vLLM: install vllm 0.33.0 with torch 2.14.0, apply the README's patch that sets the processor to 2048 × 2048 without tiling, start the server with --max-model-len 32768, then run infer_vllm.py against it. Both write the SVG to a file after checking it parses. Defaults are greedy and deterministic. Use a temperature of 0 to 0.3 for diagrams, charts and CAD, and 0.5 to 0.8 for photos and natural scenes. The README does not state a licence.
How solid is it
The performance claims come from the authors' own README. The numbers on the architecture (1024 vision tokens for a 2048 × 2048 image, about 0.5B parameters activated per token) are stated plainly and match the run instructions. The 'real-time' claim has nothing behind it in the text: no benchmark results, accuracy scores or comparison numbers against the named frontier models are given, and no generation speed or hardware is stated for it. The README also does not give the total parameter count, only the roughly 0.5B activated per token. The authors are credited only as Baidu ERNIE, Multimodal Team.
Risks and caveats
Until independent tests appear, treat the quality and speed claims as unverified. The README says output on photos can fall into repetitive loops at low temperature, which is why it suggests raising it, and the example scripts raise an error when the model returns an incomplete SVG. The setup is brittle: exact package pins, a patch to a vLLM source file, and a required BF16-capable NVIDIA GPU on x86-64 Linux. The Transformers example loads the model with trust_remote_code=True. No licence, training data or training method is described in the text.
“We present Unlimited-SVG, a multimodal model that redraws any image as a structured, editable SVG using just 0.5B activated parameters.”
— Unlimited-SVG README, Baidu ERNIE Multimodal Team