This checkpoint applies MoDA to
Qwen3-VL-2B-Instruct, showing that the gains generalize beyond CLIP-style encoders to modern MLLMs. Other variants:
MoDA-LLaVA-MoRE-8B-SigLIP-S2 ·
MoDA-LLaVA-MoRE-8B-CLIP.
Qwen3-VL-2B-Instruct baseline vs. + MoDA (see the paper for the full evaluation):
1import torch
2from transformers import AutoProcessor, AutoModelForImageTextToText
3
4model_id = "waybarrios/MoDA-Qwen3-VL-2B"
5model = AutoModelForImageTextToText.from_pretrained(
6 model_id, trust_remote_code=True, dtype=torch.bfloat16, device_map="auto"
7)
8processor = AutoProcessor.from_pretrained(model_id)
9
10messages = [
11 {"role": "user", "content": [
12 {"type": "image", "url": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg"},
13 {"type": "text", "text": "Describe this image."},
14 ]},
15]
16inputs = processor.apply_chat_template(
17 messages, add_generation_prompt=True, tokenize=True,
18 return_dict=True, return_tensors="pt"
19).to(model.device)
20out = model.generate(**inputs, max_new_tokens=128)
21print(processor.batch_decode(out[:, inputs["input_ids"].shape[1]:], skip_special_tokens=True)[0])
Training and evaluation code (lmms-eval integration) lives in the
qwen3-vl/ directory of the repository.
We evaluate with
lmms-eval, which provides standardized implementations of all benchmarks reported in the paper (GQA, ScienceQA, POPE, MMBench, RealWorldQA, and more).
1@inproceedings{barrios2026moda,
2 title = {MoDA: Modulation Adapter for Fine-Grained Visual Understanding in Instructional MLLMs},
3 author = {Barrios, Wayner and Villa, Andr\'es and Leon Alcazar, Juan C. and Jin, SouYoung and Ghanem, Bernard},
4 booktitle = {Proceedings of the International Conference on Machine Learning (ICML)},
5 year = {2026}
6}
Apache-2.0, following the base model
Qwen/Qwen3-VL-2B-Instruct.
Built on
Qwen3-VL by Alibaba. Supported by startup funds from Dartmouth College and by KAUST — Center of Excellence for Generative AI (award 5940).