Run this model with HF Jobs
Run nativ-community/granite-docling-v2-2b-mxfp8 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-mxfp8. 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-mxfp8 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-mxfp8. 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 nativ-community/granite-docling-v2-2b-mxfp8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use nativ-community/granite-docling-v2-2b-mxfp8 with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("nativ-community/granite-docling-v2-2b-mxfp8") config = load_config("nativ-community/granite-docling-v2-2b-mxfp8") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Granite Docling V2 2B ยท MXFP8
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 |
|---|---|---|
| MXFP8 (mxfp8, group size 32) | 2.72 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-mxfp8")
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
- -
8-bit
Model tree for nativ-community/granite-docling-v2-2b-mxfp8
Base model
ibm-granite/granite-4.0-1b-base