Views
No views yet
llama.cpp.llama-server on a complex technical document page containing headings, Schrödinger quantum equations, and multi-column tables:| Quantization | Model Size | BPW | Generation Speed | Prompt Speed | Latency | Accuracy / Elements | Recommended |
|---|---|---|---|---|---|---|---|
NaviDC-OCR-Q4_K_M.gguf | 461.8 MB | 4.34 | 211.4 tok/s | 1,320.4 tok/s | 1.22s | 100% (8/8 elements) | 🏆 Best Overall |
NaviDC-OCR-Q5_K_M.gguf | 525.8 MB | 5.81 | 205.7 tok/s | 1,262.8 tok/s | 1.26s | 100% (8/8 elements) | ⭐️ High Quality |
NaviDC-OCR-Q8_0.gguf | 767.5 MB | 8.50 | 195.5 tok/s | 1,243.4 tok/s | 1.30s | 100% (8/8 elements) | Reference |
NaviDC-OCR-Q3_K_M.gguf | 394.8 MB | 3.50 | 179.1 tok/s | 1,238.5 tok/s | 6.26s | Degraded | Lightweight |
mmproj):mmproj-NaviDC-OCR-F16.gguf (1.33 GB) — required for vision encoding alongside any language model quant.llama-server1llama-server \
2 -m NaviDC-OCR-Q4_K_M.gguf \
3 --mmproj mmproj-NaviDC-OCR-F16.gguf \
4 --port 8090 \
5 -ngl 99 \
6 -c 40961import requests, base64
2
3with open("document_page.png", "rb") as f:
4 img_b64 = base64.b64encode(f.read()).decode("utf-8")
5
6response = requests.post(
7 "http://127.0.0.1:8090/v1/chat/completions",
8 json={
9 "messages": [
10 {
11 "role": "user",
12 "content": [
13 {"type": "text", "text": "Extract text."},
14 {"type": "image_url", "image_url": {"url": f"data:image/png;base64,{img_b64}"}}
15 ]
16 }
17 ],
18 "max_tokens": 2048,
19 "temperature": 0.0
20 }
21)
22
23print(response.json()["choices"][0]["message"]["content"])| Filename | Description | Size |
|---|---|---|
mmproj-NaviDC-OCR-F16.gguf | Vision Projector (required for all quants) | 1.33 GB |
NaviDC-OCR-Q4_K_M.gguf | Optimal 4-bit Medium Quantization (Fastest & recommended) | 461.8 MB |
NaviDC-OCR-Q5_K_M.gguf | High-fidelity 5-bit Medium Quantization | 525.8 MB |
NaviDC-OCR-Q8_0.gguf | 8-bit Reference Quantization | 767.5 MB |
NaviDC-OCR-Q3_K_M.gguf | 3-bit Turbo Quantization | 394.8 MB |
NaviDC-OCR-F16.gguf | Unquantized FP16 Baseline | 1.50 GB |
@konradjr007