Baidu has open-sourced Unlimited SVG, a model that looks at an image and redraws it as layered, editable SVG code. I ran the weights myself on a four-core CPU with no GPU. It redrew a logo and a floor plan well, wrote every word of an infographic but drew the step text white on white, and looped on a busy 3D render until I raised the temperature, when it produced a recognisable but unfinished copy. Claude Opus 5.5, GPT-6.2 Sol and Gemini 4 Neon did the first three jobs in seconds to minutes, and VTracer traced them in under a second with no editable text.
What Baidu released
Baidu’s ERNIE team put Unlimited SVG out on 1 December under the MIT licence, with weights on Hugging Face and ModelScope and code on GitHub as baidu/Unlimited-SVG. Baidu’s summary is that it redraws any image as a structured SVG using about 0.5 billion activated parameters. The post says it studies the picture first, picking out the objects, outlines, colours and how each element relates to the rest, and then draws it stroke by stroke as separate layers.
Its post makes three claims. It runs locally on about 0.5B active parameters. It has frontier-level visual perception, meaning it knows which details matter and which to simplify. And it goes beyond logos and icons to PDFs with complex layouts, CAD drawings, architectural blueprints and floor plans. Baidu says only frontier models could project images into SVG like this before. The technical report is marked coming soon, so there are no published benchmark scores to check those claims against yet.
How it works
Unlimited SVG is built on DeepSeek-OCR, the open model that compresses a page image into a short run of vision tokens. On the input side it keeps DeepSeek-OCR’s DeepEncoder, which squeezes a whole 2048 x 2048 image into 1,024 vision tokens while holding on to small text and thin strokes. On the output side it’s a mixture-of-experts decoder that activates about 0.5 billion parameters per token. The files on Hugging Face hold 3.3 billion parameters in BF16, about 6.7 GB, so “0.5B” describes the compute per token, not the download.

The split exists because a complete SVG of a busy image can run past 10,000 tokens, and a short image prefix plus a small active decoder keeps a write that long affordable. Baidu’s README pads every input to a 2048 x 2048 canvas, allows up to 30,000 new tokens, and suggests a temperature of 0 to 0.3 for CAD, diagrams and charts and 0.5 to 0.8 for natural scenes and photos, to avoid repetitive loops.
How I tested it
Baidu’s instructions assume an NVIDIA GPU. I used a cloud container with four CPU cores, 15 GB of RAM and no GPU, installed the CPU build of PyTorch, and changed Baidu’s own infer_hf.py in one place: the model stays on the CPU instead of calling .cuda(). Three lines at the top stop the model’s remote code from calling .cuda() and CUDA autocast. Everything else is Baidu’s script with its greedy decoding, apart from one rerun at a higher temperature that I’ll flag below. Here’s the setup, trimmed.
uv venv .venv --python 3.12
uv pip install --python .venv/bin/python torch==2.6.0 torchvision==0.21.0 \
--index-url https://download.pytorch.org/whl/cpu
uv pip install --python .venv/bin/python transformers==4.46.3 tokenizers==0.20.3 \
safetensors pillow einops addict easydict accelerate requests huggingface_hub==0.36.0
# top of infer_hf.py, and drop .cuda() from the model line
import torch
torch.Tensor.cuda = lambda self, *a, **k: self
_ac = torch.autocast
torch.autocast = lambda device_type, *a, **k: _ac("cpu", *a, **k)
.venv/bin/python infer_hf.py image.png
I picked four images. The first is a clean logo, the 1Password mark. The second is a floor plan I drew myself with five rooms, two windows, a door and two dimensions. The third is one of my own hand-drawn infographics, a three-step card with a logo, a title and body text. The fourth is a busy 3D render of brushed-metal letters, a red light beam and a circuit board. I ran Claude Opus 5.5, GPT-6.2 Sol and Gemini 4 Neon through their own APIs on the first three, with the same prompt, word for word.
Redraw this image as a single SVG. Match the shapes, colours, text and layout as exactly as you can, using precise coordinates and a viewBox that matches the image size. Return only the SVG code.
I also ran VTracer 1.0, the open-source Rust tracer, on the same three images with its default settings. Each tool got one run, so these are smoke tests, not a benchmark.
What came back
The logo and the floor plan came out right. The logo is a 713-byte SVG with the right circle, colour and stem, though the two notches sit a little off the original. It took about a minute and a half end to end, including loading the model. The floor plan took about two minutes and produced a 1,455-byte SVG with all five room names and both dimensions as text, plus the walls, both windows and the door arc. The door gap and arc moved slightly.


The infographic went wrong in an odd way. The model wrote every word correctly, including the title, the subtitle and all three steps, in about three and a half minutes. But it gave the step text a white fill, so on the white cards the first two steps look empty, and in the third step the word “Password” and the whole body line are white on a pale card, with the body line running off the card’s edge. The words are in the file. You can’t see them.

