Video Classification
Transformers
Safetensors
ttvidt
feature-extraction
video
video-representation-learning
self-supervised-learning
motion
temporal-modeling
dinov3
vision-transformer
custom_code
Eval Results (legacy)
Instructions to use KBlueLeaf/TTVidT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KBlueLeaf/TTVidT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("video-classification", model="KBlueLeaf/TTVidT", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("KBlueLeaf/TTVidT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download mup.py from KBlueLeaf/TTVidT: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/KBlueLeaf/TTVidT/resolve/main/mup.py
- Command line
-
hf download hf://KBlueLeaf/TTVidT/mup.py
-
curl -L -o mup.py https://huggingface.co/KBlueLeaf/TTVidT/resolve/main/mup.py
488 Bytes
| """muP initialisation (same as ``optimfactory.mup_init`` / ``mup_init_output``).""" | |
| import math | |
| import torch | |
| def mup_init(params, is_output: bool = False) -> None: | |
| for param in params: | |
| if param.ndim == 1: | |
| continue | |
| fan_in = math.prod(param.shape[1:]) | |
| std = (1 / fan_in) ** (1 if is_output else 0.5) | |
| torch.nn.init.normal_(param, mean=0.0, std=std) | |
| def mup_init_output(param: torch.Tensor) -> None: | |
| mup_init([param], is_output=True) | |