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_res448 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenGVLab/VideoChat-Flash-Qwen2-7B_res448 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OpenGVLab/VideoChat-Flash-Qwen2-7B_res448", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download constants.py from OpenGVLab/VideoChat-Flash-Qwen2-7B_res448: direct link, hf CLI and curl.
- Browser
- Download file 293 Bytes
-
https://huggingface.co/OpenGVLab/VideoChat-Flash-Qwen2-7B_res448/resolve/main/constants.py
- Command line
-
hf download hf://OpenGVLab/VideoChat-Flash-Qwen2-7B_res448/constants.py
-
curl -L -o constants.py https://huggingface.co/OpenGVLab/VideoChat-Flash-Qwen2-7B_res448/resolve/main/constants.py
293 Bytes
| CONTROLLER_HEART_BEAT_EXPIRATION = 30 | |
| WORKER_HEART_BEAT_INTERVAL = 15 | |
| LOGDIR = "." | |
| # Model Constants | |
| IGNORE_INDEX = -100 | |
| IMAGE_TOKEN_INDEX = -200 | |
| DEFAULT_IMAGE_TOKEN = "<image>" | |
| DEFAULT_IMAGE_PATCH_TOKEN = "<im_patch>" | |
| DEFAULT_IM_START_TOKEN = "<im_start>" | |
| DEFAULT_IM_END_TOKEN = "<im_end>" | |