Xylolabs

Unlimited-SVG GGUF

Base model License Code

The vision projector takes one 2048 × 2048 view with no tiles, as Baidu's inference code does, and stores its position tables at that size. The text files are quantized with an importance matrix from SVG text.

Files

File Size
Unlimited-SVG-BF16.gguf 5.88 GB
Unlimited-SVG-Q8_0.gguf 3.13 GB
Unlimited-SVG-Q6_K.gguf 2.61 GB
Unlimited-SVG-Q5_K_M.gguf 2.22 GB
Unlimited-SVG-Q4_K_M.gguf 1.95 GB
Unlimited-SVG-IQ4_XS.gguf 1.64 GB
mmproj-Unlimited-SVG-BF16.gguf 868 MB
Unlimited-SVG.imatrix 21 MB
llama.cpp-unlimited-svg.patch 14 kB

How to run

Requires llama.cpp commit ce94c09 with llama.cpp-unlimited-svg.patch from this repo. Unpatched llama.cpp refuses the projector (unknown projector type: unlimitedsvg).

git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
git checkout ce94c097bc2e6d8023728ce9f85de8247264d8b7
hf download Xylolabs/Unlimited-SVG-GGUF llama.cpp-unlimited-svg.patch Unlimited-SVG-Q5_K_M.gguf mmproj-Unlimited-SVG-BF16.gguf --local-dir .
git apply llama.cpp-unlimited-svg.patch
cmake -B build && cmake --build build -j --target llama-mtmd-cli

Pad the image to 2048 × 2048 on gray, with transparency flattened onto white. Save this as prep.py and run python3 prep.py IMAGE:

import sys
from PIL import Image, ImageOps

image = ImageOps.exif_transpose(Image.open(sys.argv[1])).convert("RGBA")
white = Image.new("RGB", image.size, (255, 255, 255))
white.paste(image, mask=image.getchannel("A"))
ImageOps.pad(white, (2048, 2048), method=Image.Resampling.BICUBIC, color=(127, 127, 127)).save("input-2048.png")

The prompt is <image> SVG:; llama-mtmd-cli puts the image first, so pass only SVG: with its leading space.

build/bin/llama-mtmd-cli -m Unlimited-SVG-Q5_K_M.gguf --mmproj mmproj-Unlimited-SVG-BF16.gguf \
  --image input-2048.png -p " SVG:" --chat-template deepseek-ocr --temp 0 -n 30000 -c 32768 \
  --flash-attn off -ngl 99 > output.svg

For llama-server, build it with cmake --build build -j --target llama-server, start it with --jinja and without --chat-template, and send the image followed by the text SVG: in one user message.

Baidu suggests temperature 0 to 0.3 for diagrams, charts and CAD, and 0.5 to 0.8 for photos.

Accuracy

Mean KL divergence from BF16 and top-1 agreement on held-out SVG text (llama.cpp, 512-token chunks). Valid SVG counts greedy outputs on eight held-out images that close and parse as XML.

Quant Size KL top-1 Valid SVG
BF16 5.88 GB 8/8
Q8_0 3.13 GB 0.0025 96.9% 8/8
Q6_K 2.61 GB 0.0079 93.7% 8/8
Q5_K_M 2.22 GB 0.0194 92.3% 8/8
Q4_K_M 1.95 GB 0.0565 88.0% 7/8
IQ4_XS 1.64 GB 0.0751 86.0% 8/8
Held-out SVG mean KL divergence by text GGUF size Held-out SVG top-1 agreement by text GGUF size

License and notices

MIT, copied in LICENSE; the model is Baidu's Unlimited-SVG. We converted the weights to GGUF and quantized them.

Updates

  • 2026-12-01: Added the KL and top-1 charts and accuracy-by-size.csv.
  • 2026-12-01: Card: llama-server usage added, SSIM column removed.
  • 2026-12-01: First release.
Downloads last month
-
GGUF
Model size
3B params
Architecture
deepseek2-ocr
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

6-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Xylolabs/Unlimited-SVG-GGUF

Quantized
(20)
this model

Space using Xylolabs/Unlimited-SVG-GGUF 1

Collections including Xylolabs/Unlimited-SVG-GGUF