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.
Instructions to use prithivMLmods/OCRia-1-NVFP4-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/OCRia-1-NVFP4-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="prithivMLmods/OCRia-1-NVFP4-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prithivMLmods/OCRia-1-NVFP4-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prithivMLmods/OCRia-1-NVFP4-GGUF with 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 prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4 # Run inference directly in the terminal: llama cli -hf prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4 # Run inference directly in the terminal: llama cli -hf prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4 # Run inference directly in the terminal: ./build/bin/llama cli -hf prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4
Use Docker
docker model run hf.co/prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4
- Llama new
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/OCRia-1-NVFP4-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/OCRia-1-NVFP4-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/OCRia-1-NVFP4-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4
- SGLang
How to use prithivMLmods/OCRia-1-NVFP4-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "prithivMLmods/OCRia-1-NVFP4-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/OCRia-1-NVFP4-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "prithivMLmods/OCRia-1-NVFP4-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/OCRia-1-NVFP4-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use prithivMLmods/OCRia-1-NVFP4-GGUF with Ollama:
ollama run hf.co/prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4
- Unsloth Desktop
- Pi
How to use prithivMLmods/OCRia-1-NVFP4-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use prithivMLmods/OCRia-1-NVFP4-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4
- Lemonade
How to use prithivMLmods/OCRia-1-NVFP4-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4
Run and chat with the model
lemonade run user.OCRia-1-NVFP4-GGUF-NVFP4
List all available models
lemonade list
- Hermes Agent
How to use prithivMLmods/OCRia-1-NVFP4-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use prithivMLmods/OCRia-1-NVFP4-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "prithivMLmods/OCRia-1-NVFP4-GGUF:NVFP4" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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)
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
4-bit



