Unlimited SVG: 3.3B AI Model Converts Images to Editable Vector Graphics
Baidu's Unlimited SVG is a 3.3B parameter multimodal AI model that converts any image into a structured, editable SVG file, making complex vector graphics…
By Sci Herald Editorial Team ·
Released on Hugging Face by baidu — view the original study
TL;DR: Baidu has released Unlimited SVG, an artificial intelligence model that converts images into structured, editable SVG vector graphics. Its efficient design makes generating complex, long-form SVGs practical on a single consumer-grade GPU, a task previously dominated by large, expensive AI systems.
Key Facts
- Publisher: Baidu
- Release Date: November 25, 2026
- License: MIT
- Parameters: 3.3 billion (3,336,106,240)
- Model Size: ~7 GB (BF16 format)
- Task: Image-text-to-text (converting images to SVG code)
Unlimited SVG at a Glance
| Specification | Detail |
|---|---|
| Repository | baidu/Unlimited-SVG |
| Library | transformers |
| Total Parameters | 3.3B |
| Activated Parameters per Token | ~0.5B |
| Input Image Resolution | 2048 × 2048 |
| License | MIT |
| Hardware Requirements (Our Estimate) | |
|---|---|
| 16-bit (BF16) | ~7 GB |
| 8-bit | ~4 GB |
| 4-bit | ~2 GB |
Note: Memory estimates are for the model weights only; additional memory is required at runtime for context and processing.
What's New
Unlimited SVG addresses a fundamental challenge in AI: generating complete Scalable Vector Graphics (SVG) files for complex images often requires producing over 10,000 tokens of code. This long-context generation is typically slow and computationally expensive for large models.
The model breaks this bottleneck with a two-pronged approach. On the input side, its DeepEncoder component compresses a full 2048x2048 pixel image into just 1,024 vision tokens while preserving critical fine details like small text, thin strokes, and exact spatial coordinates. This dramatically shrinks the amount of visual data the model must process.
On the decoding side, its mixture-of-experts (MoE) architecture is highly efficient, activating only approximately 0.5 billion parameters per generated token. This combination of a minimal visual input and sparse, active computation allows the Unlimited SVG model to sustain real-time generation well beyond the 10,000-token mark. This efficiency makes complex SVG conversion a locally deployable task rather than one requiring heavy, frontier application programming interfaces (APIs) like GPT-6.2 Astra or Claude Fable 5.2.
Recommended Settings
The model card provides specific guidance for the sampling temperature, a parameter that controls the randomness of the output. For deterministic, greedy decoding, set do_sample=False in Transformers or temperature=0 in vLLM.
- For CAD, diagrams, and charts: Use a low temperature (0–0.3) to preserve precise geometry and text accuracy.
- For natural scenes and photos: Use a higher temperature (0.5–0.8) to avoid repetitive patterns and encourage more varied, artistic strokes.
The provided inference scripts automatically resize an input image's longest edge to 2048 pixels, center it on a gray 2048x2048 canvas, and composite any transparent pixels onto a white background to prevent them from turning black.
Can You Run It Locally? Hardware Requirements
Unlimited SVG is small enough for most recent gaming GPUs and Apple Silicon laptops once quantized to 4-bit. The table below is Sci Herald's own estimate from the parameter count, not a figure from the publisher.
| Precision | Weights | Practical minimum | NVIDIA GPU | Apple Silicon Mac |
|---|---|---|---|---|
| 16-bit (BF16/FP16, full quality) | ~6.7 GB | ~8.0 GB | 12 GB GPU (e.g. RTX 4070, RTX 3060 12 GB) | 16 GB unified memory or more |
| 8-bit (Q8 / FP8) | ~3.3 GB | ~4.0 GB | 8 GB GPU (e.g. RTX 4060) | 16 GB unified memory or more |
| 4-bit (Q4 / NF4, small quality loss) | ~1.7 GB | ~2.0 GB | 8 GB GPU (e.g. RTX 4060) | 16 GB unified memory or more |
How we estimate: weights = parameters × bytes per parameter; "practical minimum" adds about 20% for the runtime and a short context. Long contexts, batching and image or audio inputs need more memory. For mixture-of-experts models, all experts must be in memory even though only some are active per token.
How to Run It
The model is designed to run on x86-64 Linux systems with a compatible NVIDIA driver and a BF16-capable GPU. The publisher provides two detailed methods for inference: one using the Hugging Face transformers library and another using the vLLM library for optimized serving.
The transformers example includes a complete Python script that handles image preprocessing, model loading, and inference. The first run will download the ~7 GB model weights from Hugging Face, storing them in a local cache for future use. As shown in the hardware table above, memory requirements can be reduced through quantization. The command to execute the script is:
``bash CUDA_VISIBLE_DEVICES=0.venv-svg-hf/bin/python infer_hf.py /path/to/image.png ``
The output is both saved as a raw text file (output.txt) and parsed into a final output.svg file.
License and Commercial Use
The Unlimited SVG model is released under the MIT license. This is a highly permissive open-source license that allows for free use, modification, distribution, and commercial application of the model with minimal restrictions.
Limitations
The model card does not explicitly list any specific limitations or potential failure modes for the Unlimited SVG model. As with any AI system, users should verify its performance and output accuracy on their own specific data and use cases before relying on it for critical applications.
Related on Sci Herald
- Unlimited SVG vs MiniCPM-OCR 1.0: A Developer's Guide to Image-to-Text Models
- Qwen4 35B A3B: 56.8B Parameter AI for Text and Vision Tasks
- Inkling 2 Mini Uncensored: 26B AI Model With Refusal Removal
- DaisyRose-27B: 27B Multimodal AI Model for Coding and Reasoning
- Trending Vision-Language Models this week
Frequently Asked Questions
Is Unlimited-SVG free for commercial use?
Yes. The model is released under the MIT license, which explicitly permits commercial use, modification, and distribution.
Can I run Unlimited-SVG locally?
Yes. The model is designed for local deployment. As shown in the hardware requirements table, it can run on a single high-end consumer GPU, especially when using 4-bit or 8-bit quantization to reduce its memory footprint.
What kind of images can Unlimited-SVG convert?
The model is designed to handle a wide variety of images at a resolution of 2048x2048, including complex diagrams, CAD drawings, charts with text, and natural photographs. The recommended temperature setting should be adjusted based on the image type for optimal results.
How long does it take to generate an SVG?
The card states the model can sustain "real-time generation" well past 10,000 tokens due to its efficient architecture, but it does not provide specific benchmarks for generation speed, which will vary based on the hardware used.