syamao commited on
Commit
f4b52a8
·
1 Parent(s): 546e446

add model

Browse files
README.md CHANGED
@@ -1,3 +1,60 @@
1
- ---
2
- license: cc-by-nc-nd-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-nd-4.0
3
+ library_name: peft
4
+ base_model: lmms-lab/LLaVA-Video-7B-Qwen2
5
+ tags:
6
+ - video-understanding
7
+ - long-video
8
+ - visual-question-answering
9
+ - lora
10
+ - qwen2
11
+ - llava
12
+ - cvpr2026
13
+ datasets:
14
+ - lmms-lab/LLaVA-Video-178K
15
+ pipeline_tag: video-text-to-text
16
+ ---
17
+
18
+ # QViC-MF-7B
19
+
20
+ This is the official model for the paper **"Question-guided Visual Compression with Memory Feedback for Long-Term Video Understanding"** (CVPR 2026).
21
+
22
+ - **Paper:** [arXiv](https://arxiv.org/abs/2603.15167)
23
+ - **Code:** [GitHub](https://github.com/FujitsuResearch/QViC-MF)
24
+ - **Authors:** Sosuke Yamao\*, Natsuki Miyahara\*, Yuankai Qi, Shun Takeuchi
25
+ - **Affiliation:** Fujitsu Research / Macquarie University
26
+
27
+ ## Model Description
28
+
29
+ QViC-MF-7B is a LoRA adapter trained on top of [LLaVA-Video-7B-Qwen2](https://huggingface.co/lmms-lab/LLaVA-Video-7B-Qwen2) for long-term video understanding. It introduces **Question-guided Multimodal Selective Attention (QMSA)**, which learns to preserve visual information related to the given question from both the current clip and past related frames stored in a context memory. The compressor and memory feedback work iteratively for each clip of the entire video, enabling strong performance on tasks that require understanding complete events (e.g., temporal ordering).
30
+
31
+ ## How to Use
32
+
33
+ Please refer to the [official code repository](https://github.com/FujitsuResearch/QViC-MF) for inference and evaluation scripts.
34
+
35
+ ## Model Details
36
+
37
+ | Property | Value |
38
+ |----------|-------|
39
+ | Base Model | [lmms-lab/LLaVA-Video-7B-Qwen2](https://huggingface.co/lmms-lab/LLaVA-Video-7B-Qwen2) |
40
+ | Architecture | LlavaQwenForCausalLM |
41
+ | Vision Encoder | SigLIP-SO400M (google/siglip-so400m-patch14-384) |
42
+ | LLM | Qwen2-7B |
43
+ | Adapter | LoRA (r=64, alpha=16) |
44
+ | Context Memory Length | 256 tokens |
45
+ | Precision | bfloat16 |
46
+
47
+ ## Citation
48
+
49
+ ```bibtex
50
+ @inproceedings{yamao2026qvicmf,
51
+ title={Question-guided Visual Compression with Memory Feedback for Long-Term Video Understanding},
52
+ author={Yamao, Sosuke and Miyahara, Natsuki and Qi, Yuankai and Takeuchi, Shun},
53
+ booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
54
+ year={2026}
55
+ }
56
+ ```
57
+
58
+ ## License
59
+
60
+ This model is released under the [CC-BY-NC-ND-4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/) license.
adapter_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "auto_mapping": null,
3
+ "base_model_name_or_path": "lmms-lab/LLaVA-Video-7B-Qwen2",
4
+ "bias": "none",
5
+ "fan_in_fan_out": false,
6
+ "inference_mode": true,
7
+ "init_lora_weights": true,
8
+ "layers_pattern": null,
9
+ "layers_to_transform": null,
10
+ "lora_alpha": 16,
11
+ "lora_dropout": 0.05,
12
+ "modules_to_save": null,
13
+ "peft_type": "LORA",
14
+ "r": 64,
15
+ "revision": null,
16
+ "target_modules": "encoder\\.model\\.layers\\.\\d+\\.(mlp\\.(up_proj|gate_proj|down_proj)|self_attn\\.(q_proj|v_proj|k_proj|o_proj))",
17
+ "task_type": "CAUSAL_LM"
18
+ }
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db0ec1bfc331941e97ffa0b56491ed1ea7579d7bce005f902a5021f240d5f604
3
+ size 323100714
config.json ADDED
@@ -0,0 +1,230 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "lmms-lab/LLaVA-Video-7B-Qwen2",
3
+ "add_faster_video": false,
4
+ "add_time_instruction": false,
5
+ "architectures": [
6
+ "LlavaQwenForCausalLM"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 151643,
10
+ "context_embed_tokens": 16,
11
+ "context_memory_length": 256,
12
+ "ctx_attn_mask_type": "framewise",
13
+ "eos_token_id": 151645,
14
+ "faster_token_stride": 10,
15
+ "force_sample": true,
16
+ "freeze_mm_mlp_adapter": false,
17
+ "freeze_mm_vision_resampler": false,
18
+ "hidden_act": "silu",
19
+ "hidden_size": 3584,
20
+ "ignore_index": -100,
21
+ "image_aspect_ratio": "anyres_max_9",
22
+ "image_crop_resolution": null,
23
+ "image_grid_pinpoints": [
24
+ [
25
+ 384,
26
+ 384
27
+ ],
28
+ [
29
+ 384,
30
+ 768
31
+ ],
32
+ [
33
+ 384,
34
+ 1152
35
+ ],
36
+ [
37
+ 384,
38
+ 1536
39
+ ],
40
+ [
41
+ 384,
42
+ 1920
43
+ ],
44
+ [
45
+ 384,
46
+ 2304
47
+ ],
48
+ [
49
+ 768,
50
+ 384
51
+ ],
52
+ [
53
+ 768,
54
+ 768
55
+ ],
56
+ [
57
+ 768,
58
+ 1152
59
+ ],
60
+ [
61
+ 768,
62
+ 1536
63
+ ],
64
+ [
65
+ 768,
66
+ 1920
67
+ ],
68
+ [
69
+ 768,
70
+ 2304
71
+ ],
72
+ [
73
+ 1152,
74
+ 384
75
+ ],
76
+ [
77
+ 1152,
78
+ 768
79
+ ],
80
+ [
81
+ 1152,
82
+ 1152
83
+ ],
84
+ [
85
+ 1152,
86
+ 1536
87
+ ],
88
+ [
89
+ 1152,
90
+ 1920
91
+ ],
92
+ [
93
+ 1152,
94
+ 2304
95
+ ],
96
+ [
97
+ 1536,
98
+ 384
99
+ ],
100
+ [
101
+ 1536,
102
+ 768
103
+ ],
104
+ [
105
+ 1536,
106
+ 1152
107
+ ],
108
+ [
109
+ 1536,
110
+ 1536
111
+ ],
112
+ [
113
+ 1536,
114
+ 1920
115
+ ],
116
+ [
117
+ 1536,
118
+ 2304
119
+ ],
120
+ [
121
+ 1920,
122
+ 384
123
+ ],
124
+ [
125
+ 1920,
126
+ 768
127
+ ],
128
+ [
129
+ 1920,
130
+ 1152
131
+ ],
132
+ [
133
+ 1920,
134
+ 1536
135
+ ],
136
+ [
137
+ 1920,
138
+ 1920
139
+ ],
140
+ [
141
+ 1920,
142
+ 2304
143
+ ],
144
+ [
145
+ 2304,
146
+ 384
147
+ ],
148
+ [
149
+ 2304,
150
+ 768
151
+ ],
152
+ [
153
+ 2304,
154
+ 1152
155
+ ],
156
+ [
157
+ 2304,
158
+ 1536
159
+ ],
160
+ [
161
+ 2304,
162
+ 1920
163
+ ],
164
+ [
165
+ 2304,
166
+ 2304
167
+ ]
168
+ ],
169
+ "image_split_resolution": null,
170
+ "image_token_index": 151646,
171
+ "initializer_range": 0.02,
172
+ "intermediate_size": 18944,
173
+ "max_position_embeddings": 32768,
174
+ "max_window_layers": 28,
175
+ "mm_hidden_size": 1152,
176
+ "mm_newline_position": "grid",
177
+ "mm_patch_merge_type": "spatial_unpad",
178
+ "mm_projector_lr": null,
179
+ "mm_projector_type": "mlp2x_gelu",
180
+ "mm_resampler_type": null,
181
+ "mm_spatial_pool_mode": "average",
182
+ "mm_spatial_pool_stride": 2,
183
+ "mm_tunable_parts": "mm_vision_tower,mm_mlp_adapter,mm_language_model",
184
+ "mm_use_im_patch_token": false,
185
+ "mm_use_im_start_end": false,
186
+ "mm_vision_select_feature": "patch",
187
+ "mm_vision_select_layer": -2,
188
+ "mm_vision_tower": "google/siglip-so400m-patch14-384",
189
+ "mm_vision_tower_lr": 2e-06,
190
+ "model_type": "llava",
191
+ "num_attention_heads": 28,
192
+ "num_hidden_layers": 28,
193
+ "num_key_value_heads": 4,
194
+ "pos_skipping_range": 4096,
195
+ "projector_hidden_act": "gelu",
196
+ "question_guided_selective_attention": true,
197
+ "rms_norm_eps": 1e-06,
198
+ "rope_scaling": null,
199
+ "rope_theta": 1000000.0,
200
+ "sliding_window": 131072,
201
+ "text_config": {
202
+ "model_type": "llama"
203
+ },
204
+ "tie_word_embeddings": false,
205
+ "tokenizer_model_max_length": 32768,
206
+ "tokenizer_padding_side": "right",
207
+ "torch_dtype": "bfloat16",
208
+ "transformers_version": "4.40.0.dev0",
209
+ "tune_mm_mlp_adapter": false,
210
+ "tune_mm_vision_resampler": false,
211
+ "unfreeze_mm_vision_tower": false,
212
+ "use_cache": true,
213
+ "use_mm_proj": true,
214
+ "use_pos_skipping": false,
215
+ "use_sliding_window": false,
216
+ "vision_config": {
217
+ "hidden_size": 1024,
218
+ "image_size": 336,
219
+ "intermediate_size": 4096,
220
+ "model_type": "clip_vision_model",
221
+ "num_attention_heads": 16,
222
+ "num_hidden_layers": 24,
223
+ "patch_size": 14,
224
+ "projection_dim": 768,
225
+ "vocab_size": 32000
226
+ },
227
+ "vision_feature_layer": -2,
228
+ "vision_feature_select_strategy": "default",
229
+ "vision_tower_pretrained": null
230
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.05,
10
+ "temperature": 0.7,
11
+ "top_k": 20,
12
+ "top_p": 0.8,
13
+ "transformers_version": "4.40.0.dev0"
14
+ }
non_lora_trainables.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99c0a6d96cafe36e5759091cbcc2826c5442cb85c7f58356989b15a3bd5ffeea
3
+ size 115992
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff