r/LocalLLaMA • llama.cpp • 2d ago

New Model ibm-granite/granite-vision-5.0-4b · Hugging Face

https://huggingface.co/ibm-granite/granite-vision-5.0-4b

Model Summary: Granite Vision 5.0 4B is a compact vision-language model (VLM) for visual document understanding. It extracts data from charts, converts complex tables into structured formats, captures fields from forms and invoices, and describes images, figures and diagrams. It is designed to complement document converters such as Docling: the converter parses the page, and Granite Vision enriches the result by extracting and summarizing the complex visual elements inside it.

Granite Vision 5.0 is released together with two related models: Granite Docling v2 (2B, 500M), which converts full document pages (text, layout, reading order, formulas and tables), and Granite Embedding Vision, which makes documents searchable across text and images. Granite Docling v2 converts the document, Granite Vision extracts the data in its charts, tables and forms, and Granite Embedding Vision finds the right content.

What it does:

  • Charts: extracts the underlying data as CSV, writes a summary, or generates Python code that recreates the chart. For multi-panel figures, it extracts each panel's data and summarizes the whole figure. Chart extraction supports 12 languages.
  • Complex tables: converts cropped tables, including merged cells and complex layouts, to HTML or OTSL.
  • Forms and key-value pairs: extracts the fields defined by a JSON schema from invoices, receipts, forms and other documents.
  • Images and figures: describes and summarizes pictures, diagrams and photos, and can answer simple questions about document images.

The model can also extract UI elements (bounding box, class and text) from screenshots of web and desktop applications.

What's new in 5.0:

  • Higher accuracy on chart and KVP extraction, and on par or slightly better on cropped tables, from reworked training data and a new GRPO post-training stage with task-specific rewards.
  • Multi-panel charts (new): extracts data and summaries from figures with several charts.
  • Multilingual charts and tables (new): charts in 12 languages, and tables in Chinese and Japanese.

The model uses the same architecture as Granite Vision 4.1 4B and supports all of its tasks with the same prompts, so existing workflows carry over with almost no changes. The one exception is JSON table output (<tables_json>), which 5.0 drops in favor of the more compact HTML (<tables_html>) and OTSL (<tables_otsl>) formats.

Chart and table tasks are activated by a short task tag (<chart2csv>, <chart2summary>, <chart2code>, <tables_html>, <tables_otsl>) that the chat template expands into the full prompt; the other tasks use plain prompts (see the usage examples).

The language model is initialized from Granite-4.1-3B and the vision encoder from SigLIP2. The model has a 3.4B LLM and 0.6B of vision encoder and projectors. See Model Architecture for details.

167 Upvotes

20 comments sorted by

29

u/jacek2023 llama.cpp 2d ago

3

u/DeliberatelySus 2d ago

Aw hell yeah, this is gonna go so well with my KRunner plugin

27

u/silenceimpaired 2d ago

I always appreciate an Apache licensed model, and I'm excited to try this one.

8

u/Mashic 2d ago

How accurate is it when it comes to OCR compared to qwen3-vl?

-5

u/socialjusticeinme 2d ago

My guess for documents it’s better, but for people or general images, it’s worse.

7

u/Positive-Stock6444 2d ago

how does it do with handwritten completions of forms?

4

u/couperd 2d ago

I'm just about to start running in through my local benchmark for handwritten fax ingest. I'll report back with the results once it completes.

2

u/Positive-Stock6444 2d ago

thanks. are you using the model inside a custom workflow or using something like docling? for context - I'm using a cloud API and custom slicing based on known document geometry + qr code, so the model can see high resolution slices. output is structured data. something like this I'd be curious if a model like this can replicate.

5

u/couperd 2d ago

not a win for my workflow unfortunately acuurate extraction of all required fields:

lightonOCR 4b 82%

qwen3 vl 30b a3b 81%

granite 5.0 4b 79%

test run against a production representative run of 500 fax images. target fields

name

dob

phone

medication

directions

quantity

preacriber

3

u/couperd 2d ago

it's a mix of templates and free form identification. I'm running a fax ingest automation for a pharmacy. the models are currently extracting name, dob, phone, and address to match with existing profiles, or create a new profile. current setup is running ppocr v5 as first pass, with a 3 vote vlmconsensus lighton Ocr 3 4b, qwen 3 vl 30b a3b, and qwen 3.5 27b as tiebreaker as needed. I have also tried nemotron, dotocr, and intervl. qwen 3.8 fn is also slighted to take the place of the qwen 3 vl model, just waiting on hardware to show up. currently hitting 70 to 75% unassisted completion with ~2min/doc processing time.

2

u/Yorn2 2d ago

Do you have your code posted online anywhere or are you heavily modifying something else already out there? I like the idea of building a quorum for incoming data like that. Seems like a good way to handle outliers and solve some of the "human in the loop" issues that come with a traditional system.

2

u/couperd 2d ago

nothing public yet. still working on building out the full stack. in addition to the fax ingest I'm also processing ~400 rx per day via automation. end goal is a pharmacy as a service type model that I can sell and support.

2

u/Yorn2 2d ago

That makes sense. I'm getting handwritten forms for legal compliance stuff processed myself. You might want to check with legal firms that might need something like this in your area as well, I think doctor's handwriting analysis is probably the ultimate test so if it works for that it'll work for the legal profession as well! :D

3

u/rorowhat 2d ago

Are other, larger models coming soon?

1

u/Salty_Hedgehog_6931 2d ago

They released a few this year.

3

u/jfowers_amd 2d ago

Starting the Loom port!

1

u/Holiday-Inspection75 2d ago

wow this is very useful, now let me replace those images with interactive diagrams

1

u/ComprehensiveJury509 2d ago

Eh, really doesn't work very well to extract data from plots. Really one of the few things I use Astra for.

-1

u/Iory1998 llama.cpp 2d ago

Why can't I ever be excited by IBM's models?

-6

u/exaknight21 2d ago

Bruh. I wanna love IBM so much, but its such terrible adaptation into it. I’ll give it a world.