Image-Text-to-Text
GGUF
multilingual
llama.cpp
deepseek-ocr
ocr
vision-language
multimodal
quantized
imatrix
document-parsing
conversational
Instructions to use sahilchachra/Unlimited-OCR-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 sahilchachra/Unlimited-OCR-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 sahilchachra/Unlimited-OCR-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf sahilchachra/Unlimited-OCR-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 sahilchachra/Unlimited-OCR-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf sahilchachra/Unlimited-OCR-GGUF:Q4_K_M
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 sahilchachra/Unlimited-OCR-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf sahilchachra/Unlimited-OCR-GGUF:Q4_K_M
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 sahilchachra/Unlimited-OCR-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf sahilchachra/Unlimited-OCR-GGUF:Q4_K_M
Use Docker
docker model run hf.co/sahilchachra/Unlimited-OCR-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use sahilchachra/Unlimited-OCR-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sahilchachra/Unlimited-OCR-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": "sahilchachra/Unlimited-OCR-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/sahilchachra/Unlimited-OCR-GGUF:Q4_K_M
- Ollama
How to use sahilchachra/Unlimited-OCR-GGUF with Ollama:
ollama run hf.co/sahilchachra/Unlimited-OCR-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use sahilchachra/Unlimited-OCR-GGUF with Docker Model Runner:
docker model run hf.co/sahilchachra/Unlimited-OCR-GGUF:Q4_K_M
- Lemonade
How to use sahilchachra/Unlimited-OCR-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sahilchachra/Unlimited-OCR-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Unlimited-OCR-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -86,11 +86,9 @@ Run it on an image:
|
|
| 86 |
--mmproj ./uocr/mmproj-Unlimited-OCR-F16.gguf \
|
| 87 |
--image document.png \
|
| 88 |
-p "<|grounding|>Convert the document to markdown." \
|
| 89 |
-
--
|
| 90 |
```
|
| 91 |
|
| 92 |
-
> `--chat-template deepseek-ocr` and `--mmproj` are **required**. With `--image`, the image is
|
| 93 |
-
> injected automatically — you do **not** need to type a literal `<image>` token in `-p`.
|
| 94 |
> Use `--temp 0` for OCR (deterministic). Add `-n 4096` (or more) for long/dense documents.
|
| 95 |
|
| 96 |
---
|
|
@@ -115,7 +113,7 @@ prefix it with `<|grounding|>` whenever you also want **bounding boxes** for wha
|
|
| 115 |
**1) Document → clean Markdown (tables, headings, reading order):**
|
| 116 |
```bash
|
| 117 |
./build/bin/llama-mtmd-cli -m ./uocr/Unlimited-OCR-Q4_K_M.gguf \
|
| 118 |
-
--mmproj ./uocr/mmproj-Unlimited-OCR-F16.gguf
|
| 119 |
--image invoice.png --temp 0 -n 4096 \
|
| 120 |
-p "<|grounding|>Convert the document to markdown."
|
| 121 |
```
|
|
@@ -123,14 +121,14 @@ prefix it with `<|grounding|>` whenever you also want **bounding boxes** for wha
|
|
| 123 |
**2) Just the raw text, no layout / no boxes:**
|
| 124 |
```bash
|
| 125 |
./build/bin/llama-mtmd-cli -m ./uocr/Unlimited-OCR-Q4_K_M.gguf \
|
| 126 |
-
--mmproj ./uocr/mmproj-Unlimited-OCR-F16.gguf
|
| 127 |
--image receipt.jpg --temp 0 -p "Free OCR."
|
| 128 |
```
|
| 129 |
|
| 130 |
**3) Locate a specific string and get its box:**
|
| 131 |
```bash
|
| 132 |
./build/bin/llama-mtmd-cli -m ./uocr/Unlimited-OCR-Q4_K_M.gguf \
|
| 133 |
-
--mmproj ./uocr/mmproj-Unlimited-OCR-F16.gguf
|
| 134 |
--image form.png --temp 0 \
|
| 135 |
-p "<|grounding|>Locate <|ref|>Invoice Number<|/ref|> in the image."
|
| 136 |
```
|
|
@@ -162,7 +160,7 @@ plain text (or Markdown) with no box tags.
|
|
| 162 |
./build/bin/llama-server \
|
| 163 |
-m ./uocr/Unlimited-OCR-Q4_K_M.gguf \
|
| 164 |
--mmproj ./uocr/mmproj-Unlimited-OCR-F16.gguf \
|
| 165 |
-
-
|
| 166 |
```
|
| 167 |
|
| 168 |
Call it with an image (base64 data URL):
|
|
|
|
| 86 |
--mmproj ./uocr/mmproj-Unlimited-OCR-F16.gguf \
|
| 87 |
--image document.png \
|
| 88 |
-p "<|grounding|>Convert the document to markdown." \
|
| 89 |
+
--temp 0
|
| 90 |
```
|
| 91 |
|
|
|
|
|
|
|
| 92 |
> Use `--temp 0` for OCR (deterministic). Add `-n 4096` (or more) for long/dense documents.
|
| 93 |
|
| 94 |
---
|
|
|
|
| 113 |
**1) Document → clean Markdown (tables, headings, reading order):**
|
| 114 |
```bash
|
| 115 |
./build/bin/llama-mtmd-cli -m ./uocr/Unlimited-OCR-Q4_K_M.gguf \
|
| 116 |
+
--mmproj ./uocr/mmproj-Unlimited-OCR-F16.gguf \
|
| 117 |
--image invoice.png --temp 0 -n 4096 \
|
| 118 |
-p "<|grounding|>Convert the document to markdown."
|
| 119 |
```
|
|
|
|
| 121 |
**2) Just the raw text, no layout / no boxes:**
|
| 122 |
```bash
|
| 123 |
./build/bin/llama-mtmd-cli -m ./uocr/Unlimited-OCR-Q4_K_M.gguf \
|
| 124 |
+
--mmproj ./uocr/mmproj-Unlimited-OCR-F16.gguf \
|
| 125 |
--image receipt.jpg --temp 0 -p "Free OCR."
|
| 126 |
```
|
| 127 |
|
| 128 |
**3) Locate a specific string and get its box:**
|
| 129 |
```bash
|
| 130 |
./build/bin/llama-mtmd-cli -m ./uocr/Unlimited-OCR-Q4_K_M.gguf \
|
| 131 |
+
--mmproj ./uocr/mmproj-Unlimited-OCR-F16.gguf \
|
| 132 |
--image form.png --temp 0 \
|
| 133 |
-p "<|grounding|>Locate <|ref|>Invoice Number<|/ref|> in the image."
|
| 134 |
```
|
|
|
|
| 160 |
./build/bin/llama-server \
|
| 161 |
-m ./uocr/Unlimited-OCR-Q4_K_M.gguf \
|
| 162 |
--mmproj ./uocr/mmproj-Unlimited-OCR-F16.gguf \
|
| 163 |
+
-c 8192 --host 0.0.0.0 --port 8080
|
| 164 |
```
|
| 165 |
|
| 166 |
Call it with an image (base64 data URL):
|