Overview
Baidu's ERNIE multimodal team open sourced Unlimited SVG on December 1, 2026, a model that redraws bitmaps as editable vector graphics. The approach differs from pixel tracing: a multimodal model first reads what elements are in the image, which ones occlude others and how foreground and background separate, then writes each element as SVG code with coordinates and groups.
It builds on DeepSeek-OCR and reuses its DeepEncoder. On input, the long edge is scaled to 2048, the canvas is padded with gray and transparency is flattened onto white, then the whole 2048 by 2048 canvas is compressed into 1,024 vision tokens that keep small text, thin strokes and spatial coordinates. The decoder is a mixture-of-experts that activates about 0.5 billion parameters per token out of roughly 3 billion total, which is what lets it emit SVGs beyond 10,000 tokens at real-time speed.
Structured material is where it does best. In a Transformer architecture diagram, labels such as Output Probabilities and Positional Encoding come out as text elements instead of traced outlines, so type and font remain editable after import. Flowchart blocks, arrows and captions land in separate groups. Floor plans, part drawings, ink wash paintings and calligraphy all appear in the official examples, with strokes split into independent paths and paper tone separated from ink.
In a measured run, a 796 by 1156 photo produced 12,855 tokens at about 231 tokens per second, finishing in 71.5 seconds as a 31.6 KB SVG. Composition and pose held up, while faces and the robot dog shell were simplified into a flat illustration style. Baidu also states the boundaries: editability of complex curves depends on source sharpness, and CAD drawings yield lines and labels but no engineering constraints or 3D semantics, so they do not replace a real CAD file.
Key Features
- Understand first, then redraw: Separates foreground from background, infers occlusion and redraws layer by layer, so output carries groups and coordinates instead of scattered tracing paths
- 0.5B activated parameters: A roughly 3B parameter MoE that activates about 0.5B per generated token, keeping per-step decoding cheap enough for ordinary GPUs
- 2048 canvas into 1,024 tokens: DeepSeek-OCR's DeepEncoder preserves small text, thin strokes and exact coordinates while shortening the visual prefix enough for long outputs
- SVGs past 10,000 tokens: Baidu says complex SVGs beyond 10,000 tokens generate in real time, with vLLM context configurable to 32,768 for dense illustrations and drawings
- Text stays text: Labels in diagrams and charts are written as text elements, so content and fonts can be edited directly in Figma, Illustrator or Inkscape
- Temperature guidance by scene: Use 0 to 0.3 for drawings, charts and architecture diagrams to protect geometry, and 0.5 to 0.8 for photos and artistic strokes to avoid repetition loops
Use Cases
- Convert paper architecture diagrams and flowcharts into vector files with editable labels for journal layout
- Turn floor plans, part drawings and CAD screenshots into layer-by-layer editable SVG
- Vectorize stickers, flat icons and cartoon characters for lossless scaling
- Batch-convert internal design drawings that cannot be uploaded to a cloud service
- Split calligraphy and ink paintings into separate strokes and paper backgrounds for derivative work
Pros
- Layered, grouped output means changing one color block does not require redrawing the image
- With 0.5B activated parameters, local deployment needs modest GPU memory
- Text remains as text elements, which saves time on diagrams and charts
- MIT licensed with both weights and inference scripts available
- One model covers illustrations, technical drawings, calligraphy and photos
Pricing
Code and weights are open under MIT on GitHub at baidu/Unlimited-SVG and on Hugging Face at baidu/Unlimited-SVG, free to download, modify and use commercially. The project site at unlimited-svg.github.io hosts an online demo that takes an image and returns an SVG. Local deployment recommends x86-64 Linux, Python 3.12 and an NVIDIA GPU with BF16 support; the repository ships a single-machine Transformers script and a vLLM service on port 10000 with an OpenAI-compatible interface. Baidu does not publish a fixed memory floor, since usage depends on resolution and output length.
Summary
Unlimited SVG turns vectorization from tracing into understanding and rewriting, and what that buys is editability: groups, layers, coordinates and real text elements all survive into a design tool. With 0.5B activated parameters it runs locally, and outputs past 10,000 tokens still generate in real time. The boundaries are just as clear, since realistic photos become flat illustrations, dense text can still be misread and CAD drawings carry no engineering semantics. For paper figures, icons and floor plans, it removes a large amount of manual redrawing.
Version History
- ERNIE Unlimited SVG goes open source (2026-12-01): Baidu open sourced Unlimited SVG, built on DeepSeek-OCR with about 3 billion total parameters and roughly 0.5 billion activated per token; a 2048 pixel canvas is compressed into 1,024 vision tokens, and the model can generate complex SVG beyond 10,000 tokens with a 32,768 token vLLM context; output carries layers, groups and coordinates, and text stays as text elements; it ships under MIT on GitHub and Hugging Face with local deployment and an online demo