---
id: 18830
lang: en
title: "Baidu open-sources a model that turns images into SVG: 0.5 billion of 3.34 billion parameters active"
published_at: "2026-12-01 14:24:33"
source_name: "TG: @cgevent (Метаверсище и ИИще)"
source_url: "https://t.me/cgevent/17579"
canonical_url: "https://news.hamidun.com/en/news/18830"
categories: ["research", "creative"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

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

> **Краткая суть (BLUF):** 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.  • Input at 2048×2048 is compressed by the encoder into 1024 visual tokens • Weights: a single 6.21 GiB file in BF16, requires an NVIDIA GPU • Temperature 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.

---
- **Первоисточник:** [TG: @cgevent (Метаверсище и ИИще)](https://t.me/cgevent/17579)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18830
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
