On December 1, 2026, Baidu's ERNIE Multimodal Team open-sourced baidu/Unlimited-SVG on Hugging Face and GitHub under an MIT license, alongside a mirror on ModelScope. It turns raster images up to 2048 x 2048 into layered, editable SVG code while activating ~0.5B parameters per token (3B total). There is no hosted Inference Provider on Hugging Face, and local runs require x86-64 Linux plus a BF16-capable NVIDIA GPU—so if you are on macOS or Windows, start with the online Demo on the project page before touching any local environment.
What comes out, and why the token count spikes
Standard image-to-vector tracers often turn complex scenes into thousands of flat, ungrouped path fragments that are painful to edit afterward. On the Unlimited SVG project page, Baidu's case studies show the model separating foreground from background, reasoning about hidden geometry behind overlapping shapes, and rebuilding scenes layer by layer. In the live source view beside the city scene demo, geometry is organized using clipPath and background groupings rather than dumped as raw flat paths.

That structure comes with long outputs. Generating a complete SVG for a dense scene routinely exceeds 10,000 tokens, so both official inference scripts push the generation cap to 30000 tokens. If a complex image hits that ceiling before closing the root tag, the scripts throw a runtime error and leave the raw text saved in output.txt or output-vllm.txt. To keep input prefixes from eating up VRAM first, DeepEncoder from DeepSeek-OCR compresses a full 2048 x 2048 image into 1024 vision tokens while retaining small text and thin strokes.
Hardware floor and two local deployment routes
Check your hardware before pulling weights. The Hugging Face model card requires x86-64 Linux, a compatible NVIDIA driver, a free BF16-capable GPU, Python 3.12, and uv; macOS and Windows are not supported for local runs. Weights ship as sharded BF16 Safetensors (3,336,106,240 parameters) with no quantized builds or hosted Inference Providers yet.

The docs split into two virtual environments and inference paths. Do not mix them in one environment, because their PyTorch dependencies conflict:
- Transformers route (
infer_hf.py): Pinstorch==2.6.0,transformers==4.46.3,accelerate==1.16.0, andsafetensors==0.8.0. You must passtrust_remote_code=Trueto load the custommodeling_unlimitedsvg.UnlimitedSVGForCausalLMclass withattn_implementation="eager"and the prompt<image> SVG:. Notably, the script checks single-shard Safetensors metadata viasafe_openand falls back to explicitstate_dictloading withlow_cpu_mem_usage=Falsewhen metadata is missing. - vLLM route (
infer_vllm.py): Upgrades tovllm==0.33.0,torch==2.14.0, andnvidia-cudnn-cu13==9.24.0.43, adding a customLD_LIBRARY_PATHexport for the cuDNN shared library. Before booting the server, you have to run a provided Python snippet that patchesvllm/transformers_utils/processors/deepseek_ocr.pyin place—forcingBASE_SIZE = 2048,IMAGE_SIZE = 2048, andCROP_MODE = False.
That patch is mandatory. Skip it, and vLLM falls back to default tiling, breaking global spatial alignment. The official vllm serve command also locks context to --max-model-len 32768, caps concurrency at --max-num-seqs 1, sets --gpu-memory-utilization 0.8, and disables prefix caching and multimodal processor caching. On the client side, infer_vllm.py streams completions on port 10000 with a 6000-second timeout, extracts the <svg>...</svg> block via regex, and validates the XML with ElementTree.fromstring.
Preprocessing rules, temperature settings, and current gaps
Defaults will trip you up on photos and transparent PNGs. Two script details matter right away.
First is canvas preparation. Both scripts apply EXIF orientation and run a flatten_alpha helper to composite transparent pixels onto solid white (255, 255, 255) so alpha channels do not turn black. Next, ImageOps.pad scales the long edge to 2048 pixels using bicubic resampling while keeping aspect ratio, centering it onto a gray (127, 127, 127) 2048 x 2048 canvas without tiling.
Second is sampling temperature. By default, infer_hf.py wraps model.generate to force greedy decoding (do_sample=False, no_repeat_ngram_size=0, and repetition_penalty=1), while infer_vllm.py sends temperature=0. Baidu notes that CAD drawings, diagrams, and charts need low temperatures (0-0.3) to keep geometry and text exact. Natural scenes and photos need higher temperatures (0.5-0.8) to avoid repetitive loops. On infer_hf.py, passing a flag alone does nothing—you must edit that greedy override wrapper first.

The GitHub root directory also shows what is missing today. Beyond README.md, LICENSE, CONTRIBUTING.md, and assets, the repo only holds infer_hf.py and infer_vllm.py. There is no local Web UI in the repository, nor any training code or fine-tuning pipeline—so if you want a zero-config preview first, use the hosted Demo and Full Playground on the project page. Generic docker model run and SGLang blocks auto-generated in the Hugging Face sidebar are not part of Baidu's documented setup either.
Should you wire it into a workflow now?
If you convert UI mockups, schematics, or CAD sketches into editable vectors, MIT-licensed local weights eliminate the token bill of calling GPT-6.2 Astra or Claude Fable 5.2 for 10,000+ token outputs. Still, it is not ready for multi-user serving. With --max-num-seqs 1, a 6000-second timeout, and an in-place vLLM patch, treat it as a single-GPU workstation or offline batch tool. Test the online Playground first, then run infer_hf.py on one transparent diagram at temperature 0 and one photo at 0.5 or 0.8 to measure runtime and XML closure before building around it.