executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
vit-pytorchRoutes vit-pytorch Vision Transformer model construction, variable-resolution and video inputs, pretraining wrappers, attention introspection, and package troubleshooting.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this repo skill when a task names vit-pytorch, vit_pytorch, lucidrains' Vision Transformer package, or a model/workflow implemented by that package: ViT, SimpleViT, NaViT, ViViT, CCT, CrossViT, MAE, Dino, Recorder, Extractor, and related image/video transformer variants.
Install the public package in the user's Python environment:
pip install vit-pytorch
Then run a minimal import/forward check:
import torch
from vit_pytorch import ViT
model = ViT(image_size=32, patch_size=8, num_classes=7,
dim=32, depth=1, heads=2, dim_head=16, mlp_dim=64)
logits = model(torch.randn(2, 3, 32, 32))
assert logits.shape == (2, 7)
For a broader package health check, run the bundled helper after installing the package:
python scripts/check_vit_pytorch_install.py --run-smoke
The package exposes Python modules only; no console CLI entry points were found in this snapshot.
ViT / SimpleViT, CCT, CrossViT, PiT, LeViT, CvT, MaxViT, XCiT, JetViT, ViT-5, and image-only variants such as patch dropout or patch merger.NaViT, nested tensor variants, vit_3d, simple_vit_3d, cct_3d, ViViT, 1D models, N-D models, and video wrappers.DistillWrapper, MAE, SimMIM, MPP, MP3, DINO, EsViT, Learnable Memory ViT, LeJEPA, VAT, VAAT, WWT, and decorrelation auxiliary loss.Recorder, Extractor, efficient.ViT, parallel_vit, and simple_flash_attn_vit.(batch, channels, height, width), NaViT image lists (channels, height, width), video (batch, channels, frames, height, width), 1D (batch, channels, seq_len), or N-D (batch, channels, *input_shape).dim=32, depth=1, and CPU-safe tensors to validate shape and wrapper wiring.torch, torchvision, and einops are base dependencies; torchaudio is needed for VAAT, while Accelerate, W&B, Kaggle data, external transformer packages, or checkpoints belong only to explicit full-training or research-idea requests.