Restore model card

#2
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +133 -5
README.md CHANGED
@@ -1,17 +1,18 @@
1
  ---
2
- base_model:
3
- - Qwen/Qwen2.5-Omni-7B
4
  datasets:
5
  - antgroup/HumanSense_Benchmark
6
  language:
7
  - en
8
- license: apache-2.0
9
  metrics:
10
  - accuracy
11
- pipeline_tag: video-text-to-text
12
  library_name: transformers
 
 
 
13
  ---
14
 
 
15
  <div align="center" style="font-family: charter;">
16
 
17
 
@@ -22,4 +23,131 @@ library_name: transformers
22
  <!-- <h1></br>From Multimodal Perception to Empathetic Context-Aware Responses through Reasoning MLLMs</h1> -->
23
 
24
  <div>
25
- <a href="https://scholar.google.com/citations?user=sPQ
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: apache-2.0
 
3
  datasets:
4
  - antgroup/HumanSense_Benchmark
5
  language:
6
  - en
 
7
  metrics:
8
  - accuracy
 
9
  library_name: transformers
10
+ base_model:
11
+ - Qwen/Qwen2.5-Omni-7B
12
+ pipeline_tag: video-text-to-text
13
  ---
14
 
15
+
16
  <div align="center" style="font-family: charter;">
17
 
18
 
 
23
  <!-- <h1></br>From Multimodal Perception to Empathetic Context-Aware Responses through Reasoning MLLMs</h1> -->
24
 
25
  <div>
