Redrawing images as SVG code

China's Baidu has released on its Hugging Face organization page the weights (trained parameters) of "Unlimited-SVG," an AI model that redraws images in the editable "SVG" format. SVG represents an image as code that records shapes and text by coordinates and colors, so it does not blur when enlarged and can be edited part by part. The model card's release log gives the release date as Dec. 1.

The model was developed by the multimodal team, which works with images and other inputs, behind Baidu's large language model "ERNIE." It is released under the MIT license, which places few restrictions on use, and no access application is required. According to the Hugging Face API, the repository was created at 12:40 p.m. Nov. 25 Japan time and last updated at 9:32 p.m. Nov. 30 Japan time. The time it became publicly visible is not shown.

On Oct. 27, Baidu also released, under the same MIT license, the weights of "Unlimited-OCR-2," which reads text and tables from document images. The new model card does not explain how the model relates to Unlimited-OCR-2.

Only about 500 million of about 3.3 billion parameters are used

According to the model card, Unlimited-SVG is built on "DeepSeek-OCR," a document-reading model from China's DeepSeek. Baidu says redrawing a complex image as a single SVG often produces more than 10,000 tokens of output, making large models slow and costly.

On the input side, an image-reading component called "DeepEncoder" compresses an entire 2048 × 2048-pixel image into 1,024 vision tokens. Baidu says it does so while preserving small text, thin strokes and exact positions. On the output side, the model uses a "mixture of experts (MoE)" design that activates only some "experts" for each input, and it uses only about 500 million parameters to process each token. Baidu says the combination lets the model keep generating at real-time speed well past 10,000 tokens.

According to the configuration file (config), the language part has 12 layers, selects 6 of 64 experts for each token and also has 2 shared experts. The total parameter count Hugging Face calculated from the weight files is about 3.3361 billion, and the model card does not state a total parameter count.

Baidu claims frontier-model capability in a small model, gives no comparative figures

The project page says that turning complex images into structured SVG has until now been possible only with frontier models such as OpenAI's "GPT-6.2 Astra," Anthropic's "Fable 5.2" and Google's "Gemini 4 Argon." It says Unlimited-SVG achieves this with a small model that uses about 500 million parameters, and that it can run locally without relying on heavy APIs.

However, the model card and project page contain no scores or speed figures comparing performance with those models. The description of real-time generation also does not state conditions such as the type of GPU used. ORIENS found no third-party evaluation in its search.

The project page says the model separates foreground from background and infers parts hidden behind overlapping shapes as it redraws a scene layer by layer, and it shows examples placing original images next to the redrawn SVG. Looking ahead, it lists ideas such as using SVG redrawing in the pretraining of general vision-language models and applying the approach to embodied AI that needs to handle objects precisely.

Runs on Linux with NVIDIA GPUs

The usage examples on the model card assume x86-64 Linux and an NVIDIA GPU that supports BF16. The card gives two inference procedures, one using Hugging Face Transformers and one using the inference software "vLLM." Both resize the image so its long edge is 2048 pixels and place it, without tiling, at the center of a 2048 × 2048 canvas.

The card recommends a low generation temperature (the randomness of the output) of 0 to 0.3 for images that need precise detail, such as CAD drawings, diagrams and charts, and raising it to 0.5 to 0.8 for scenery and photos to avoid repeated output. Baidu's GitHub organization also has a repository of the same name, which showed documentation and the MIT license when ORIENS checked.