# Unlimited-SVG

> Source: https://aiwiki.ai/wiki/unlimited_svg
> Updated: 2026-12-02
> Categories: Computer Vision, Image Generation
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "Unlimited-SVG." aiwiki.ai, 2 Dec 2026. https://aiwiki.ai/wiki/unlimited_svg
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

**Unlimited-SVG** is a [vision-language model](https://aiwiki.ai/wiki/vision_language_model) from [Baidu](https://aiwiki.ai/wiki/baidu)'s ERNIE multimodal team that converts images into editable Scalable Vector Graphics (SVG). Released on December 1, 2026, it takes a raster image as input and generates the markup needed to redraw it. A reader can render the result beside the original or edit individual shapes, colors and coordinates in the file.[1][2]

## How it redraws an image

Baidu built Unlimited-SVG on [DeepSeek-OCR](https://aiwiki.ai/wiki/deepseek_ocr), a system originally developed to compress images of documents into a short sequence of visual tokens. Unlimited-SVG uses the DeepEncoder component to represent a 2,048 by 2,048 pixel canvas with 1,024 visual tokens. Baidu's reference implementation scales the input to fit that square while preserving its aspect ratio and pads the remaining space. The encoder sees the entire canvas at once.[1][2][3]

A [mixture-of-experts](https://aiwiki.ai/wiki/mixture_of_experts) decoder then predicts the SVG markup token by token. The downloadable checkpoint contains about 3.34 billion parameters. Baidu estimates that about 500 million parameters are active per output token. Its configuration specifies 64 routed experts, of which six are selected per token, alongside two shared experts. The short visual input can produce a much longer output: the team reports that detailed drawings can require more than 10,000 tokens of SVG code.[1][4][5]

## Demonstrations and evaluation

The project gallery pairs source images, vector renderings and generated code. One example shows a city skyline with traffic light trails. Converting that scene involves deciding which strokes to draw in front of buildings as well as where the strokes belong. A reader can inspect the drawing order in the SVG and compare the rendered silhouette with the photograph.[1]

Baidu published inference examples for Transformers and [vLLM](https://aiwiki.ai/wiki/vllm). Its examples use greedy decoding by default. The developers suggest low sampling temperatures for diagrams and charts where reproducing the geometry matters, and higher temperatures for photographs where generation can otherwise repeat strokes. As of December 2, 2026, the project page illustrated its results with selected examples and listed a technical report as forthcoming. It did not give a benchmark score for reconstruction accuracy.[1][2]

## Availability

Baidu published the model weights in BF16 format on Hugging Face under the MIT License. The repository includes the image processor, configuration and tokenizer as well as the weights. The license permits commercial use and redistribution with the copyright and permission notices retained.[4][6]

## References

1. Baidu ERNIE Multimodal Team. [Unlimited SVG Works project and case studies](https://unlimited-svg.github.io/).
2. Baidu. [Unlimited-SVG release notes and inference implementation](https://github.com/baidu/Unlimited-SVG). December 1, 2026.
3. Haoran Wei, Yaofeng Sun and Yukun Li. [DeepSeek-OCR: Contexts Optical Compression](https://arxiv.org/abs/2510.18234). arXiv, 2025.
4. Baidu. [Unlimited-SVG model card and weights](https://huggingface.co/baidu/Unlimited-SVG). Hugging Face.
5. Baidu. [Unlimited-SVG model configuration](https://huggingface.co/baidu/Unlimited-SVG/blob/main/config.json).
6. Baidu. [License distributed with the model weights](https://huggingface.co/baidu/Unlimited-SVG/blob/main/LICENSE).

