Visual Question Answering
Transformers
Safetensors
English
videollama2_mistral
text-generation
multimodal large language model
large video-language model
Instructions to use Aliayub1995/VideoLLaMA2-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Aliayub1995/VideoLLaMA2-7B with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "visual-question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("visual-question-answering", model="Aliayub1995/VideoLLaMA2-7B")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Aliayub1995/VideoLLaMA2-7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from typing import List, Any
|
| 2 |
import sys
|
| 3 |
sys.path.append('./')
|
| 4 |
from videollama2 import model_init, mm_infer
|
|
|
|
| 1 |
+
from typing import Dict, List, Any
|
| 2 |
import sys
|
| 3 |
sys.path.append('./')
|
| 4 |
from videollama2 import model_init, mm_infer
|