Baidu Open-Sources Wenxin Unlimited SVG: A Lightweight Model for Image-to-Editable Vector Graphics
Baidu released and open-sourced Wenxin Unlimited SVG, a lightweight model that uses an LLM to directly generate editable vector graphics from images.
On December 1, Baidu released and open-sourced Wenxin Unlimited SVG, a lightweight vector graphics generation model. Unlike mainstream diffusion models that output pixel-based images, this model uses a language model to directly generate SVG code, reconstructing visual information through coordinates, lines, shapes, and color values. The generated results are highly editable and can be scaled infinitely without loss of quality.
According to the technical blog, the model is built on DeepSeek-OCR and adopts a Mixture-of-Experts (MoE) architecture with approximately 0.5 billion active parameters per token. To handle complex graphics efficiently, it compresses a full 1024x1024 image into just 256 visual tokens at the input stage, preserving fine details like small text and thin lines. At the decoding stage, the sparse MoE design allows the model to maintain fast output speeds even when generating long sequences exceeding 10,000 tokens. This smaller active scale also lowers the barrier for local deployment and integration.
The model's capabilities extend beyond simple logos or icons to more complex professional scenarios. It can distinguish foregrounds and backgrounds, infer occlusion relationships, and redraw images layer by layer. In practical applications, it can convert academic paper diagrams, CAD engineering drawings, and architectural floor plans into editable vector elements. Designers and developers can use these outputs as drafts for secondary creation, adjusting individual elements' colors, sizes, and positions without redrawing from scratch.
Initial hands-on tests reported by ZhiDongXi showed high fidelity in recreating cartoon characters with distinct color blocks, though performance in realistic portrait rendering and low-contrast text recognition still has room for improvement. The model weights are now available on GitHub and Hugging Face, along with an online demo.