Three lines: Baidu released Unlimited SVG with open weights under the MIT license, and it turns any image into an editable SVG file instead of a flat picture. It runs 3B parameters in total with about 0.5B active per token, and compresses a 2048×2048 image into just 1,024 vision tokens. We tried the Hugging Face studio, and this is what actually happened, plus the steps to run it yourself.
What Unlimited SVG is
On December 1, 2026 the Baidu ERNIE multimodal team published a model whose full name is Unlimited SVG Works: Trace On — Projection of Visual Worlds into SVG-Anything. It reads an image and redraws it as SVG code: rectangles, circles, paths and text, each with coordinates and colors. Unlike an image generator, the output is not pixels. It is a file you open in Illustrator or Inkscape and edit element by element.
The repository on GitHub is MIT licensed, and the Hugging Face model card carries the same tag. The card names the intended inputs: photographs, screenshots, floor plans, mechanical drawings and diagrams from research papers. In other words, anything you need as an image but wish you could edit.
Why it is trending now: it brings a job that used to need a frontier model down to a small one you can run locally. At review time the GitHub repo had about 2.9k stars and 230 forks, the Hugging Face page had about 1.87k likes and 24,016 downloads in the last month, and 18 Spaces were built on the model, with 14 fine-tunes and 32 quantizations derived from it.

Why SVG, not another flat image
A raster image stores a color per pixel. Scale it up and it blurs; change a word inside it and you need a design tool. SVG stores the shape as code: a circle with a given radius and color, text in a given font at a given position. It scales without loss, every element stays editable, and the result can be checked: render the file and a misplaced line or wrong color is visible immediately.
That is exactly why the team picked this task. The official site argues that describing an image in words hits a ceiling: language names objects well, but it does not pin down exact shapes, layout, fonts or colors. SVG makes the model's understanding of an image explicit and checkable.
How it works: 1,024 vision tokens and 0.5B active
The practical problem with turning a complex image into SVG is that the file can exceed 10,000 tokens. Generating that length is slow and expensive on a large dense model, because every token passes through every parameter. Unlimited SVG attacks it from both ends:
- On the input side: the model builds on DeepSeek-OCR, and its visual encoder, DeepEncoder, compresses a 2048×2048 image into only 1,024 vision tokens while keeping small text, thin strokes and exact coordinates. The visual prefix before decoding gets very short.
- On the output side: the architecture is a mixture of experts that activates about 0.5B parameters per token. A short prefix plus sparse compute keeps generation practical well past 10,000 tokens.
The result is that the job runs on a small model on one machine instead of a large hosted frontier API. That is the claim the team makes on the site and in the model card.

The numbers in a table
| Item | Value | Source |
|---|---|---|
| Developer | Baidu ERNIE, multimodal team | Official site, model card |
| Release date | December 1, 2026 | Release section of the card |
| Parameters | 3B total, about 0.5B active per token | Model card, TechNode |
| Base model | DeepSeek-OCR and its DeepEncoder | Model card, DeepSeek-OCR paper |
| Input resolution | 2048×2048 pixels compressed to 1,024 vision tokens | Model card, TechNode |
| Output length | Up to 30,000 new tokens in the Transformers example, 32,768 context in the vLLM setup | Model card |
| Weights size | 6.67 GB in a single BF16 safetensors file | Hugging Face file tree |
| License | MIT | GitHub, model card |
| How to run | Transformers or vLLM on x86-64 Linux with a BF16-capable NVIDIA GPU | Model card |

We tried the studio
The fastest way to try it is the official baidu/Unlimited-SVG Space on Hugging Face, or the community ZeroGPU build. We opened the studio and drew a test image ourselves: a flat 1024×1024 design with rectangles, a circle, a triangle and English text, exactly the kind of image the model should handle well.
The studio takes the image and fits it onto a gray 2048×2048 canvas, keeping the aspect ratio. The interface showed it: 32 KB became 2048 squared. It also offers temperature buttons (0, 0.3, 0.5, 0.8) and an output-length control defaulting to "Auto · ~12k", about 12,000 tokens.

