Run this model with HF Jobs

Run nativ-community/granite-docling-v2-2b-nvfp4 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 to fine-tune https://huggingface.co/nativ-community/granite-docling-v2-2b-nvfp4. 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/nativ-community/granite-docling-v2-2b-nvfp4 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/nativ-community/granite-docling-v2-2b-nvfp4. 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.

Granite Docling V2 2B ยท NVFP4

Granite Docling V2 2B runs on your Mac โ€” Try it in Nativ

An MLX version of IBM Granite Docling V2 2B for document conversion on Apple silicon. Turn page images into DocLang, preserving text, layout, tables, and formulas. Try local AI in Nativ.

Format Weight size Context window
NVFP4 (nvfp4, group size 16) 1.91 GB 131,072 tokens

The vision stack stays in BF16. These are standard-generation checkpoints; separate MTP drafter weights are not included.

Use with MLX-VLM

pip install -U mlx-vlm
from mlx_vlm import generate, load
from mlx_vlm.prompt_utils import apply_chat_template

model, processor = load("nativ-community/granite-docling-v2-2b-nvfp4")
prompt = apply_chat_template(processor, model.config, "<doclang>", num_images=1)
result = generate(
    model, processor, prompt,
    image=["page.png"],
    max_tokens=16384,
    temperature=0.0,
)
print(result.text)

Use <doclang> for a full page or <doclang> [<table>] for tables only. This is a document conversion model: use its documented task prompts rather than conversational questions. Render PDF pages to images before inference. More tasks and output formats.

Each export was reloaded and checked with full-page and table-only document conversion. These are functional checks, not a benchmark evaluation.

License and source

Downloads last month
-
Safetensors
Model size
2B params
Tensor type
U32
ยท
BF16
ยท
MLX
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 nativ-community/granite-docling-v2-2b-nvfp4

Collection including nativ-community/granite-docling-v2-2b-nvfp4