SVG lags past 10,000 tokens? Baidu uses 0.5B activated parameters to redraw images as editable vectors
Baidu open-sources Unlimited-SVG: about 0.5B activated parameters per token, compresses 2048×2048 images into 1024 visual tokens, can handle over 10,000 tokens when converting complex images to SVG, and runs locally. Includes a video, case images, a demo, and temperature settings.
Baidu has open-sourced Unlimited-SVG, a multimodal model that redraws images as editable SVG. Here are the key numbers first: about 0.5B activated parameters per token, a full 2048×2048 image compressed into 1,024 visual tokens, complex SVG generation can exceed 10,000 tokens, and it can run locally.
It does not stop at tracing pixels. According to the Baidu ERNIE multimodal team's GitHub description, the model first understands shapes, details, and spatial relationships, then reconstructs the image layer by layer. Photos, ink wash paintings, CAD drawings, and scientific charts are all in scope. The video shows the layer-by-layer redrawing process directly.

What is worth noting is how it handles long context. Generating a complete SVG from a complex image often exceeds 10,000 tokens, and large models slow down in that range, with non-trivial cost. Unlimited-SVG is based on DeepSeek-OCR. On the input side, DeepEncoder compresses a 2048×2048 image into 1,024 visual tokens, preserving small text, thin lines, and precise coordinates as much as possible; on the decoding side, it uses MoE, activating only about 0.5B parameters per token. With a short visual prefix and less activated computation, generation beyond 10,000 tokens becomes more practical and can be deployed locally without relying on frontier large-model APIs.
If you want to run it locally, the README provides two sets of scripts for Transformers and vLLM; requirements are x86-64 Linux, uv, NVIDIA drivers, and a GPU that supports BF16. Inference is done globally at 2048×2048 without tiling. Transparent pixels are first composited onto a white background so they do not turn black. Temperature settings also vary by scenario: for CAD, charts, and other cases requiring precise geometry and text, keep temperature between 0 and 0.3; for natural scenes and photos, it can go up to 0.5 to 0.8 to reduce repeated strokes.
Resource links:
- Demo: http://unlimited-svg.github.io/demo/
- GitHub: http://github.com/baidu/Unlimited-SVG
- Hugging Face model: https://huggingface.co/baidu/Unlimited-SVG
- Hugging Face Space: https://huggingface.co/spaces/akhaliq/Unlimited-SVG-ZeroGPU
- ModelScope: https://modelscope.cn/models/baidu/Unlimited-SVG
Some users asked under the tweet how it compares with Quiver, and Chetaslua replied that it is better and faster. This can only be taken as a short review from a firsthand user; no side-by-side testing has been seen yet. Another user asked whether anyone had tried it locally, which also shows that people's concerns are very practical: the output is an editable SVG that can be modified and can enter a workflow, making it more useful than simply generating an image. A small parameter count does not necessarily mean strong capability; details in complex images still depend on the actual output. But it brings long SVG generation from large-model APIs back to local deployment, and that direction is worth watching.
Sources cited: Baidu ERNIE Multimodal Team, Unlimited SVG Works, GitHub repository, and project page.
发布时间: 2026-12-02 13:27