Video-Text-to-Text
Transformers
Safetensors
English
videochat_flash_qwen
feature-extraction
multimodal
custom_code
Eval Results (legacy)
Instructions to use OpenGVLab/VideoChat-Flash-Qwen2-7B_res224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenGVLab/VideoChat-Flash-Qwen2-7B_res224 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OpenGVLab/VideoChat-Flash-Qwen2-7B_res224", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update modeling_qwen2_flash.py
Browse files- modeling_qwen2_flash.py +1 -0
modeling_qwen2_flash.py
CHANGED
|
@@ -1027,6 +1027,7 @@ class Qwen2Model_Flash(Qwen2PreTrainedModel):
|
|
| 1027 |
(batch_size, seq_length),
|
| 1028 |
inputs_embeds,
|
| 1029 |
past_key_values_length,
|
|
|
|
| 1030 |
)
|
| 1031 |
else:
|
| 1032 |
# 4d mask is passed through the layers
|
|
|
|
| 1027 |
(batch_size, seq_length),
|
| 1028 |
inputs_embeds,
|
| 1029 |
past_key_values_length,
|
| 1030 |
+
sliding_window=self.config.sliding_window,
|
| 1031 |
)
|
| 1032 |
else:
|
| 1033 |
# 4d mask is passed through the layers
|