Run this model with HF Jobs

Run prithivMLmods/OCRia-1-NVFP4-GGUF on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/prithivMLmods/OCRia-1-NVFP4-GGUF. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/prithivMLmods/OCRia-1-NVFP4-GGUF on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/prithivMLmods/OCRia-1-NVFP4-GGUF. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

OCRia-1-NVFP4-GGUF

OCRia-1-NVFP4 is a 4B-parameter NVFP4-quantized build of LlamaIndex's OCRia-1, based on Qwen3.5-4B and designed for high-fidelity single-page document parsing directly from page images without external OCR engines or text layers. Quantized using GPTQ (Accurate Post-Training Quantization for Generative Pre-trained Transformers), GPTQ calibration helps stabilize and optimize NVFP4 compression, preserving accuracy close to the full-precision weights while reducing memory usage and accelerating inference on NVFP4-capable hardware. Originally trained on 100,979 real and synthetic pages using SFT, GRPO reinforcement learning, and checkpoint averaging, OCRia-1 converts complex documents into structured Markdown, including tables and charts as HTML, diagrams as Mermaid, and mathematical expressions and handwriting as LaTeX. The original model ranks as the top open-weight model on ParseBench 2 (85.24) and ParseBench 1 (84.65); these benchmark results belong to the original model and have not been independently verified on this NVFP4 build. It is distributed under the custom OCRia-1 Model and Code License.

MTP β€” Speculative Decoding: Yes | NVFP4 Weights Available Here: OCRia-1-NVFP4

Multi-Token Prediction (MTP) GGUF is a specialized GGUF model file format extension that integrates speculative decoding directly into the model weights to significantly accelerate local inference. Unlike traditional speculative decoding which requires a separate, smaller "draft" model, MTP GGUF files include additional output heads within the main model architecture that predict multiple future tokens in a single forward pass.

Model Files

File Name Quant Type File Size File Link Description
OCRia-1-NVFP4.gguf NVFP4 4.81 GB Link NVFP4: Highly optimized for NVIDIA Blackwell hardware accelerators (e.g., RTX Pro 6000, RTX 50-series, B200, B300), offering native hardware-accelerated FP4 Tensor Core speeds and a strong balance of size and performance.
OCRia-1.mmproj.gguf mmproj 676 MB Link Multimodal projection file. Used for vision/OCR capabilities.

NVFP4 Test Run

Tested OCRia-1-NVFP4.gguf with the multimodal projector (OCRia-1.mmproj.gguf) on an NVIDIA RTX PRO 6000 Blackwell Server Edition GPU with 96 GB of VRAM, using llama-cli with full GPU offloading, MTP speculative decoding, and reasoning disabled (--reasoning off).

Performance Metrics

Metric Value
Average Prompt Processing Speed 1,643.16 tokens/s
Average Generation Speed 329.96 tokens/s
Total Wall Time 14.6 seconds
Context Length 8,192 tokens
KV Cache (K) bf16
Thinking / Reasoning Off (--reasoning off)
Multimodal Projector OCRia-1.mmproj.gguf
GPU NVIDIA RTX PRO 6000 Blackwell Server Edition
GPU VRAM Capacity 96 GB
Peak GPU VRAM Usage 5.57 GiB
Peak GPU Utilization 80%
GPU Layers Offloaded 99 (-ngl 99)
Random Seed 42
Speculative Decoding MTP (draft_n_max=2)
Test Runs 3

Test Shots

Shot Test Image
Shot 1 Vision OCR β€” Image 1 EF8cldKHhUEO3MZPZSD19.jpeg
Shot 2 Vision OCR β€” Image 2 oYtCvrxudkMzz3nYr7lN7.jpeg
Shot 3 Vision OCR β€” Image 3 IOjpU_h3RI_DoVdKXZ0DW.jpeg

Run Inference

Option 1: Run with a Local Image

./build/bin/llama-cli \
  -m /path/to/models/OCRia-1-NVFP4.gguf \
  --mmproj /path/to/models/OCRia-1.mmproj.gguf \
  --image /path/to/image.jpeg \
  --spec-type draft-mtp \
  --spec-draft-n-max 2 \
  --reasoning off \
  -ngl 99 \
  -c 8192 \
  --cache-type-k bf16 \
  --seed 42 \
  -n 4096 \
  -st \
  -p "OCR the image."

Option 2: Download the Image and Run Inference

# Download the image
wget -O /path/to/models/input.jpeg \
  "https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/EF8cldKHhUEO3MZPZSD19.jpeg"

# Run inference
./build/bin/llama-cli \
  -m /path/to/models/OCRia-1-NVFP4.gguf \
  --mmproj /path/to/models/OCRia-1.mmproj.gguf \
  --image /path/to/models/input.jpeg \
  --spec-type draft-mtp \
  --spec-draft-n-max 2 \
  --reasoning off \
  -ngl 99 \
  -c 8192 \
  --cache-type-k bf16 \
  --seed 42 \
  -n 4096 \
  -st \
  -p "OCR the image."

Performance results reflect this specific hardware and inference configuration. Actual throughput may vary depending on the prompt, image resolution, model, software build, and runtime settings.

Snapshots (3)

download (1) download (2) download (3) download

llama.cpp

LLM inference in C/C++ β€” https://github.com/ggml-org/llama.cpp

MTP-repackaged and quantized using llama.cpp by β€” prithivMLmods.

For other inference setups, kindly refer to the original model card β€” https://huggingface.co/llamaindex/OCRia-1. It is recommended to follow the system message prompt.txt without providing any user text, with thinking turned off.

Downloads last month
664
GGUF
Model size
5B params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

4-bit

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

Model tree for prithivMLmods/OCRia-1-NVFP4-GGUF

Finetuned
Qwen/Qwen3.5-4B
Quantized
(12)
this model

Collections including prithivMLmods/OCRia-1-NVFP4-GGUF