sahilchachra commited on
Commit
0dc781d
·
verified ·
1 Parent(s): 028d046

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -7
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
- --chat-template deepseek-ocr --temp 0
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 --chat-template deepseek-ocr \
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 --chat-template deepseek-ocr \
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 --chat-template deepseek-ocr \
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
- --chat-template deepseek-ocr -c 8192 --host 0.0.0.0 --port 8080
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):