Instructions to use anthonym21/dots.ocr-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use anthonym21/dots.ocr-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="anthonym21/dots.ocr-GGUF", filename="Dots.Ocr-1.8B-F16.gguf", )
llm.create_chat_completion( messages = "\"cats.jpg\"" )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use anthonym21/dots.ocr-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf anthonym21/dots.ocr-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf anthonym21/dots.ocr-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf anthonym21/dots.ocr-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf anthonym21/dots.ocr-GGUF:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf anthonym21/dots.ocr-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf anthonym21/dots.ocr-GGUF:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf anthonym21/dots.ocr-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf anthonym21/dots.ocr-GGUF:F16
Use Docker
docker model run hf.co/anthonym21/dots.ocr-GGUF:F16
- LM Studio
- Jan
- Ollama
How to use anthonym21/dots.ocr-GGUF with Ollama:
ollama run hf.co/anthonym21/dots.ocr-GGUF:F16
- Unsloth Studio new
How to use anthonym21/dots.ocr-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for anthonym21/dots.ocr-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for anthonym21/dots.ocr-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for anthonym21/dots.ocr-GGUF to start chatting
- Docker Model Runner
How to use anthonym21/dots.ocr-GGUF with Docker Model Runner:
docker model run hf.co/anthonym21/dots.ocr-GGUF:F16
- Lemonade
How to use anthonym21/dots.ocr-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull anthonym21/dots.ocr-GGUF:F16
Run and chat with the model
lemonade run user.dots.ocr-GGUF-F16
List all available models
lemonade list
dots.ocr GGUF
GGUF conversions of rednote-hilab/dots.ocr for use with llama.cpp.
Files
| File | Size | Description |
|---|---|---|
| Dots.Ocr-1.8B-Q8_0.gguf | 1.8 GB | Text model, 8-bit quantized |
| Dots.Ocr-1.8B-F16.gguf | 3.4 GB | Text model, float16 |
| mmproj-Dots.Ocr-F16.gguf | 2.4 GB | Vision encoder (mmproj), float16 |
Update
On March 23, 2026, mmproj-Dots.Ocr-F16.gguf was regenerated from a corrected DotsOCR converter. The text GGUF files did not change. If you downloaded the mmproj earlier, refresh that file.
Current llama.cpp fork with DotsOCR support and the compatibility fix:
Architecture
dots.ocr = Qwen2 text backbone (1.7B params, 28 layers) + modified Qwen2-VL vision encoder (1.2B params, 42 layers).
Key differences from Qwen2-VL:
- Text model is standard Qwen2 with 1D RoPE (not M-RoPE)
- Vision uses RMSNorm, SiLU gated MLP, Conv2D patches, no attention bias
- 2D M-RoPE internal to vision encoder only
Usage with llama.cpp
Requires a llama.cpp build with DotsOCR support. At the moment, use:
Single-image example on Windows:
llama-mtmd-cli.exe `
-m .\Dots.Ocr-1.8B-Q8_0.gguf `
--mmproj .\mmproj-Dots.Ocr-F16.gguf `
--image .\page.png `
-p "Extract all text from this image and preserve structure in markdown." `
--ctx-size 131072 `
-n 4096 `
--temp 0 `
--jinja
Equivalent server launch:
llama-server.exe `
-m .\Dots.Ocr-1.8B-Q8_0.gguf `
--mmproj .\mmproj-Dots.Ocr-F16.gguf `
--port 8111 `
--host 0.0.0.0 `
--ctx-size 131072 `
-n 4096 `
--temp 0 `
--jinja
- Downloads last month
- 171
8-bit
16-bit
Model tree for anthonym21/dots.ocr-GGUF
Base model
rednote-hilab/dots.ocr