Unlimited-SVG is Baidu’s multimodal model for converting images into structured, editable SVG drawings. It targets a bottleneck in image tracing: complex SVG output can exceed 10,000 tokens, making generation slow and costly for large models. The system compresses images up to 2048 × 2048 pixels into 1,024 vision tokens while aiming to retain fine details, including small text, thin lines, and spatial positions. Its mixture-of-experts design activates about 0.5 billion parameters per token, which Baidu says enables real-time generation even for long SVG sequences and makes local deployment practical.
The model is available for inference through Transformers or vLLM on x86-64 Linux with a compatible NVIDIA GPU that supports BF16. The provided workflows resize images while preserving their aspect ratio, center them on a neutral 2048 × 2048 canvas, and composite transparency onto white; they can generate up to 30,000 new tokens and save the resulting SVG after checking that it is complete and valid XML. Greedy decoding is the default for reproducibility. Low temperatures are recommended for diagrams, charts, and CAD images where geometry and text must remain consistent, while higher temperatures are suggested for photos and natural scenes to encourage varied strokes and reduce repetitive output.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.