Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →

Baidu open-sources a model that turns images into SVG: 0.5 billion of 3.34 billion parameters active

Baidu has released Unlimited-SVG, a model that converts PNG or JPG images into SVG, meaning vector code where each object can be edited separately. The model has 3.34 billion parameters, but only about 0.5 billion are activated for each token, which keeps SVG output stable beyond 10,000 tokens. The MIT license permits commercial use. For designers, it offers a local way to get editable icons and diagrams.

AI-processed from TG: @cgevent (Метаверсище и ИИще); edited by Hamidun News
Baidu open-sources a model that turns images into SVG: 0.5 billion of 3.34 billion parameters active
Source: TG: @cgevent (Метаверсище и ИИще). Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceTG: @cgevent (Метаверсище и ИИще) ↗
Editor-in-Chief
Key metric #1Input at 2048×2048 is compressed by the encoder into 1024 visual tokens
Weightsa single 6.21 GiB file in BF16, requires an NVIDIA GPU
Key metric #3Temperature 0–0.3 for drawings and charts, 0.5–0.8 for photos

Baidu has released Unlimited-SVG, a model that converts an ordinary image (PNG or JPG) into SVG. SVG is a vector format, essentially text code: "draw a circle of such-and-such color, then a rectangle on top of it." It can be scaled without losing quality and edited by hand.

The headline contains two numbers. 3.34 billion is the total number of parameters (internal settings) in the model. 0.5 billion is how many of them actually work when generating each token, meaning each next piece of code. The remaining "experts" sit idle at that moment, so the model runs faster than its size would suggest. The MIT license means the code and weights can be used freely, including in commercial products.

Anyone who has tried to turn a raster logo or a diagram screenshot into a vector knows the problem. Classic auto-tracing traces around pixels and produces hundreds of nodes and curves that do not resemble how a person would draw. The file is technically vector, but changing the color of a single element or moving a block in a diagram is nearly impossible. The ERNIE Multimodal team proposes a different approach: the model writes SVG code the way a designer would, layer by layer.

How the model builds the vector

Instead of tracing pixel by pixel, Unlimited-SVG first breaks the image down into semantic parts: objects, contours, colors, and which element overlaps which. It then builds the scene as code in sequence. The background comes as a separate layer, shapes go on top of it, and details go on top of those. Such SVG is easier to edit by hand, animate, or drop into templates.

The main engineering challenge is length. A complex drawing becomes an SVG tens of thousands of characters long, and ordinary models slow down and start repeating themselves at that scale. Baidu built on the architecture of DeepSeek-OCR. At the input sits the DeepEncoder, which compresses a full 2048×2048 canvas, without splitting it into tiles, into just 1024 visual tokens. According to the authors, fine text and thin strokes are preserved. At the output, a sparse Mixture-of-Experts decoder works: of the 3.34 billion parameters, roughly 0.5 billion are activated per token. This keeps generation stable even for SVG longer than 10,000 tokens.

What you need to run it

The model weights are small: a single safetensors file of 6.21 GiB in BF16 format. It can be run locally on an NVIDIA GPU with BF16 support, via Transformers or vLLM. According to the post, it was tested on x86-64 Linux with the uv package manager. A transparent background (alpha channel) is automatically replaced with white, which matters if you need cut-out objects.

The authors also give recommendations for sampling temperature, a parameter that controls how "bold" the model is when choosing the next token. By default, greedy decoding is used, meaning temperature=0. For CAD drawings, charts, and diagrams, they recommend the range 0–0.3, which keeps geometry more precise. For photographs and live scenes, 0.5–0.8 works better, otherwise the model may get stuck in a loop and repeat the same strokes.

What this means in practice

The first use case is obvious: converting old logos, icons, and illustrations from PNG and JPG into proper source files. The second is making diagrams and charts from presentations and PDFs editable. The third is AI pipelines where SVG serves as an intermediate format. For example, one model generates an image, Unlimited-SVG vectorizes it, and then edits are made in code or by another model.

For teams that currently pay for cloud vectorizers or redraw materials by hand, a locally run MIT-licensed model removes the questions of cost and source-file privacy. You can compare it with cloud services on your own images, not on demos.

Limitations

So far, these are the developers' claims from the post and the repository. The article contains no independent comparisons with Potrace, Vectorizer.AI, or other neural vectorizers. Quality on complex photographs is likely weaker than on flat graphics: the recommendation to use a higher temperature for photos hints that the model is less predictable there. A BF16-capable GPU is also required, so it will not run on a weak laptop without a GPU. Before adopting it, run a dozen typical images through it and compare the results on two criteria: how closely the output resembles the original and how easily the file can be edited afterward.

Details are available on the baidu/Unlimited-SVG model card on Hugging Face, in the GitHub repository, and in the demo on the project website.

Story

Key Questions Answered

How the model builds the vector?

Instead of tracing pixel by pixel, Unlimited-SVG first breaks the image down into semantic parts: objects, contours, colors, and which element overlaps which. It then builds the scene as code in sequence. The background comes as a separate layer, shapes go on top of it, and details go on top of those. Such SVG is easier to edit by hand, animate, or drop into templates. The main engineering challenge is length.

What you need to run it?

The model weights are small: a single safetensors file of 6.21 GiB in BF16 format. It can be run locally on an NVIDIA GPU with BF16 support, via Transformers or vLLM. According to the post, it was tested on x86-64 Linux with the uv package manager. A transparent background (alpha channel) is automatically replaced with white, which matters if you need cut-out objects. The authors also give recommendations for sampling temperature, a parameter that controls how "bold" the model is when choosing the next token.

What this means in practice?

The first use case is obvious: converting old logos, icons, and illustrations from PNG and JPG into proper source files. The second is making diagrams and charts from presentations and PDFs editable. The third is AI pipelines where SVG serves as an intermediate format. For example, one model generates an image, Unlimited-SVG vectorizes it, and then edits are made in code or by another model.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — Baidu open-sources a model that turns images into SVG: 0.5 billion of 3.34 billion parameters active https://news.hamidun.com/en/news/18830/baidu-open-sources-a-model-that-turns-images-into-svg-0-5-bi

What do you think?
Loading comments…