Unlimited-SVG on Windows: an 11 GB portable bundle, unzip and go
Baidu open-sourced Unlimited-SVG on 2026-11-25 — a multimodal model that redraws photos, charts, UI screenshots and CAD drawings as structured, editable SVG. Code and weights are MIT. The repo had 1565 stars when this was written (2026-12-02).
The catch: inference scripts target x86-64 Linux with uv. Running it on Windows means assembling Python, torch and CUDA by hand, then patching the safetensors loading path to get around WDDM VRAM allocation. I packaged the whole thing instead — portable Python, 6.2 GB of weights, ~11 GB total, no network, no system changes.
Download (Quark, unzip and run): https://pan.quark.cn/s/1dd2fd2522cd Needs: Windows 10/11 64-bit · NVIDIA RTX 30 series or newer · ≥ 12 GB VRAM · ~11 GB disk
1. Why it is fast: 10,000 tokens of output, real time
A full SVG for a complex image easily exceeds 10,000 output tokens — the long-context regime where large models get slow and expensive. Unlimited-SVG cuts the bottleneck at both ends:
- Input side. It builds on DeepSeek-OCR. DeepEncoder compresses a full 2048 × 2048 image into just 1024 vision tokens, while keeping small text, thin strokes and exact coordinates.
- Decode side. The MoE architecture activates roughly 0.5B parameters per token.
A short visual prefix plus sparse active compute is what makes generation past 10,000 tokens practical in real time. The README frames it as: work that used to need GPT-6.2 Astra or Claude Fable 5.2 over an API now fits on a local GPU. There is marketing in that sentence, but the direction holds — an RTX 3060 12 GB runs it.
Weights are on Hugging Face and ModelScope. If you only want to test quality, use the hosted Space (akhaliq/Unlimited-SVG-ZeroGPU) before downloading 11 GB.
2. What is in the bundle
| Item | Detail |
|---|---|
| No install | Portable Python runtime plus all dependencies; system env and CUDA untouched |
| No network | Weights included (~6.2 GB); bundle is ~11 GB |
| Privacy | Inference is fully local; images never leave the machine; works offline |
| Relative paths only | Extract to any drive or folder; nothing hardcoded |
| Official UI | Same interface as the official “Unlimited SVG Works” demo, streaming output |
| Extra | Classic UI ships a vtracer 1:1 tracing mode, CPU only, seconds per image |
Two Windows-specific changes matter, because they are exactly why the official script fails:
- safetensors metadata is filled in. The repo ships a single
model*.safetensorswith empty metadata, sofrom_pretrained(low_cpu_mem_usage=True)blows up on Windows. The bundle loads viadevice_mapinstead, which sidesteps WDDM VRAM allocation. - The web server binds and firewall rules are fixed, so
127.0.0.1:10000no longer hangs on a blank spinner.
The rest of the yak-shaving — native Triton on Windows, torch.compile version alignment — is written up in a separate post.
3. Three steps
Step 1 — allow the firewall (once).
Right-click 防火墙放行.bat → Run as administrator. Windows Firewall blocks local port listening by default. Skip this and the web UI spins forever with no error message, which is the single most common place people get stuck.
Step 2 — start the web UI.
Double-click 启动网页版.bat. The browser opens http://127.0.0.1:10000. Upload or drag an image (Ctrl+V paste also works) → Generate SVG → watch it stream → preview, read the source, download the SVG, or export a trace-animation GIF.
Shortcut: drag an image onto 图片转SVG-网页版.bat and drop it — the page opens and conversion starts immediately.
Step 3 (optional) — 1:1 tracing.
The classic UI lives at http://127.0.0.1:10000/classic and adds a vtracer pixel-level mode. The two modes are not interchangeable; picking the wrong one wastes minutes:
| AI redraw (default) | 1:1 trace (vtracer) | |
|---|---|---|
| Method | Model reads the image, then redraws it | Pixel-level contour tracing |
| Output | Semantically grouped SVG, elements editable by path | Fidelity to shape and color, no semantics |
| Speed | Seconds to minutes, depends on content | A few seconds, CPU only |
| Best for | Charts, UI screenshots, illustrations, CAD | Logos, stamps, anything that must match exactly |
4. Practical settings
- Temperature. CAD, charts, diagrams: keep it at 0–0.3 to preserve geometry and text. Natural scenes and photos: 0.5–0.8, otherwise generation loops into repeating strokes. Open Decoding settings top-left; default 0.5 is fine for most images.
- VRAM. The UI defaults to “auto”: it tries 2048 first and falls back to 1024 when memory is short. You can also pin “high fidelity 2048” or “fast 1024”. Verified on an RTX 3060 12 GB.
- Timing. 10–20 s for simple graphics, several minutes for busy images. This is a redraw, not a pixel copy.
- LAN sharing. After the firewall rule, change
hostinscripts\web_app.pyto0.0.0.0; colleagues reach it athttp://your-ip:10000. - Batch tracing. Select several images, drop them on
图片转SVG-描摹版.bat, andscripts/trace_cli.pywrites a same-named.svgnext to each source — useful for vectorizing a pile of logos or icons.
5. Limitations — who should skip it
- The hardware floor is real. RTX 30 series and 12 GB VRAM minimum. Integrated GPUs, laptop MX chips and AMD cards are out. Without an NVIDIA card, use the hosted Space and skip the 11 GB.
- Output is approximate, not pixel-exact. For shape and color accuracy, use the vtracer mode or Illustrator’s image trace. Do not expect a diffusion model to reproduce an image exactly.
- Cost scales with content, not resolution. Input is always padded to a 2048 × 2048 gray canvas, so a small but busy image can be slower than a large simple one.
- SVGs come out large. Semantic redraws generate many paths; expect files several times bigger than a hand-traced SVG. Watch out when inlining them in a page.
- No API server. You get a web UI and a CLI. Pipelines need your own wrapper, and there is no concurrency — one image at a time per GPU.
6. Links
Download (Quark, ~11 GB, unzip and run): https://pan.quark.cn/s/1dd2fd2522cd
Not affiliated with Baidu or the model authors. The bundle is third-party packaging distributed under MIT. Output quality varies with hardware; timings above were measured on an RTX 3060 12 GB, as of 2026-12-02.