Instructions to use Xylolabs/Unlimited-SVG-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Xylolabs/Unlimited-SVG-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Xylolabs/Unlimited-SVG-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Unlimited-SVG-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Xylolabs/Unlimited-SVG-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Unlimited-SVG-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Xylolabs/Unlimited-SVG-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Xylolabs/Unlimited-SVG-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Xylolabs/Unlimited-SVG-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Xylolabs/Unlimited-SVG-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Xylolabs/Unlimited-SVG-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Xylolabs/Unlimited-SVG-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Xylolabs/Unlimited-SVG-GGUF:Q4_K_M
- Ollama
How to use Xylolabs/Unlimited-SVG-GGUF with Ollama:
ollama run hf.co/Xylolabs/Unlimited-SVG-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Xylolabs/Unlimited-SVG-GGUF with Docker Model Runner:
docker model run hf.co/Xylolabs/Unlimited-SVG-GGUF:Q4_K_M
- Lemonade
How to use Xylolabs/Unlimited-SVG-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Xylolabs/Unlimited-SVG-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Unlimited-SVG-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
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 |
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-serverusage added, SSIM column removed. - 2026-12-01: First release.
- Downloads last month
- -
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for Xylolabs/Unlimited-SVG-GGUF
Base model
baidu/Unlimited-SVG