Model reference · open weights
granite-vision-4.1 is an open-weight language model from IBM. granite-vision-4.1-4b (BF16) weighs 8.0 GB; the smallest configuration that runs it is RTX 3060 12 GB.
Summary of the ibm-granite/granite-vision-4.1-4b model card, 2026-10-01
What it is
| Released by | IBM |
|---|---|
| Released | 2026-04-16 |
| Parameters | 4.0B |
| VRAM | 8.0 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB | 2 | — | 20K | 11.6 GB |
| RTX 4060 Ti 16 GB | 8 | 2 | 65K | 15.4 GB |
| RTX 3090 24 GB | 20 | 5 | all 128K | 23.4 GB |
| RTX 4090 24 GB | 20 | 5 | all 128K | 23.4 GB |
| RTX 5090 32 GB | 31 | 7 | all 128K | 31.0 GB |
| L40S 48 GB | 50 | 12 | all 128K | 44.0 GB |
| A100 80 GB | 101 | 25 | all 128K | 78.2 GB |
| H100 80 GB | 96 | 24 | all 128K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 119 | 29 | all 128K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 139 | 34 | all 128K | 107 GB |
| H200 141 GB | 185 | 46 | all 128K | 138 GB |
| B200 180 GB | 241 | 60 | all 128K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 16 | 4 | all 128K | 11.6 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 10.6 GB | 12.6 GB |
| 5 | 13.3 GB | 23.3 GB |
| 8 | 15.3 GB | 31.4 GB |
| 16 | 20.7 GB | 52.9 GB |
| 32 | 31.4 GB | 95.8 GB |
| 64 | 52.9 GB | 182 GB |
One card, with vLLM's small-card settings.
From the model card
Model Summary: Granite Vision 4.1 4B is a vision-language model (VLM) that delivers frontier-level performance on structured document extraction tasks — chart extraction, table extraction, and semantic key-value pair extraction — in a compact 4B parameter footprint, providing a lightweight alternative to much larger frontier models for these tasks:
The model is finetuned on top of Granite-4.1-3B, with a 3.4B LLM and 0.6B Vision Encoder and Projectors. See Model Architecture for details.
The methodology and data (ChartNet) used for this model are described in the paper ChartNet: A Million-Scale, High-Quality Multimodal Dataset for Robust Chart Understanding.
While our focus is on specialized document extraction tasks, the current model preserves and extends the capabilities of Granite Vision 4.0 3B, ensuring that existing users can adopt it seamlessly with no changes to their workflow. It continues to support vision‑language tasks such as producing detailed natural‑language descriptions from images (image‑to‑text). The model can be used standalone and integrates seamlessly with Docling to enhance document processing pipelines with deep visual understanding capabilities.
The model supports specialized extraction tasks, each activated by a simple task tag in the user message. The chat template automatically expands tags into the full prompt — no need to write verbose instructions.
| Tag | Task | Output |
|---|---|---|
| `` | Chart to CSV | CSV table with headers and numeric values |
| `` | Chart to Python code | Python code that recreates the chart |
| `` | Chart to summary | Natural-language description of the chart |
| `` | Table extraction (JSON) | Structured JSON with dimensions and cells |
| `` | Table extraction (HTML) | HTML `` markup |
| `` | Table extraction (OTSL) | OTSL markup with cell/merge tags |
| KVP (see prompt instructions below) | Schema based Key-Value pairs extraction | JSON with nested dictionaries and arrays |
Granite Vision 4.1 4B provides a lightweight alternative to frontier models on structured document extraction benchmarks, delivering comparable performance at a fraction of the parameter count.
We evaluate chart extraction using the human-verified test-set from ChartNet. Models are scored by LLM-as-a-judge (GPT4o) comparing predictions against ground truth. We report average scores (0–100) on Chart2CSV and Chart2Summary tasks.
To benchmark table extraction, we construct a unified evaluation suite spanning multiple datasets and settings to assess end-to-end table extraction capabilities of vision-language models:
To unify evaluation, we replace each dataset’s original annotations (e.g., Q&A pairs) with a single instruction: extract the table(s) from the image in HTML format, using the corresponding HTML as ground truth. For full-page inputs, only tabular elements are considered; when multiple tables appear, they are aggregated into a Python list.
We report results using TEDS (Tree-Edit Distance-based Similarity), which measures structural and content similarity between predicted and ground-truth HTML tables.
Results are presented separately for cropped-table and full-page settings to highlight performance across controlled and realistic document scenarios.
We evaluate on VAREX, a benchmark for multimodal structured extraction from documents. Granite Vision 4.1 4B achieves 94.2% exact-match accuracy (zero-shot), competitive with much larger frontier models (view results here).
Tested with python=3.11
pip install torch==2.10.0 --index-url https://download.pytorch.org/whl/cu128
pip install transformers>=5.8.0 peft>=0.19.1 tokenizers>=0.22.2 pillow>=12.2.0
Requires transformers>=5.8.0 for native support. On older versions, pass trust_remote_code=True to both from_pretrained calls to use the bundled legacy modeling code.
import re
from io import StringIO
import pandas as pd
import torch
from transformers import AutoProcessor, AutoModelForImageTextToText
from PIL import Image
from huggingface_hub import hf_hub_download
model_id = "ibm-granite/granite-vision-4.1-4b"
device = "cuda" if torch.cuda.is_available() else "cpu"
processor = AutoProcessor.from_pretrained(model_id)
pQuoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.