Views
No views yet
google/gemma-4-31B-it-VLM trained to ground chart visual reasoning in coordinate primitives (points and polygons).google/gemma-4-31B-it-VLM| Model / Configuration | Numeric QA (%) | Other QA (%) | Overall (%) |
|---|---|---|---|
| Gemma 4 31B-IT (Direct) | 73.5 | 88.9 | 79.6 |
| Gemma 4 31B-IT (Reasoning Chain) | 80.1 | 88.4 | 83.4 |
| Adapted (Ours) | 85.8 | 94.9 | 89.4 |
q_proj, k_proj, v_proj, o_proj1import torch
2from transformers import AutoProcessor, AutoModelForCausalLM
3
4model_id = "google/gemma-4-31B-it-VLM"
5adapter_id = "your-username/adaption_chart_qa_numeric"
6
7processor = AutoProcessor.from_pretrained(model_id)
8model = AutoModelForCausalLM.from_pretrained(
9 model_id,
10 torch_dtype=torch.bfloat16,
11 device_map="auto"
12)
13model.load_adapter(adapter_id)
14
15# Inference standard ChartQA input