granite-vision-5.0-4b-GGUF: Our Test Answers, 4GB+ VRAM

At a Glance
| Item | Value |
|---|---|
| Repository | ibm-granite/granite-vision-5.0-4b-GGUF |
| Publisher guide | IBM (Granite): models and licenses |
| Published | 2026-12-02 |
| License | apache-2.0 |
| Formats | GGUF |
| Source type | Primary source (the publisher itself) |
Values determined by this site’s code when the information was collected. Dates are JST.
What we checked ourselves
- Ran
granite-vision-5.0-4b-Q4_K_M.gguf(Q4_K_M) on our CPU-only server (Neoverse-N1, 3 threads, llama.cpp b12845): generation at 2.6 tokens/s (a CPU figure, not a GPU speed). - Its answers to our fixed Japanese questions are shown verbatim below.
- It needs about 63% more tokens than the Qwen3 tokenizer for the same Japanese text, so only about 0.61× as much Japanese fits in the same context length.
Details and conditions are in “Our Own Measurements” below.
Overview
ibm-granite/granite-vision-5.0-4b-GGUF has been released as a GGUF-formatted quantized version repository of “Granite Vision 5.0 4B", a vision-language model specialized in visual document understanding from IBM’s “ibm-granite" project.
This repository provides a group of models converted through quantization into various precisions to make the base model, ibm-granite/granite-vision-5.0-4b, easily usable with inference engines such as llama.cpp.
The original Granite Vision 5.0 4B model is a compact vision-language model (VLM) that excels at extracting data from charts, converting complex tables into structured formats, extracting key-value pairs from forms and invoices, and summarizing images and diagrams. It is built to complement the parsing results of document conversion tools and extract detailed structured data from visual elements.
Specifications
- Number of parameters: 4B (3.4B LLM + 0.6B vision encoder and projector)
- Architecture: Granite4VisionForConditionalGeneration (Language model initial value: Granite-4.1-3B, Vision encoder initial value: SigLIP2)
Performance
Since the repository covered in this article is a model converted to the GGUF format, the evaluation and training specifications shown below are based on the information described in the model card of the original model, ibm-granite/granite-vision-5.0-4b. Please note that certain performance changes may occur from the original model due to the quantization process.
According to the model card of the original model, a post-training stage using GRPO (Group Relative Policy Optimization) is introduced after supervised fine-tuning (SFT) for this model. In this process, reinforcement learning was performed by setting dedicated rewards for each of the four task families as shown in the table below.
| Task family | Reward |
|---|---|
| Charts (Chart2CSV) | GriTS between the predicted and reference data tables |
| Tables | GriTS-Con (cell content and structure) |
| JSON / KVP extraction | Field-level match accuracy against the reference JSON |
| UI screens | UI element-matching score, plus bounding-box F1 |
From this evaluation setup table, it can be seen that this model is optimized with clear evaluation metrics corresponding to the output formats of various document extraction tasks. Specifically, the GriTS metric between the predicted results and reference tables is adopted for the task of converting graph images into CSV format (Chart2CSV), and GriTS-Con, which correctly captures cell content and structure, is used for the complex table extraction task (Tables).
In addition, in the JSON / KVP extraction task for extracting specific items from invoices and forms, field-level match accuracy against each field of the reference JSON functions as the reward. Furthermore, for UI screen analysis tasks, UI element matching on the screen and bounding box F1 scores are used.
According to the publisher’s explanation, it is reported that the introduction of the reconstructed training dataset and GRPO post-training has achieved improvements in chart extraction and KVP extraction accuracy compared to the previous generation Granite Vision 4.1, and that extraction levels equal to or higher than before are secured even for cropped tables.
Strengths and Use Cases
The base ibm-granite/granite-vision-5.0-4b for this model group specializes in analyzing visual elements contained within documents and extracting structured data. The main strengths and intended use cases are as follows:
Data Extraction and Summarization from Charts (Diagrams)
It supports data extraction not only from single graphs but also from multi-panel diagrams with multiple subplots. It features functions to interpret graph images and output raw data in CSV format (<chart2csv>), generate summary sentences outlining graph contents (<chart2summary>), and generate Python code to redraw charts (<chart2code>). The chart extraction task supports 12 languages including Japanese and Chinese.
Reading and Converting Complex Table Structures
Taking table images (cropped images) with merged cells or complex layouts as input, it can convert them into HTML format (<tables_html>) or OTSL format (<tables_otsl>) while maintaining their structure. Note that the JSON format output provided in the previous generation Granite Vision 4.1 has been deprecated in version 5.0, consolidating into more compact HTML and OTSL formats. Support for Japanese and Chinese has also been enhanced in table extraction.
Key-Value Extraction (KVP) from Forms and Invoices
Required field values can be extracted from images of receipts, invoices, and various applications in accordance with a specified JSON Schema structure. When corresponding items do not exist in the image, it is possible to control it to return null.
Image Interpretation and UI Element Recognition
Aside from summarizing and explaining illustrations, photographs, and general images, question-and-answering on document images can be performed. It also has the ability to extract bounding box positions, classes, and text information of UI elements such as buttons and text areas from screenshots of web applications or desktop screens.
Collaboration with Other Tools and Ecosystem
This model is designed considering cooperation with the document conversion library “Docling". Docling performs layout analysis and text conversion, while Granite Vision handles the analysis of complex charts and forms within documents, allowing for the construction of high-precision document understanding pipelines. In addition, it supports API server creation using vLLM, MLX VLM for Apple Silicon environments, and inference with llama.cpp.
Hardware Requirements
Estimated requirements (calculated by Local Model Watch) — 4.0B parameters (taken from the base model ibm-granite/granite-vision-5.0-4b)
| Your VRAM | Quantization | File size | Est. memory needed |
|---|---|---|---|
| 4GB (laptop iGPU / phone class) | Q8_0 | 3.4GB | 4.0GB |
| 8GB (RTX 4060 / 3060 Ti, etc.) | BF16 | 6.3GB | 7.6GB |
Memory estimates add a 20% runtime overhead (KV cache, etc.) to the actual size of the distributed files. Actual usage varies with context length, batch size and inference engine. These figures are computed by this site from file sizes, not published by the model’s authors. Compare with other models in our VRAM quick reference. What the quantization names mean: glossary.
Can You Run It Locally?
The publisher distributes this model as GGUF.
License — apache-2.0 (Commercial use allowed): Permits commercial use, modification and redistribution. Redistribution requires including the license and stating changes; includes a patent grant.
Compression: the Q8_0 build measures 7.31 bits per weight — about 46% the size of the original 16-bit weights, calculated by this site from the actual file sizes.
Compiled by this site’s code from the published formats and the license field. License summaries are not legal advice — check the publisher’s original terms before relying on them.
Our Own Measurements
Values we measured ourselves on our server (no GPU) by actually reading and running this model’s files — not figures copied from the model card. How we measure, and the results for every model: Our Measurements.
What We Found
When running the Q4_K_M model of ibm-granite/granite-vision-5.0-4b-GGUF solely on a CPU, the generation speed was 2.6 tokens per second, which translates to 2.3 Japanese characters per second. This is comparable to the 2.57 tokens per second of WeVisOne-VL-4B measured under the same conditions, but slower than WeVisDoc-4B at 8.31 tokens per second and Qwen3-4B at 6.81 tokens per second. Additionally, the number of tokens per 1,000 Japanese characters is 1,119, consuming 2.05 times more tokens than the same content in English, indicating lower Japanese efficiency compared to Qwen3’s 688 tokens. Peak memory consumption was 6.3 GB.
In the five Japanese questions, the model successfully answered the shopping word problem with the correct price of 280 yen and generated a polite email to a business partner. On the other hand, the summarization question resulted in 0 sentences meeting the 3-sentence instruction, with 117 English words mixed into the Japanese response. For the knowledge question asking for prefectures without an ocean coastline, the output was cut off upon reaching the 1,024-token limit; it listed 4 of the 8 correct prefectures but incorrectly included 15 prefectures that actually have a coastline.
In the two image-based questions, the model correctly identified Saturday as the busiest day and 260 people as the correct figure in the visitor chart by day of the week, though the total weekday visitor count was incorrect. Regarding the shopping receipt table, while it failed to provide the correct total amount of 1,354 yen, it successfully answered the correct amount for all 4 individual items.
Japanese Token Efficiency
| Tokenizer | Tokens per 1,000 Japanese characters | Ratio to the same text in English |
|---|---|---|
| This model | 1,119 | 2.05× |
| Qwen3 | 688 | 1.26× |
| Llama 3.2 | 744 | 1.36× |
| Gemma 3 | 564 | 1.03× |
| gpt-oss | 795 | 1.45× |
| LLM-jp-3 | 497 | 0.85× |
It needs about 63% more tokens than the Qwen3 tokenizer for the same Japanese text, so only about 0.61× as much Japanese fits in the same context length.
Counted with the tokenizer.json of ibm-granite/granite-vision-5.0-4b on a fixed text we wrote ourselves (876 Japanese characters across news, conversation, technical docs, a formal email, travel writing and a recipe) and its English translation. Fewer tokens mean more Japanese fits in the context window.
Inside the GGUF File
File: granite-vision-5.0-4b-Q4_K_M.gguf (1.96GB, Q4_K_M). We read only the header (metadata) of the file, not the weights.
| Item | Value |
|---|---|
| Architecture (as named in the GGUF) | granite |
| Maximum trained context length | 131,072 tokens |
| Layers | 40 |
| Vocabulary size | 100,352 |
| Chat template | Included (mentions tool calls) |
| imatrix | Not recorded in the file |
| Weight types (share of parameters) | Q4_K 79.3% / Q6_K 20.6% / F32 0.0% |
| Average bits per weight | 4.93 bits |
| Embedding / output layer type | Q6_K / shared with the embedding |
The quant name in the file name describes the file as a whole; in practice layers mix several types. The average bits per weight is the measured file data divided by the number of weights.
Running It on a CPU Only
| Item | Result |
|---|---|
| Prompt processing (512 tokens) | 14.5 tokens/s |
| Generation (128 tokens) | 2.6 tokens/s |
| Generation in Japanese characters | about 2.3 characters/s |
| Peak memory (context 4,096 tokens) | 6.3GB |
Conditions: Neoverse-N1, 3 threads, no GPU, llama.cpp b12845, Q4_K_M (1.96GB) from ibm-granite/granite-vision-5.0-4b-GGUF, measured 2026-12-03 (JST). Other models measured under the same conditions (closest in file size):
→ Scroll horizontally to see all columns
| Model | Quant | File size | Generation | In Japanese |
|---|---|---|---|---|
| Qwen3-4B | Q4_K_M |
2.33GB | 6.8 tokens/s | — |
| ZwZ2-4B | Q4_K_M |
2.52GB | 6.8 tokens/s | 12.6 chars/s |
| WeVisDoc-4B | Q4_K_M |
2.53GB | 8.3 tokens/s | 12.1 chars/s |
| WeVisOne-VL-4B | Q4_K_M |
2.53GB | 2.6 tokens/s | 3.7 chars/s |
Peak memory includes the model file mapped into memory (mmap). A PC with a GPU will be much faster; these figures are a guide for CPU-only machines such as mini PCs and ARM boards.
Commands We Ran
We used the official llama.cpp build llama-b12845-bin-ubuntu-arm64.tar.gz from the releases page and downloaded these files:
https://huggingface.co/ibm-granite/granite-vision-5.0-4b-GGUF/resolve/main/granite-vision-5.0-4b-Q4_K_M.gguf
https://huggingface.co/ibm-granite/granite-vision-5.0-4b-GGUF/resolve/main/mmproj-model-bf16.gguf
Speed (llama-bench):
nice -n 10 ./llama-bench -m granite-vision-5.0-4b-Q4_K_M.gguf -t 3 -p 512 -n 128 -r 2 -o json
Answers: we started llama-server like this (we pick a free port each time; shown as 8080) and sent each question to /v1/chat/completions with the body below (only the question text changes; this example is the business-email question):
nice -n 10 ./llama-server -m granite-vision-5.0-4b-Q4_K_M.gguf -t 3 -c 4096 --jinja --host 127.0.0.1 --port 8080 --mmproj mmproj-model-bf16.gguf
curl -s http://127.0.0.1:8080/v1/chat/completions \
-H 'Content-Type: application/json' \
-d @- <<'EOF'
{
"messages": [
{
"role": "user",
"content": "取引先の担当者に、来週火曜日の打ち合わせを水曜日に変更してほしいとお願いするメールを、丁寧な敬語で書いてください。"
}
],
"temperature": 0,
"seed": 0,
"max_tokens": 1024,
"chat_template_kwargs": {
"enable_thinking": false
}
}
EOF
Answers to Our Japanese Questions (Verbatim)
We ask every model the same five questions in Japanese under the conditions above (temperature 0, thinking turned off where the chat template allows it, up to 1024 tokens) and publish the answers unedited. We do not grade them; where a question has a single correct answer, we show it for comparison.
Summarization
次の記事を3文で要約してください。
みどり市は今年の春、市内に三つある公立図書館のうち最も古い中央図書館の改修を終え、十月一日に再開館した。改修は約一年半にわたり、総事業費は約十二億円。このうち約四億円は国の補助金でまかなわれた。
最大の変化は、閲覧席の配置である。以前は館内の座席の大半が学習用の机で、試験期間になると中高生で埋まり、高齢の利用者や小さな子ども連れが座れないという苦情が毎年寄せられていた。改修後は座席数を百二十席から二百席に増やしたうえで、学習用の机を三階にまとめ、一階は会話ができる「にぎわいフロア」、二階は静かに本を読む「閲覧フロア」に分けた。一階には予約制のグループ学習室が四室と、飲み物を持ち込めるカフェスペースも設けられた。
蔵書の面でも見直しが進んだ。貸出の少ない古い資料約三万冊を市内の他の館や保存書庫に移し、代わりに子ども向けの絵本と、介護・子育て・仕事探しといった暮らしに関わる実用書を約一万五千冊増やした。電子書籍の貸出サービスも始まり、利用登録をすれば自宅から一度に三冊まで、二週間借りられる。
建物そのものにも手が入った。築四十年を超えていた空調設備を入れ替え、屋上には太陽光パネルを設置して、館内で使う電力の約二割をまかなえるようにした。車いすの利用者から要望の多かったエレベーターは一基から二基に増え、書架の間の通路も以前より三十センチ広げられた。入口には段差のないスロープが新たに設けられ、授乳室と多目的トイレも各階に一つずつ置かれた。
一方で課題も残る。駐車場は改修前と同じ四十台のままで、週末には近くの道路に順番待ちの車が並んだ。市は隣接する市有地を臨時駐車場として開放したが、恒久的な対策は決まっていない。また、開館時間を平日の夜九時まで延ばしたことで職員の負担が増えており、職員団体は人員の追加を求めている。
利用者の受け止めはおおむね好意的だ。週に二度、孫を連れて来るという七十代の女性は「前は子どもが声を出すと周りの目が気になったが、一階なら気兼ねなく絵本を読んであげられる」と話す。一方、受験を控えた高校生の中には「学習席が三階だけになり、夕方はすぐに満席になる」と不満を漏らす人もいる。図書館は、学習席の空き状況をホームページで確認できる仕組みを年内に導入する予定だ。
再開館に合わせて、催しも増えた。毎週土曜の午前には読み聞かせ会、月に一度は地元の農家や商店主を講師に招く「まちの先生」講座が開かれる。十一月には、市内の中学生が選んだ本を紹介する展示も予定されている。
館長の山本和子さんは「本を借りる場所から、人が集まって過ごす場所へ変えたかった。再開館からの一か月で来館者は以前の一・八倍になった」と話す。市は来年度、残る二つの図書館についても利用者への聞き取りを行い、改修の必要性を検討する方針だ。
(Summarize the following article in three sentences. (The article, about 1,200 Japanese characters, describes the renovation and reopening of a city’s central library: the budget, the new floor layout and seating, changes to the collection and e-book lending, building and accessibility work, remaining issues such as parking and staff workload, users’ reactions, new events, and the city’s next steps.))
The article discusses the reopening of the central library in Minami City, which took place on October 1st after a renovation that lasted approximately 18 months and cost around 120 million yen, with 40 million yen coming from government subsidies. The most significant change is the rearrangement of the reading area, which increased the number of seats from 120 to 200 and divided the space into a lively floor for conversation and a quiet floor for reading. The library also introduced an electronic book lending service and expanded its collection to include more practical books for children and adults. The building was also updated with new air conditioning, solar panels, and accessibility features. However, challenges remain, such as limited parking space and increased staff workload. Overall, the library has seen a significant increase in visitors since its reopening.
Formal business email
取引先の担当者に、来週火曜日の打ち合わせを水曜日に変更してほしいとお願いするメールを、丁寧な敬語で書いてください。
(Write an email in polite Japanese (keigo) asking a client’s contact person to move next Tuesday’s meeting to Wednesday.)
件名:来週火曜日の打ち合わせを水曜日に変更するお願い
担当者様、
この度はご多忙の中、ご世話を賜り、ありがとうございます。
この件について、来週火曜日の打ち合わせを水曜日に変更していただきたいとお願い申し上げます。ご理解いただけるよう、ご案内いたします。
ご確認いただき、よろしければご変更ください。何かご質問やご相談がございましたら、お気軽にお問い合わせください。
どうぞよろしくお願いいたします。
敬具
[あなたの名前]
Word problem
りんごが1個120円、みかんが1個45円です。りんごを3個とみかんを8個買って、1,000円札で払いました。おつりはいくらですか。考え方も示してください。
(Apples cost 120 yen each and mandarins cost 45 yen each. You buy 3 apples and 8 mandarins and pay with a 1,000-yen bill. How much change do you get? Show your reasoning.)
1. Calculate the total cost of the apples and oranges:
- 3 apples * 120 yen/apple = 360 yen
- 8 oranges * 45 yen/orange = 360 yen
- Total cost = 360 yen + 360 yen = 720 yen
2. Calculate the change:
- Change = 1,000 yen - 720 yen = 280 yen
So, the change is 280 yen.
The calculation is based on the given prices and the number of apples and oranges purchased. The total cost is calculated by multiplying the number of each fruit by its respective price and then adding the two amounts together. The change is calculated by subtracting the total cost from the amount paid.
Reference: The correct answer is 280 yen (120×3 = 360, 45×8 = 360, 1,000 − 720 = 280).
Knowledge
日本の都道府県のうち、海に面していない県をすべて挙げてください。
(List all of Japan’s prefectures that do not border the sea.)
日本の海に面していない県は、沖縄県、北海道、青森県、岩手県、宮城県、秋田県、山形県、福島県、茨城県、栃木県、群馬県、新潟県、富山県、石川県、兵庫県、京都府、大阪府、奈良県、滋賀県、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、京都府、
(Cut off at the 1024-token limit.)
Reference: The correct answer is eight prefectures: Tochigi, Gunma, Saitama, Yamanashi, Nagano, Gifu, Shiga and Nara.
Constrained writing
「春」をテーマにした俳句を3つ、五・七・五の音数を守って作ってください。それぞれに一言の説明を付けてください。
(Write three haiku on the theme of spring, keeping the 5-7-5 syllable pattern, each with a one-line explanation.)
1. 「花びら舞う春」 - 春の風情を表現するために、花びらが舞う様子を描いています。
2. 「山の鐘鳴き春」 - 春の風景を表現するために、山の鐘が鳴く様子を描いています。
3. 「桜咲く町春」 - 春の風情を表現するために、桜が咲く町の様子を描いています。
Answers About Images (Verbatim)
Under the same conditions, we gave the model images we drew ourselves with code (a chart and a table in Japanese) and asked about them. Answers are unedited; the correct answers were computed by the code that drew the images.
Reading a chart