Here is the part we have to say plainly: pressing Vectorize returned a ZeroGPU error saying the requested GPU duration (240 seconds) is larger than the maximum allowed, and that raising it to 40 minutes needs a Hugging Face PRO subscription. In other words, the free Space without a paid account does not finish the generation. We did not pay and did not use a paid account, so we stopped there.
Since generation did not complete on our side, we used the team's published examples on the official site to judge output quality. The site shows 13 cases, each comparing the original image with its SVG rendering and showing the SVG source. In the first case, a street of glass towers with traffic, the rendering rebuilds the buildings, facades, signs and lights as simplified shapes in the right places, and the code panel shows the path elements with their coordinates.

Run it on your machine
The card gives two ready paths: Transformers for a quick test, and vLLM for serving the model behind an OpenAI-compatible endpoint. Stated requirements: x86-64 Linux, the uv tool, a compatible NVIDIA driver, and a free BF16-capable GPU. The weights are 6.67 GB, so budget memory for them plus the context on top.
- Create a virtual environment and install the packages with the commands in the card: uv venv, then uv pip install with torch 2.6.0, torchvision 0.21.0, transformers 4.46.3 and the rest of the list.
- Take infer_hf.py from the repository. It prepares the image, calls the model and extracts the SVG from the output.
- Run it on your image: CUDA_VISIBLE_DEVICES=0 .venv-svg-hf/bin/python infer_hf.py /path/to/image.png
- Open output.svg. The script validates it with ElementTree, and if generation was incomplete it keeps the raw text in output.txt for you to inspect.
- Or use vLLM: start the server with the command in the card (max-model-len 32768, GPU memory utilization 0.8, one sequence), then send the image with the text
<image> SVG:to the endpoint.
CUDA_VISIBLE_DEVICES=0 .venv-svg-hf/bin/python infer_hf.py /path/to/image.png
Temperature by image type
Both examples default to greedy decoding (do_sample=False in Transformers, temperature=0 in vLLM), so the same image gives the same result. The card gives a clear rule for changing that:
| Image type | Temperature | Why |
|---|---|---|
| CAD, diagrams, charts and other exact-detail images | 0 to 0.3 | Keeps precise geometry and text |
| Natural scenes and photos | 0.5 to 0.8 | Avoids repetitive loops and varies the strokes |
The practical lesson: if the image has text or dimensions that must stay correct, stay near zero. If it is a photo or an artistic scene, raise it a little so the model does not repeat the same path over and over.
Where it helps and where it does not
It helps with: turning logos and icons into editable vectors, redrawing flowcharts and charts, converting floor plans and mechanical drawings into editable files, turning figures from papers into SVG for a slide or another paper, and taking a UI screenshot and getting an editable drawing out of it. Those are daily tasks for designers, teachers and technical writers.
Do not expect: a pixel-perfect copy of a photograph. The output is a simplification of shapes, so face detail, texture and lighting will not match the original. Nor should you expect your exact font back; it may use something close. The golden rule is to render the file and compare it with the original, because this kind of output can be checked by eye, unlike a text description that can read correctly while being wrong.
FAQ
Is the model free?
The weights are free to download under the MIT license. Running it on the ZeroGPU Space is tied to your account quota, and we hit the duration limit at 240 seconds without a paid plan.
Does it need a powerful GPU?
The card asks for a BF16-capable NVIDIA GPU with enough memory for 6.67 GB of weights plus the context. Baidu did not publish an official minimum memory figure, so do not take a number from us.
How is it different from classic image-to-vector tools?
Classic tools trace color boundaries in the pixels and output many paths, without knowing that this is a word and that is a button. This model reads the image as a vision-language model and then writes structured SVG with layers and text, as the official site explains.
Does it work with Arabic text?
The card and site do not list specific languages, and the published examples are in English and Chinese. Try it on an image with Arabic text and compare the output before you rely on it.
Conclusion
Unlimited SVG matters more as an idea than as a finished tool: turning an image into code that can be edited and checked, with a 3B model you can run locally under MIT. If you work in design, documentation or teaching, try it on simple images first, set the temperature by image type, and inspect every file before you use it. For more, read our piece on the open Qwen4-35B-A3B model, our look at Mistral's multimodal embedding model, and browse the design tools on our site.
Comments (0)
No comments yet. Be the first to comment!
Add Your Comment