26
+ <a href="https://scholar.google.com/citations?user=sPQqpXsAAAAJ&hl=en&oi=sra">Zheng Qin<sup>1</sup></a>,
27
+ <a href="https://scholar.google.com/citations?user=S8FmqTUAAAAJ&hl=en">Ruobing Zheng<sup>*</sup><sup>2</sup></a>,
28
+ <a href="https://scholar.google.com/citations?user=3WVFdMUAAAAJ&hl=en">Yabing Wang<sup>1</sup></a>,
29
+ <a href="https://scholar.google.com/citations?user=yOtsVWQAAAAJ&hl=en&oi=sra">Tianqi Li<sup>2</sup></a>,
30
+ <a href="https://yuanyi.pub/">Yi Yuan<sup>2</sup></a>,
31
+ <a href="https://scholar.google.com/citations?hl=en&user=8SCEv-YAAAAJ&view_op=list_works&sortby=pubdate">Jingdong Chen<sup>2</sup></a>,
32
+ <a href="https://scholar.google.com/citations?user=RypRCUQAAAAJ&hl=en">Le Wang<sup>†<dag><sup>1</sup></a> <br>
33
+ <span style="font-size: 13px; margin-top: 0.8em">
34
+ <br>
35
+ <sup>*</sup>Co-first authors. Project Lead.
36
+ <sup>†</sup>Corresponding Author.
37
+ <br>
38
+ <sup>1</sup>Xi’an Jiaotong University. <sup>2</sup>Ant Group.
39
+ <br>
40
+ </span>
41
+ </div>
42
+
43
+
44
+ <a target="_blank" href="https://arxiv.org/abs/2508.10576" ><button><i class="ai ai-arxiv"></i> arXiv:2508.10576</button></a>
45
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
46
+ <a target="_blank" href="https://digital-avatar.github.io/ai/HumanSense/" ><button><i class="ai ai-arxiv"></i> Homepage</button></a>
47
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
48
+ <a target="_blank" href="https://github.com/antgroup/HumanSense" ><button><i class="ai ai-arxiv"></i> GitHub</button></a>
49
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
50
+
51
+
52
+
53
+
54
+ <img src="figure1.png" width="100%"/>
55
+ <p align="justify"><i>While Multimodal Large Language Models (MLLMs) show immense promise for achieving truly human-like interactions, progress is hindered by the lack of fine-grained evaluation frameworks for human-centered scenarios, encompassing both the understanding of complex human intentions and the provision of empathetic, context-aware responses. Here we introduce <strong>HumanSense</strong>, a comprehensive benchmark designed to evaluate the human-centered perception and interaction capabilities of MLLMs, with a particular focus on deep understanding of extended multimodal contexts and the formulation of rational feedback. Our evaluation reveals that leading MLLMs still have considerable room for improvement, particularly for advanced interaction-oriented tasks. Supplementing visual input with audio and text information yields substantial improvements, and Omni-modal models show advantages on these tasks. Furthermore, we argue that appropriate feedback stems from a contextual analysis of the interlocutor's needs and emotions, with reasoning ability serving as the key to unlocking it. Accordingly, we devise a multi-stage, modality-progressive reinforcement learning approach, resulting in <strong>HumanSense-Omni-Reasoning</strong>, which substantially enhances performance on higher-level understanding and interactive tasks. Additionally, we observe that successful reasoning processes exhibit highly consistent thought patterns. By designing corresponding prompts, we also enhance the performance of non-reasoning models in a training-free manner.
56
+ </i></p>
57
+
58
+ </div>
59
+
60
+ ## Release
61
+ - `2025-08-27` :hearts: We release both the training code and dataset!
62
+ - `2025-08-27` :hearts: We released Benchmark and code!
63
+ - `2025-08-15` :rocket: We released our paper!
64
+
65
+
66
+
67
+ ## Quickstart
68
+
69
+ Below, we provide simple examples to show how to use HumanSense_Omni_Reasoning with 🤗 Transformers.
70
+ ```
71
+ pip uninstall transformers
72
+ pip install transformers==4.52.0
73
+ pip install accelerate
74
+ pip install qwen-omni-utils
75
+ pip install qwen-omni-utils[decord] -U
76
+ ```
77
+
78
+ ```python
79
+ import torch
80
+ from transformers import Qwen2_5OmniForConditionalGeneration, Qwen2_5OmniProcessor
81
+ from qwen_omni_utils import process_mm_info
82
+
83
+
84
+ model_path = "antgroup/HumanSense_Omni_Reasoning"
85
+
86
+
87
+ model = Qwen2_5OmniForConditionalGeneration.from_pretrained(
88
+ model_path,
89
+ torch_dtype=torch.bfloat16,
90
+ device_map="auto",
91
+ attn_implementation="flash_attention_2",
92
+ )
93
+ model.disable_talker()
94
+ processor = Qwen2_5OmniProcessor.from_pretrained(model_path)
95
+
96
+ conversation = [
97
+ {
98
+ "role": "user",
99
+ "content": [
100
+ {
101
+ "type": "video",
102
+ "video": "file:///path/to/xxx.mp4",
103
+ "max_pixels": 151200
104
+ },
105
+ {
106
+ "type": "text",
107
+ "text": "xxxxxxxxxxxxxxxxxx\n"
108
+ }
109
+ ],
110
+ }
111
+ ]
112
+
113
+ USE_AUDIO_IN_VIDEO=True
114
+
115
+ text = processor.apply_chat_template(conversation, add_generation_prompt=True, tokenize=False)
116
+ audios, images, videos = process_mm_info(conversation, use_audio_in_video=USE_AUDIO_IN_VIDEO)
117
+ inputs = processor(text=text, audio=audios, images=images, videos=videos, return_tensors="pt", padding=True,padding_side="left",add_special_tokens=False, use_audio_in_video=USE_AUDIO_IN_VIDEO)
118
+ inputs = inputs.to(model.device).to(model.dtype)
119
+
120
+ # Inference: Generation of the output text and audio
121
+ text_ids = model.generate(**inputs,return_audio=False, use_audio_in_video=USE_AUDIO_IN_VIDEO)
122
+ generated_ids_trimmed = [
123
+ out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, text_ids)
124
+ ]
125
+ text = processor.batch_decode(generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False)
126
+
127
+
128
+
129
+ response = text[0]
130
+ print('*'*30)
131
+ print(response)
132
+
133
+ ```
134
+
135
+ <p align="justify"><i>Examples of Reasoning: </i></p>
136
+ <img src="figure5.png" width="100%"/>
137
+ <p align="justify"><i>These cases cover four high-level perception and interaction tasks, including both video-based and audio-based questions. The reasoning processes all demonstrate thinking that integrates characteristics, emotions, and context, and then provides appropriate feedback.
138
+ </i></p>
139
+
140
+ </div>
141
+
142
+
143
+
144
+ **BibTeX:**
145
+
146
+ ```
147
+ @article{qin2025humansense,
148
+ title={HumanSense: From Multimodal Perception to Empathetic Context-Aware Responses through Reasoning MLLMs},
149
+ author={Qin, Zheng and Zheng, Ruobing and Wang, Yabing and Li, Tianqi and Yuan, Yi and Chen, Jingdong and Wang, Le},
150
+ journal={arXiv preprint arXiv:2508.10576},
151
+ year={2025}
152
+ }
153
+ ```