Video-Text-to-Text
Transformers
Safetensors
English
llava
text-generation
multimodal
Eval Results (legacy)
Instructions to use lmms-lab/LLaVA-Video-7B-Qwen2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lmms-lab/LLaVA-Video-7B-Qwen2 with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModelForCausalLM processor = AutoProcessor.from_pretrained("lmms-lab/LLaVA-Video-7B-Qwen2") model = AutoModelForCausalLM.from_pretrained("lmms-lab/LLaVA-Video-7B-Qwen2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Bfloat16 problem
#2
by Aniel99 - opened
Hy, I try to run this on Jetson device on a real time video, but with some modification on video preprocessing. I got this error
expected mat1 and mat2 to have the same dtype, but got: c10::BFloat16 != c10::Half
If I change here :
video = image_processor.preprocess(image_np, return_tensors="pt")["pixel_values"].cuda().bfloat16()
to float16 it works.
thank you!
If I add this line after model.eval(), it seems working>
model = model.to(torch.bfloat16)