Instructions to use Rihong/VideoChat2_HD_Infinity_Mistral_7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rihong/VideoChat2_HD_Infinity_Mistral_7B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Rihong/VideoChat2_HD_Infinity_Mistral_7B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update vit.py
Browse files
vit.py
CHANGED
|
@@ -6,7 +6,7 @@ import torch.nn.functional as F
|
|
| 6 |
import torch.utils.checkpoint as checkpoint
|
| 7 |
from functools import partial
|
| 8 |
|
| 9 |
-
from timm.
|
| 10 |
|
| 11 |
logger = logging.getLogger(__name__)
|
| 12 |
|
|
|
|
| 6 |
import torch.utils.checkpoint as checkpoint
|
| 7 |
from functools import partial
|
| 8 |
|
| 9 |
+
from timm.layers import drop_path, to_2tuple, trunc_normal_
|
| 10 |
|
| 11 |
logger = logging.getLogger(__name__)
|
| 12 |
|