RoGemma3-4B-Instruct is a Romanian-adapted vision-language model built on top of
google/gemma-3-4b-it. It was produced by continued supervised instruction
tuning of the base Gemma 3 checkpoint on a Romanian multimodal SFT
mixture covering general instruction following (LLaVA mix), captioning
(Pixmo-Cap, Flickr30k-Cap), visual question answering (Pixmo-AA,
Pixmo-Cap-QA, Flickr30k-QA), document and chart understanding (CoSyn,
FinePDFs), and visual grounding (Pixmo-Points, Pixmo-Count). The model
is intended for research on Romanian VLM capabilities.
RoGemma3-4B-Instruct is intended for research use on Romanian vision-language tasks —
captioning, visual question answering, cultural understanding, OCR /
document understanding, and visual grounding — and as a starting point for
further Romanian VLM adaptation.
Use in any manner that violates applicable laws or regulations (including
trade-compliance laws), the project's license, or use in languages other
than Romanian.
1import torch
2from PIL import Image
3from transformers import AutoProcessor, Gemma3ForConditionalGeneration
4
5model = Gemma3ForConditionalGeneration.from_pretrained(
6 "OpenLLM-Ro/RoGemma3-4B-Instruct",
7 torch_dtype=torch.bfloat16,
8 device_map="auto",
9).eval()
10processor = AutoProcessor.from_pretrained("OpenLLM-Ro/RoGemma3-4B-Instruct")
11
12image = Image.open("example.jpg").convert("RGB")
13question = "Descrie imaginea în detaliu."
14
15messages = [
16 {"role": "user", "content": [
17 {"type": "image", "image": image},
18 {"type": "text", "text": question},
19 ]},
20]
21inputs = processor.apply_chat_template(
22 messages,
23 add_generation_prompt=True,
24 tokenize=True,
25 return_dict=True,
26 return_tensors="pt",
27).to(model.device, dtype=torch.bfloat16)
28
29with torch.inference_mode():
30 outputs = model.generate(**inputs, max_new_tokens=256, do_sample=False)
31print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
All benchmarks below are evaluated in Romanian. Per-benchmark winners are
shown in bold. Micro is the mean over individual benchmarks; Macro
is the mean over capability groups.
1@misc{masala2026intelegi,
2 title={``\^{I}n\c{t}elegi Rom\^{a}ne\c{s}te?'' A Recipe for Romanian Vision-Language Models},
3 author={Mihai Masala and Marius Leordeanu and Mihai Dascalu and Traian Rebedea},
4 year={2026},
5 eprint={2605.31401},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2605.31401},
9}
10
11@inproceedings{masala-etal-2024-vorbesti,
12 title = "``Vorbeşti Româneşte?'' A Recipe to Train Powerful {R}omanian {LLM}s with {E}nglish Instructions",
13 author = "Masala, Mihai and Ilie-Ablachim, Denis and Dima, Alexandru and Corlatescu, Dragos and Zavelca, Miruna and Olaru, Ovio and Terian, Simina and Terian, Andrei and Leordeanu, Marius and Velicu, Horia and Popescu, Marius and Dascalu, Mihai and Rebedea, Traian",
14 booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2024",
15 month = nov,
16 year = "2024",
17 pages = "11632--11647"
18}