How to use from
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 Shamika2004/coco1-ocr:Q8_0
# Run inference directly in the terminal:
llama cli -hf Shamika2004/coco1-ocr:Q8_0
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Shamika2004/coco1-ocr:Q8_0
# Run inference directly in the terminal:
llama cli -hf Shamika2004/coco1-ocr:Q8_0
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 Shamika2004/coco1-ocr:Q8_0
# Run inference directly in the terminal:
./llama-cli -hf Shamika2004/coco1-ocr:Q8_0
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 Shamika2004/coco1-ocr:Q8_0
# Run inference directly in the terminal:
./build/bin/llama-cli -hf Shamika2004/coco1-ocr:Q8_0
Use Docker
docker model run hf.co/Shamika2004/coco1-ocr:Q8_0
Quick Links

coco1-ocr (GGUF)

Fine-tuned from Qwen/Qwen3-VL-4B-Instruct (LoRA, merged) for document understanding: table-to-HTML, checkbox/option transcription, handwritten line transcription, digit recognition, and layout detection.

Files

File Purpose
coco1-ocr-Q8_0.gguf Language model (Q8_0)
mmproj-coco1-ocr-f16.gguf Vision projector (F16), required for image input

Usage (llama.cpp)

llama-mtmd-cli -m coco1-ocr-Q8_0.gguf --mmproj mmproj-coco1-ocr-f16.gguf \
  --image table.png \
  -p "Convert the table in the image to HTML. Use only <table>, <tr> and <td>, with rowspan/colspan attributes for merged cells. Keep empty cells as <td></td>."

Prompts used in training

  • table: Convert the table in the image to HTML. Use only , and .
  • check_text: Transcribe the options shown. Put โ˜‘ before the option that is marked or selected and โ˜ before every other option.
  • hw_line: Transcribe the handwritten text.
  • digit: What digit is shown? Answer with the digit only.
  • layout: List every layout element with its category and bounding box [x0,y0,x1,y1] in 0-1000 relative coordinates, from top to bottom.
  • Notes

    Converted to GGUF from the merged fine-tuned weights. Use the same prompts as above for best results.

    , with rowspan/colspan attributes for merged cells. Keep empty cells as
Downloads last month
80
GGUF
Model size
4B params
Architecture
qwen3vl
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Shamika2004/coco1-ocr

Quantized
(112)
this model