Views
No views yet
| Model | Average | MathVista | MathVision | MathVerse | DynaMath | LogicVista |
|---|---|---|---|---|---|---|
| Qwen2.5-VL-7B | 40.5 | 68.0 | 25.7 | 45.5 | 21.8 | 41.2 |
| VLAA-Thinker-Qwen2.5-7B | 42.7 | 68.0 | 26.4 | 48.2 | 22.4 | 48.5 |
| VL-Rethinker-7B | 41.8 | 73.7 | 28.4 | 46.4 | 17.8 | 42.7 |
| TBAC-VLR1-7B-RL | 41.3 | 70.1 | 25.4 | 43.4 | 19.0 | 48.4 |
| TBAC-VLR1-7B-SFT | 41.8 | 65.1 | 28.5 | 49.1 | 20.6 | 45.5 |
| TBAC-VLR1-7B | 43.4 | 66.7 | 31.4 | 50.1 | 22.6 | 46.4 |
1from transformers import Qwen2_5_VLForConditionalGeneration, AutoTokenizer, AutoProcessor
2from qwen_vl_utils import process_vision_info
3
4model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
5 "TencentBAC/TBAC-VLR1-7B", torch_dtype="auto", device_map="auto"
6)
7
8processor = AutoProcessor.from_pretrained("TencentBAC/TBAC-VLR1-7B")
9
10messages = [
11 {
12 "role": "system",
13 "content": "You FIRST think about the reasoning process as an internal monologue and then provide the final answer. The reasoning process MUST BE enclosed within <think> </think> tags. The final answer MUST BE put in \\boxed{}."
14 },
15 {
16 "role": "user",
17 "content": [
18 {
19 "type": "image",
20 "image": image_path,
21 },
22 {"type": "text", "text": query},
23 ],
24 }
25]
26
27# Preparation for inference
28text = processor.apply_chat_template(
29 messages, tokenize=False, add_generation_prompt=True
30)
31image_inputs, video_inputs = process_vision_info(messages)
32inputs = processor(
33 text=[text],
34 images=image_inputs,
35 videos=video_inputs,
36 padding=True,
37 return_tensors="pt",
38)
39inputs = inputs.to("cuda")
40
41# Inference: Generation of the output
42generated_ids = model.generate(**inputs, max_new_tokens=128, do_sample=False)
43generated_ids_trimmed = [
44 out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
45]
46output_text = processor.batch_decode(
47 generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
48)
49print(output_text)@misc{Ou2025TBACVLR1,
title = {TBAC-VLR1-7B},
author = {Ou, Linyu and Xu, Junzhe and Yin, Yuyang},
year = {2025},
url = {https://huggingface.co/TencentBAC/TBAC-VLR1-7B},
}