Instructions to use morpheushoc/InternVideo2-Cls-8B-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use morpheushoc/InternVideo2-Cls-8B-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="morpheushoc/InternVideo2-Cls-8B-1", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("morpheushoc/InternVideo2-Cls-8B-1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload config
Browse files- config.json +2 -6
config.json
CHANGED
|
@@ -1,10 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
"InternVideo2_Classification_test"
|
| 4 |
-
],
|
| 5 |
"auto_map": {
|
| 6 |
-
"AutoConfig": "model_config.VideoChat2Config"
|
| 7 |
-
"AutoModel": "modeling_videochat2_classification.InternVideo2_Classification_test"
|
| 8 |
},
|
| 9 |
"model_config": {
|
| 10 |
"bridge": {
|
|
@@ -50,6 +47,5 @@
|
|
| 50 |
}
|
| 51 |
},
|
| 52 |
"model_type": "InternVideo2_Classification_test",
|
| 53 |
-
"torch_dtype": "float32",
|
| 54 |
"transformers_version": "4.46.1"
|
| 55 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_attn_implementation_autoset": true,
|
|
|
|
|
|
|
| 3 |
"auto_map": {
|
| 4 |
+
"AutoConfig": "model_config.VideoChat2Config"
|
|
|
|
| 5 |
},
|
| 6 |
"model_config": {
|
| 7 |
"bridge": {
|
|
|
|
| 47 |
}
|
| 48 |
},
|
| 49 |
"model_type": "InternVideo2_Classification_test",
|
|
|
|
| 50 |
"transformers_version": "4.46.1"
|
| 51 |
}
|