Description
Unlimited-SVG is a multimodal AI model developed by Baidu designed to tackle the challenge of converting complex visual inputs into structured, editable Scalable Vector Graphics (SVG). Generating complete SVGs for intricate images often exceeds 10,000 tokens, placing traditional models into a long-context regime where generation becomes slow and resource-intensive. Unlimited-SVG addresses this computational bottleneck by redesigning both the input encoding and the decoding process.
Read More
Built on top of DeepSeek-OCR principles, the model features a specialized input encoder named DeepEncoder. This component compresses an entire 2,048 by 2,048 pixel image into just 1,024 vision tokens while preserving essential fine details such as thin strokes, small text, and exact spatial coordinates. This dramatically shrinks the visual prefix before decoding begins. On the decoding side, the model utilizes a mixture-of-experts (MoE) architecture that activates only approximately 0.5 billion parameters per token. By combining a minimal visual prefix with sparse active compute, Unlimited-SVG sustains real-time generation beyond 10,000 tokens, making long-horizon complex SVG conversion practical on compact, locally deployable hardware rather than relying solely on heavy cloud APIs.
The model is made available as an open-source resource on Hugging Face as baidu/Unlimited-SVG, allowing developers and researchers to download weights, explore repository files, and run local inference. It supports global inference at 2,048 by 2,048 resolution. For optimal results, inference pipelines handle image preprocessing through tools like ImageOps.pad to resize long edges while preserving aspect ratios and centering images on a uniform canvas without tiling. Transparent pixels are automatically composited onto white backgrounds to prevent black rendering artifacts.
Inference can be executed locally on x86-64 Linux environments equipped with a compatible NVIDIA driver, a free BF16-capable GPU, and the uv package manager. Developers can integrate the model using Hugging Face Transformers or run high-throughput deployments via vLLM servers configured with a 2,048 by 2,048 image processor. Sampling parameters can be adjusted based on the image type; tasks requiring exact detail consistency, such as CAD drawings, charts, and diagrams, benefit from low temperatures between 0 and 0.3 for deterministic output, while natural scenes and photos can utilize higher temperatures to avoid repetitive loops and encourage varied stroke generation.
Unlimited-SVG is targeted at developers, designers, and researchers seeking a locally deployable, open-source solution for automated vector graphic generation, diagram conversion, and image tracing tasks. By lowering computational overhead and supporting efficient local deployment, it bridges the gap between high-fidelity visual understanding and structured vector output.
- CategoryAI Models & LLMs
- Pricing ModelOpen source
- DeploymentRuns locally
- PlatformsLinux
Unlimited-SVG Highlights
Image-text-to-text multimodal architecture
3 billion total parameters with 0.5B activated per token
DeepEncoder visual compression into 1024 vision tokens
Supports 2048 x 2048 global inference resolution
Mixture-of-experts (MoE) sparse active compute
Real-time SVG generation past 10,000 tokens
Local deployment support via Hugging Face Transformers
vLLM server integration support
Aspect ratio preservation and padding handling
Alpha channel compositing onto white background
Adjustable sampling temperature for CAD and natural scenes
Getting Started with Unlimited-SVG
Access model page: Navigate to the baidu/Unlimited-SVG repository on Hugging Face.
Authenticate: Set up your environment on an x86-64 Linux system with a BF16-capable NVIDIA GPU and uv installed.
Configure inference: Set up the image processor for 2048 x 2048 input without tiling and configure sampling temperature based on image type.
Run model: Execute inference scripts using either Hugging Face Transformers or vLLM server deployment to generate structured SVG code from input images.
Unlimited-SVG's Use Cases
- Image to SVG Conversion
- CAD and Diagram Tracing
- Long-Context Vision Tasks
- Local Model Deployment
- Natural Scene Vectorization









