Video-Text-to-Text
Transformers
Safetensors
English
videochat_flash_qwen
feature-extraction
multimodal
custom_code
Eval Results (legacy)
Run this model with HF Jobs
Run OpenGVLab/VideoChat-Flash-Qwen2-7B_res448 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/OpenGVLab/VideoChat-Flash-Qwen2-7B_res448. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/OpenGVLab/VideoChat-Flash-Qwen2-7B_res448 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
Update modeling_videochat_flash.py
Browse files682 unmodified lines683684685686687688689690682 unmodified linesoutputs = outputs.strip()print(f"\033[91m== Question: \033[0m\n{prompt}\n")print(f"\033[91m== Response: \033[0m\n{outputs}\n")if chat_history is None:chat_history = []682 unmodified lines683684685686687688689690682 unmodified linesoutputs = outputs.strip()# print(f"\033[91m== Question: \033[0m\n{prompt}\n")# print(f"\033[91m== Response: \033[0m\n{outputs}\n")if chat_history is None:chat_history = []
modeling_videochat_flash.py+2-2