Unlimited-OCR GGUF (for llama.cpp)

GGUF model files for running baidu/Unlimited-OCR in llama.cpp's MTMD (multimodal) support.

Unlimited-OCR is DeepSeek-OCR v1's DeepEncoder + a DeepSeek-V2 MoE decoder, with the decoder attention replaced by R-SWA (Reference Sliding Window Attention). llama.cpp support lands in two stacked PRs (the same GGUF files work for both):

  • PR1 - converter, decoder runs full MHA: #24969
  • PR2 - R-SWA in the decoder (stacked on PR1): #24975

These models are only compatible with the PR branches, not upstream llama.cpp master.


Download

huggingface-cli download sabafallah/Unlimited-OCR-GGUF --include "unlimited-ocr-bf16.gguf" --local-dir gguf_models/baidu
huggingface-cli download sabafallah/Unlimited-OCR-GGUF --include "mmproj-unlimited-ocr-bf16.gguf" --local-dir gguf_models/baidu

Run example

llama-mtmd-cli:

build/bin/llama-mtmd-cli \
  -m gguf_models/baidu/unlimited-ocr-bf16.gguf \
  --mmproj gguf_models/baidu/mmproj-unlimited-ocr-bf16.gguf \
  --image tools/mtmd/test-1.jpeg -p "document parsing." \
  --chat-template deepseek-ocr --no-jinja \
  --temp 0 --flash-attn off --no-warmup \
  -n 4096 -c 16384 \
  --dry-multiplier 0.8 --dry-base 1.75 --dry-allowed-length 2 \
  --dry-penalty-last-n -1 --dry-sequence-breaker none

Files

file
unlimited-ocr-bf16.gguf LM bf16
unlimited-ocr-q8_0.gguf LM q8_0
unlimited-ocr-Q4_K_M.gguf LM Q4_K_M
mmproj-unlimited-ocr-bf16.gguf mmproj bf16
mmproj-unlimited-ocr-q8_0.gguf mmproj q8_0
Downloads last month
185
GGUF
Model size
3B params
Architecture
deepseek2-ocr
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

16-bit

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

Model tree for sabafallah/Unlimited-OCR-GGUF

Quantized
(10)
this model