The busy render took the longest. It’s the kind of image Baidu’s README calls a natural scene. On the default greedy settings the model got stuck: by the 14,000-token limit I’d set, about 40 minutes in, it was repeating one line, a reference to the same letter shape, hundreds of times, and the SVG never closed. That’s the loop the README warns about. I reran it at a temperature of 0.6, inside Baidu’s range for natural scenes, with a 9,000-token cap to bound the time. It didn’t loop. When my cap stopped it, about 25 minutes in, the SVG was unfinished, so I closed its open tags to draw it. It’s recognisably the same scene: the brushed letters, the red floor strip, the server racks, the beam and the board. The glowing circuitry on the chip and plenty of fine detail were still missing.


Speed on the CPU was about six tokens a second once the image prefix was done. That’s why the busy render takes the better part of an hour, and why the short jobs finish in minutes.
Against the big models and the old tracers
| Tool | Logo | Floor plan | Infographic |
|---|---|---|---|
| Unlimited SVG (my CPU) | 713 bytes, about 1.5 min | 1,455 bytes, about 2 min | 5,041 bytes, about 3.5 min |
| Claude Opus 5.5 | 529 bytes, 3 s | 1,359 bytes, 6 s | 2,390 bytes, 10 s |
| GPT-6.2 Sol | 728 bytes, 10 s | 1,450 bytes, 8 s | 11,496 bytes, about 2 min |
| Gemini 4 Neon | 532 bytes, about 3 min | 2,089 bytes, about 3 min | 15,228 bytes, about 3.5 min |
| VTracer 1.0 | 5,441 bytes, 0.1 s | 18,130 bytes, 0.2 s | 150,915 bytes, 0.5 s |
VTracer is instant and pixel-faithful, but it returns 75 paths for the floor plan and 338 for the infographic, with no text elements, so you can’t edit a word. The three API models and Unlimited SVG return real text elements and a handful of shapes, which is the point of the exercise. Among the API models, Claude’s infographic was the smallest file and the fastest, and Gemini 4 Neon’s matched the hand-drawn look most closely. All three got the words right and the layout intact. Unlimited SVG’s problem on this image was colour assignment, not reading.
The comparison isn’t like for like. The three API models are general models asked to write SVG, and they aren’t the frontier models Baidu names in its own write-up. Unlimited SVG is a specialist that runs on a four-core machine with 15 GB of RAM, which none of them do.
Where it sits among vectorisers
Redrawing a raster image as vector graphics is an old problem. Adobe Illustrator’s Image Trace and the open-source VTracer and Potrace follow pixel boundaries and fit curves. They’re fast and faithful, and they produce shapes with no meaning, so letters become blobs. Recraft sells vectorising as an API at US$0.01 a request, or US$0.04 for its Pro version.
The learned approach treats vectorising as code generation. StarVector, from CVPR 2025, comes in 1B and 8B sizes, and its own README says it won’t work for natural images or illustrations, only icons, logos, diagrams and charts. OmniSVG, from NeurIPS 2025, is a family of 3B, 4B and 8B vision-language models for SVG. In OmniSVG’s own icon image-to-SVG table, VTracer scored 0.993 on DINO similarity, level with OmniSVG’s 4B model, and ahead of it on SSIM and LPIPS, so on pixel fidelity alone a tracer is hard to beat. What a model adds is structure: text as text, with shapes grouped and layered.
Baidu’s bet is that structure is worth more than pixel scores. Its blog argues that SVG should become a pretraining task for general vision-language models, because writing code that renders an image forces a model to account for every element and check the result by rendering it. It also pitches SVG as a bridge between seeing and creating, and as a perception backbone for robots that need to know exactly where things are.
Where it fits in ERNIE
Unlimited SVG is a different line from the ERNIE 5.5 language models. Baidu released ERNIE 5.5 Flash Base on 5 November, a 280B mixture-of-experts model with 14B active. The post-trained Preview followed on 11 November, and its weights came out on 24 November under Apache 2.0. I covered the Preview and its weights date at the time, and the territory limits on the Flash Base licence. The model card for Unlimited SVG lists the MIT licence.
What I didn’t run
I didn’t run the PDF, CAD or blueprint cases Baidu names, only a floor plan I drew. I didn’t run the model on a GPU or through vLLM, so I can’t speak to Baidu’s real-time claim. I didn’t try Baidu’s web demo, and I didn’t rerun the infographic at a higher temperature. Each tool got one run, so a second run could come out differently.
Where that leaves Unlimited SVG
It does what it says on clean input: a short, structured SVG with real text, from a download that runs without a GPU. On my images the logo and floor plan worked, and the failures were specific and visible, a fill colour and a loop on default settings. If you want editable vector output from logos, diagrams and charts, it’s worth a download. For a quick job the API models were faster and more reliable on the same images, and for a faithful pixel trace VTracer is still the quickest tool. I’d wait for the technical report before trusting it with blueprints.
Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.




