Baidu Unlimited SVG: Open Model That Turns Any Image into Editable SVG

Baidu opens Unlimited SVG under MIT: 3B parameters with about 0.5B active, a 2048×2048 image in 1,024 vision tokens, and editable SVG output. We tried the studio and here are the results plus the local setup steps.

Baidu Unlimited SVG: Open Model That Turns Any Image into Editable SVG
Baidu opens Unlimited SVG under MIT: 3B parameters with about 0.5B active, a 2048×2048 image in 1,024 vision tokens, and editable SVG output. We tried the studio and here are the results plus the local setup steps.

Baidu Unlimited SVG: Open Model That Turns Any Image into Editable SVG

Share:
⏱ 10 min read🔓 MIT🖼 Image to SVG✍ NOOR 4 TECH team

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.

The baidu/Unlimited-SVG model card on Hugging Face showing likes, downloads and model size
Figure 1: The model card on Hugging Face. (1) 1.87k likes. (2) 24,016 downloads in the last month. (3) Model size 3B parameters at BF16. (4) 18 Spaces using the model.

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.

Files in the baidu/Unlimited-SVG repository showing one 6.67 GB weights file and the code files
Figure 2: The repository files. (1) The whole repo is 6.69 GB. (2) One weights file, model-00001-of-000001.safetensors, at 6.67 GB. (3) deepencoder.py, the visual encoder.

The numbers in a table

ItemValueSource
DeveloperBaidu ERNIE, multimodal teamOfficial site, model card
Release dateDecember 1, 2026Release section of the card
Parameters3B total, about 0.5B active per tokenModel card, TechNode
Base modelDeepSeek-OCR and its DeepEncoderModel card, DeepSeek-OCR paper
Input resolution2048×2048 pixels compressed to 1,024 vision tokensModel card, TechNode
Output lengthUp to 30,000 new tokens in the Transformers example, 32,768 context in the vLLM setupModel card
Weights size6.67 GB in a single BF16 safetensors fileHugging Face file tree
LicenseMITGitHub, model card
How to runTransformers or vLLM on x86-64 Linux with a BF16-capable NVIDIA GPUModel card
About the numbers: the 3B total and 0.5B active figures appear the same way in the model card and in TechNode's report. The file size comes from the repository file tree at review time and can change with updates.
The baidu/Unlimited-SVG repository on GitHub showing stars, license and the inference scripts
Figure 3: The GitHub repo. (1) About 2.9k stars. (2) MIT license. (3) infer_hf.py and infer_vllm.py. (4) Two contributors on the project.

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.

The Unlimited SVG studio on Hugging Face after uploading our own test image
Figure 4: The studio with our image loaded. (1) The uploaded image, 32 KB, fitted to 2048 squared. (2) Temperature buttons from 0 to 0.8. (3) The default output length, Auto, about 12k tokens. (4) The Vectorize button that starts the conversion.

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.

Practical warning: if you plan to try the free Space, expect this limit. Your options are a PRO account, running the model locally on a GPU, or one of the other 18 Spaces that may be less busy. Do not treat the free Space as a substitute for local inference on real work.

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.

A comparison from the official site between an original photo and its SVG rendering, with the SVG source
Figure 5: Examples published by the team on the official site. (1) The original photo. (2) The SVG rendering. (3) The SVG code the model wrote. (4) The case strip, 13 cases in total.

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.

  1. 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.
  2. Take infer_hf.py from the repository. It prepares the image, calls the model and extracts the SVG from the output.
  3. Run it on your image: CUDA_VISIBLE_DEVICES=0 .venv-svg-hf/bin/python infer_hf.py /path/to/image.png
  4. 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.
  5. 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
Tip: the card flags two small details that ruin results: images with transparency must be composited onto white first or they come out black, and the image is fitted to 2048×2048 with no tiling. The script does both, so leave those lines alone unless you know why you are changing them. If you need to shrink a large image before uploading, use our image compressor.

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 typeTemperatureWhy
CAD, diagrams, charts and other exact-detail images0 to 0.3Keeps precise geometry and text
Natural scenes and photos0.5 to 0.8Avoids 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.

License warning: the weights are MIT licensed per the repository, which usually allows commercial use, but read the license text in the repo before you rely on it in a product. The license covers the model, not the images you feed it, so check the rights to the original image yourself.

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.

⭐ Featured Recommendation

📈 Double Your Site Traffic & Revenue with Featured Backlinks & SEO

Get a pinned Featured Backlink in our directory or a complete SEO audit by NOOR 4 TECH experts to dominate rankings.

Explore Featured Package ⭐
💼 NOOR 4 TECH Professional Services

Looking for a Technical Partner for Your Next Project?

We deliver enterprise web development, mobile apps, technical SEO, and AI automation.

Author

Ibrahim Moustafa

Electronics and communications engineer, working in IT since 2004. He reviews NOOR 4 TECH articles and tests its tools himself before publication.

Comments (0)

No comments yet. Be the first to comment!

Add Your Comment

Your email will not be published. Comments require review before publishing.