Views
No views yet
datalab-to/chandra-ocr-2, validated end to end with
llama.cpp on one AMD Radeon RX 9070 XT (gfx1201).| File | Bytes | SHA-256 |
|---|---|---|
chandra-ocr-2.BF16.gguf | 9,695,791,648 | 4e9d5fa9854cf820d4425d28034df31ec1221a7f9d1082b0c4359d79f318cb56 |
chandra-ocr-2.mmproj-bf16.gguf | 675,568,864 | 54ddb8285933512cdbf1c84238aa0435b473a6efef2caeda8ca802c2899e87b3 |
chat_template.jinja | 7,622 | 0d158f349ca965f7eea9db0eb45cd177b85bb0e4ae05dcdd0f060da8f7d41812 |
manifest.json.datalab-to/chandra-ocr-2af93b47dba1b47b6640c86ccf487ed2260ab9a09model.safetensors SHA-256: 0804568be9f099d6479fad9ed77a4da4611f3c1e7bc6e009af7dce45e8aa3847ggml-org/llama.cpp8f5ab832ca7d8a7b4f23687693fb8b0ecbc227e7chandra-ocr: 0.2.0CONVERSION.md for the exact commands and integrity checks.| Component | Verified value |
|---|---|
| GPU | AMD Radeon RX 9070 XT, 16 GB (gfx1201) |
| GPU allocation | One isolated GPU; full layer offload |
| OS / kernel | Ubuntu 24.04.4 / 6.17.0-40-generic |
| ROCm | 7.2.1 |
| llama.cpp | 8f5ab832ca7d8a7b4f23687693fb8b0ecbc227e7 |
| Context | 24,576 tokens |
| Maximum tested output envelope | 12,384 tokens |
| Observed model-process VRAM peak | Approximately 11.2 GB |
gfx1201 is the hardware on which this exact pair completed image, PDF,
financial-table, handwritten-document, deterministic-output, and lifecycle tests. Other llama.cpp-supported hardware may
work but is not validated here.1ROCR_VISIBLE_DEVICES=GPU-YOUR-STABLE-UUID HIP_VISIBLE_DEVICES=0 \
2llama-server \
3 --model chandra-ocr-2.BF16.gguf \
4 --mmproj chandra-ocr-2.mmproj-bf16.gguf \
5 --alias chandra \
6 --host 127.0.0.1 \
7 --port 18100 \
8 --ctx-size 24576 \
9 --n-gpu-layers 999 \
10 --split-mode none \
11 --main-gpu 0 \
12 --flash-attn on \
13 --fit off \
14 --parallel 1 \
15 --batch-size 2048 \
16 --ubatch-size 512 \
17 --jinja \
18 --chat-template-file chat_template.jinja \
19 --image-min-tokens 10241python3 -m venv .venv
2.venv/bin/pip install 'chandra-ocr==0.2.0'
3
4VLLM_API_BASE=http://127.0.0.1:18100/v1 \
5VLLM_API_KEY=EMPTY \
6VLLM_MODEL_NAME=chandra \
7.venv/bin/python -m chandra.scripts.cli input.pdf output \
8 --method vllm \
9 --batch-size 1 \
10 --max-workers 1 \
11 --max-retries 2 \
12 --max-output-tokens 12384 \
13 --no-images \
14 --no-htmlssm_a tensors; the maximum
absolute difference was 9.5367431640625e-07. Accepted OCR outputs matched. There is no evidence that this conversion
improves OCR quality over other correct BF16 conversions.LICENSE in full before using or
redistributing these files. The license and its restrictions apply to this derivative conversion.