Visual Question Answering
Transformers
Safetensors
English
videollama2_qwen2
text-generation
Audio-visual Question Answering
Audio Question Answering
multimodal large language model
Instructions to use lym0302/VideoLLaMA2.1-7B-AV-CoT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lym0302/VideoLLaMA2.1-7B-AV-CoT 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="lym0302/VideoLLaMA2.1-7B-AV-CoT")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("lym0302/VideoLLaMA2.1-7B-AV-CoT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from lym0302/VideoLLaMA2.1-7B-AV-CoT: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/lym0302/VideoLLaMA2.1-7B-AV-CoT/resolve/main/config.json
- Command line
-
hf download hf://lym0302/VideoLLaMA2.1-7B-AV-CoT/config.json
-
curl -L -o config.json https://huggingface.co/lym0302/VideoLLaMA2.1-7B-AV-CoT/resolve/main/config.json
1.33 kB
| { | |
| "_name_or_path": "VideoLLaMA2.1-7B-AV-CoT", | |
| "architectures": [ | |
| "Videollama2Qwen2ForCausalLM" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 151643, | |
| "eos_token_id": 151645, | |
| "freeze_mm_mlp_adapter": false, | |
| "hidden_act": "silu", | |
| "hidden_size": 3584, | |
| "hidden_size_a": 3584, | |
| "image_aspect_ratio": "pad", | |
| "initializer_range": 0.02, | |
| "intermediate_size": 18944, | |
| "max_position_embeddings": 32768, | |
| "max_window_layers": 28, | |
| "mm_audio_tower": "audio_tower.bin", | |
| "mm_hidden_size": 1152, | |
| "mm_hidden_size_a": 768, | |
| "mm_projector_a_type": "mlp2x_gelu", | |
| "mm_projector_lr": null, | |
| "mm_projector_type": "stc_connector_v35", | |
| "mm_vision_select_feature": "patch", | |
| "mm_vision_select_layer": -2, | |
| "mm_vision_tower": "google/siglip-so400m-patch14-384", | |
| "model_type": "videollama2_qwen2", | |
| "num_attention_heads": 28, | |
| "num_frames": 8, | |
| "num_hidden_layers": 28, | |
| "num_key_value_heads": 4, | |
| "rms_norm_eps": 1e-06, | |
| "rope_theta": 1000000.0, | |
| "sliding_window": 131072, | |
| "tie_word_embeddings": false, | |
| "tokenizer_model_max_length": 2048, | |
| "tokenizer_padding_side": "right", | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.42.3", | |
| "tune_mm_mlp_adapter": false, | |
| "tune_mm_mlp_adapter_a": true, | |
| "use_cache": true, | |
| "use_mm_proj": true, | |
| "use_sliding_window": false, | |
| "vocab_size": 152064 | |
| } | |