Unlimited-SVG GGUF

GGUF conversion of baidu/Unlimited-SVG (MIT license, Baidu). It redraws an input image as SVG. The model is built on DeepSeek-OCR: a SAM + CLIP vision encoder and a 12-layer DeepSeek-V2 MoE with about 0.5B active parameters.

Files

File Quant Size Purpose
Unlimited-SVG-Q8_0.gguf Q8_0 3.1 GB Language model
mmproj-Unlimited-SVG-F16.gguf F16 825 MB Vision projector (needed for image input)

Running with llama.cpp

Use a llama.cpp build that includes the DeepSeek-OCR path (deepseek2-ocr arch and DeepseekOCRVisionModel). Mainline builds from before that support will not load it.

llama-server -m Unlimited-SVG-Q8_0.gguf --mmproj mmproj-Unlimited-SVG-F16.gguf \
  --no-mmproj-offload --ctx-size 32768 --n-gpu-layers 999 --flash-attn on --parallel 1

--no-mmproj-offload keeps the vision encoder on the CPU. On the build tested (ROCm, RDNA4), the GPU vision path segfaulted during image encoding, while the CPU path produced correct output.

Send an image with a short text prompt such as SVG:. The upstream repo uses the prompt <image> SVG: with the image.

Example check: a red circle on white, through the OpenAI-compatible endpoint, returned a valid 1024×1024 SVG with a red circle drawn as a path.

Conversion notes

  • Converted from the upstream safetensors (BF16) with convert_hf_to_gguf.py --outtype q8_0 (LLM) and --mmproj --outtype f16 (projector).
  • The upstream config.json lists UnlimitedSVGForCausalLM first. The converter needs DeepseekOCRForCausalLM first, so the conversion used a copy of the config with that order changed. The weights are unchanged.
  • The tokenizer's pre-tokenizer matches DeepSeek-V3's regexes but has a different vocabulary hash, so the converter was given a one-line mapping to deepseek-v3.

Quantized by markldn. Original model and license: Baidu, MIT.

Downloads last month
11
GGUF
Model size
3B params
Architecture
deepseek2-ocr
Hardware compatibility
Log In to add your hardware

8-bit

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

Model tree for markldn/Unlimited-SVG-GGUF

Quantized
(8)
this model