このグラフで来客数が最も多い曜日と、その人数を答えてください。また、平日(月曜日〜金曜日)の来客数の合計も求めてください。
(Which day has the most visitors in this chart, and how many? Also give the weekday (Mon-Fri) total.)
このグラフで来客数が最も多い曜日は土曜日で、260人です。平日(月曜日〜金曜日)の来客数の合計は120+95+110+130+180=625人です。
Reference: Correct answer: Sat with 260 visitors; the weekday total is 635.
Reading a table and calculating

この表の品目ごとの金額(数量×単価)と、合計金額を答えてください。
(Give the amount for each item (quantity × unit price) in this table, and the total.)
この表の品目ごとの金額(数量×単価)と、合計金額は以下の通りです。
- りんご: 3 × 120円 = 360円
- みかん: 8 × 45円 = 360円
- 牛乳: 2 × 198円 = 396円
- 食パン: 1 × 238円 = 238円
合計金額は:
360円 + 360円 + 396円 + 238円 = 1244円
Reference: Correct answer: 360 yen, 360 yen, 396 yen, 238 yen; total 1,354 yen.
How to Get It
Model files converted to the GGUF format can be obtained from the Hugging Face repository ibm-granite/granite-vision-5.0-4b-GGUF. This model is published under the Apache 2.0 license, and no special applications or prior agreements are required for use.
For inference, use engines that support the GGUF format and multimodal (vision) inputs, such as llama.cpp. During execution, it is necessary to load the vision projector model (mmproj-model-bf16.gguf) in combination with the main model body (e.g., granite-vision-5.0-4b-Q8_0.gguf).
An example of image analysis via CLI using the llama cli command is as follows:
llama cli -m granite-vision-5.0-4b-Q8_0.gguf --mmproj mmproj-model-bf16.gguf --image page.png --jinja --temp 0 -p "Describe this image."
Also, when launching as an OpenAI-compatible API server, use the llama serve command.
llama serve -m granite-vision-5.0-4b-Q8_0.gguf \
--mmproj mmproj-model-bf16.gguf \
--jinja \
--port 8080
After starting the server, by base64-encoding image data and sending an HTTP request to the /v1/chat/completions endpoint, it can be used from other applications in an OpenAI API-compatible format.
Related Articles
- IBM Releases Granite Switch 4.1: Modular LLMs with aLoRA and Speech
- granite-speech-5.0-2b-ONNX Speech Recognition Model: 8GB+ VRAM
What to Read Next
- Find models by VRAM (This model runs from the 4GB tier) → Other models that run on a 8GB GPU
- What Q8_0 mean and where to get this model → GGUF format guide and models / Quantization and model-format glossary
- Learn about the publisher → IBM (Granite): models, licenses and articles
Sources
- https://huggingface.co/ibm-granite/granite-vision-5.0-4b-GGUF
- https://huggingface.co/ibm-granite/granite-vision-5.0-4b
Update History
- 2026-12-03: Added our own measurements: Japanese token efficiency, what is inside the GGUF file, CPU speed and answers to Japanese questions.
- 2026-12-03: Changed the title to show what the article covers (VRAM requirements, file list, etc.).

