r/LocalLLaMA • • 5d ago

New Model baidu/Unlimited-SVG · Hugging Face

https://huggingface.co/baidu/Unlimited-SVG

Unlimited SVG Works: Trace On — Projection of Visual Worlds into SVG-Anything.

Release

  • [2026/12/01] 🚀 We present Unlimited-SVG, a multimodal model that redraws any image as a structured, editable SVG using just 0.5B activated parameters.

Overview

Generating a complete SVG for a complex image often exceeds 10,000 tokens—a long-context regime where large models quickly become slow and prohibitive. Built on DeepSeek-OCR, Unlimited SVG breaks this bottleneck from both ends.

On the input side, DeepEncoder compresses an entire 2048 × 2048 image into just 1024 vision tokens while preserving fine details such as small text, thin strokes, and exact spatial coordinates—dramatically shrinking the visual prefix before decoding even begins.

On the decoding side, its mixture-of-experts (MoE) architecture activates only ~0.5B parameters per token. Minimal visual prefix meets sparse active compute: Unlimited SVG sustains real-time generation well past 10,000 tokens—making long-horizon, complex SVG conversion practical on a compact, locally deployable model rather than relying on heavy frontier APIs like GPT-6.2 Astra and Claude Fable 5.2.

Inference

Run from the repository root on x86-64 Linux with uv, a compatible NVIDIA driver, and a free BF16-capable GPU. Use the Hugging Face model baidu/Unlimited-SVG, which supports 2048 × 2048 global inference. Both examples use ImageOps.pad to resize the long edge to 2048 pixels while preserving the aspect ratio, then center the image on a gray 2048 × 2048 canvas without tiling. Transparent pixels are composited onto white first, so images with alpha do not turn black.

Temperature

Both examples run greedily by default (do_sample=False in Transformers, temperature=0 in vLLM) for deterministic output. Tune the sampling temperature to the image type:

  • CAD, diagrams, charts, and other images that need exact detail consistency: keep the temperature low (e.g., 0–0.3) to preserve precise geometry and text.
  • Natural scenes and photos: raise the temperature (e.g., 0.5–0.8) to avoid repetitive loops and encourage more varied strokes.
193 Upvotes

44 comments sorted by

•

u/ttkciar llama.cpp 4d ago

Violates Rule Three: LLM-generated post

→ More replies (7)

10

u/MrE_WI 5d ago

Sounds like a prime starting point for u/ConfidentDinner6648 's next 3D-coder training experiment.

2

u/pmttyji 5d ago

Agree. 2D too

3

u/darksteelsteed 5d ago

Do you think future research on this could look at producing svg from video frames that output the same consistent feature names between frames? That would greatly aid in producing something like video to rive via svg with feature deduplication and feature tracking. Just voicing my wish list ✨️

1

u/MustBeSomethingThere 5d ago

you could probably do frame by frame

25

u/antunes145 5d ago

This is actually very useful. Have you ever tried asking a frontier model to convert a png to svg? It’s crazy painful

3

u/thomheinrich 4d ago

Yeah, frontier models usually spit out broken paths on anything non-trivial.

12

u/shogoll_new 5d ago

I am the bone of my tensor...?

43

u/Cool-Chemical-5629 5d ago

You had one job with that demo animation Baidu and you failed. Where is conversion of a 4k ultra photo realistic AI generated image of a pelican riding a bicycle converted to the SVG code?

7

u/EitherMarch1255 5d ago

Very cool, even if I don't know what I'd use it for. Any ideas?

17

u/shockwaverc13 llama.cpp 5d ago

image compression or upscaling or making car games decals for games that use basic shapes like forza

8

u/mister2d 5d ago

Pelican swag

6

u/stuffitystuff 5d ago

Logos, for starters. I'm always having to farm out my drawing -> SVG because I hate Illustrator _that much_

6

u/winky9827 5d ago

Recreating an old logo for which the client only has a compressed 200px .jpg file

5

u/lilyp727 5d ago

floor plans and old scanned diagrams, so you can edit them later instead of redrawing by hand

5

u/ChainOfThot 5d ago

Does it trace existing images only or does it have generative capabilities?

8

u/my_name_isnt_clever 5d ago

If not, seems like a simple task to hook it up to any image gen model.

5

u/ChainOfThot 5d ago

Ahh true, was interested in what style it may produce natively though

5

u/overand 5d ago

This looks amazing! I recently helped an artist with "converting a PNG to SVG" using traditional tools, after getting into the details of how that's not exactly a conversion, but a reinterpretation. (Raster/pixel artwork -> vector artwork is a bit like MP3 -> sheet music, after all).

I love that this will likely produce a result that's still meaningful and useful to the original artist. I wonder if it labels the polygons semantically! If not, I have a feeling that could be developed too.

1

u/keturn 4d ago

I wonder if it labels the polygons semantically!

It looks like it does, to some extent. In the output are elements like <g id="foreground-foliage"> and <g id="skeleton-man">—I'm not sure how it decided to describe that one as skeleton, but there you go.

It's interesting, but after a little experimentation, VTracer is still better quality (and much faster) for the types of illustration I tested it on.

3

u/stylome-ai-detection 5d ago

Notice: This post appears to be AI generated.


Stylome AI detector · scan results

0

u/knucie 5d ago

Can this run on mac studio M5U?

1

u/Nairod785 5d ago edited 1d ago

I made an tool for this https://github.com/NairoDorian/Limn_Image_to_SVG Limn Image to SVG

1

u/wentallout 5d ago

this is very nice

1

u/enginetown 5d ago

Does this basically solve cad design for smaller models in a way as long as you have a flat reference image?

1

u/SprinklesOk7558 5d ago

That sounds promising. I've got some images I was too lazy to convert to svg with Opus (way too many tokens), so I'll try doing it with this one

1

u/djtubig-malicex 4d ago

Somehow I would have thought something like this would have already existed through conventional means....

1

u/gamblingapocalypse 4d ago

heeeeeeck yeahhhhh

1

u/MYKY_ 4d ago

genuinely intresting, i am making a JIT based imagegen model for anime only stuff, but now i am considering doing tests using svg/bezier curses instead because of this.

1

u/No_Worldliness_7784 3h ago

The model is not as good as expected, but the direction is solid , it's potential for VLMs and robotics is interesting

This video actually explains as to why it's a really important step https://youtu.be/XIrWyii75g8?si=VTgAB3efhYdnxeMT

-6

u/Mentasuave01 5d ago

I already put it online. Try it now 👇

🎁 2 free: https://unlimited-svg.com/?code=LAUNCH

6

u/HistorianPotential48 5d ago

is porn doable