MCPcopy Create free account

hub / github.com/MiniMax-AI/VTP / types & classes

Types & classes45 in github.com/MiniMax-AI/VTP

↓ 8 callersClassLayerScale
Layer scaling module for stable training.
vtp/models/layers/misc.py:7
↓ 7 callersClassDinoVisionTransformer
DINOv3 Vision Transformer for visual representation learning.
vtp/models/encoders/vision_transformer.py:58
↓ 5 callersClassDinoV3PixelDecoder
DINOv3-based Pixel Decoder for image reconstruction. This decoder uses a transformer architecture with RoPE position embeddings and PixelShuf
vtp/models/decoders/pixel_decoder.py:15
↓ 5 callersClassNetLinLayer
A single linear layer which does a 1x1 conv
vtp/utils/lpips.py:117
↓ 2 callersClassDINOHead
Unified DINO Head supporting both weight_norm and flexible forward modes. This head is used for self-supervised learning in DINO/iBOT style train
vtp/models/heads/dino_head.py:7
↓ 2 callersClassDinoVisionTransformerWithBottleneck
DINOv3 Vision Transformer with feature bottleneck for dimensionality reduction. This variant adds a linear projection layer to reduce the feature
vtp/models/encoders/vision_transformer_bottleneck.py:11
↓ 2 callersClassRMSNorm
Root Mean Square Layer Normalization.
vtp/models/layers/normalization.py:6
↓ 2 callersClassResidualAttentionBlock
Residual attention block for CLIP-style transformers.
vtp/models/layers/block.py:370
↓ 2 callersClassRopePositionEmbedding
RoPE positional embedding with no mixing of coordinates (axial) and no learnable weights. Supports two parametrizations of the rope parameters: e
vtp/models/layers/embeddings.py:86
↓ 2 callersClassSelfAttentionBlock
Self-attention block with FFN for DINOv3.
vtp/models/layers/block.py:137
↓ 2 callersClassTextTransformer
Text Transformer for CLIP-style text encoding.
vtp/models/encoders/text_transformer.py:231
↓ 2 callersClassVTP_Tokenizer
generation/tokenizer/vtp_tokenizer.py:14
↓ 1 callersClassAllClassifiers
Container for multiple linear classifiers.
tools/test_linear_probing_hf.py:173
↓ 1 callersClassAttention
Multi-head attention module for CLIP-style transformers.
vtp/models/layers/attention.py:177
↓ 1 callersClassCausalSelfAttention
Causal self-attention for autoregressive models.
vtp/models/layers/attention.py:129
↓ 1 callersClassCustomResidualAttentionBlock
Custom residual attention block with scaled cosine attention.
vtp/models/layers/block.py:430
↓ 1 callersClassFeatureExtractor
Wrapper that extracts intermediate layer features from VTPModel.
tools/test_linear_probing_hf.py:109
↓ 1 callersClassInceptionV3
tools/test_reconstruction_hf.py:127
↓ 1 callersClassInfiniteSampler
Wraps another sampler to yield an infinite stream of indices.
tools/test_linear_probing_hf.py:192
↓ 1 callersClassLPIPS
LPIPS metric wrapper.
tools/test_reconstruction_hf.py:65
↓ 1 callersClassLinearClassifier
Linear classifier on top of frozen features.
tools/test_linear_probing_hf.py:155
↓ 1 callersClassMlp
Standard MLP layer with optional dropout.
vtp/models/layers/ffn.py:21
↓ 1 callersClassPatchEmbed
2D image to patch embedding: (B,C,H,W) -> (B,N,D) Args: img_size: Image size. patch_size: Patch token size. in_chans
vtp/models/layers/embeddings.py:18
↓ 1 callersClassScalingLayer
vtp/utils/lpips.py:103
↓ 1 callersClassSimpleTokenizer
Simple tokenizer for CLIP models.
vtp/tokenizers/text_tokenizer.py:144
↓ 1 callersClassTransformer
Base Transformer for text encoding.
vtp/models/encoders/text_transformer.py:21
↓ 1 callersClassvgg16
vtp/utils/lpips.py:127
ClassAttentionalPooler
Attentional pooling for multi-head attention.
vtp/models/layers/attention.py:276
ClassCausalSelfAttentionBlock
Causal self-attention block for autoregressive models.
vtp/models/layers/block.py:311
ClassCosineScheduler
Cosine annealing scheduler with optional warmup and freeze periods. Supports linear warmup followed by cosine annealing decay with optional
vtp/models/utils/text_utils.py:160
ClassCustomTransformer
A custom transformer that can use different block types.
vtp/models/encoders/text_transformer.py:111
ClassLPIPS
Learned perceptual metric.
vtp/utils/lpips.py:61
ClassLayerNorm
Subclass torch's LayerNorm (with cast back to input dtype).
vtp/models/layers/normalization.py:25
ClassLayerNormFp32
Subclass torch's LayerNorm to handle fp16 (by casting to float32 and back).
vtp/models/layers/normalization.py:34
ClassLinearKMaskedBias
Linear layer with masked bias for K in QKV attention.
vtp/models/layers/attention.py:26
ClassListForwardMixin
Mixin for forward_list operation on list of tensors.
vtp/models/layers/ffn.py:9
ClassMultimodalTransformer
Multimodal Transformer with cross-attention for vision-language tasks.
vtp/models/encoders/text_transformer.py:455
ClassPatchDropout
Patch dropout for vision transformers. Reference: https://arxiv.org/abs/2212.00794
vtp/models/layers/misc.py:29
ClassQuickGELU
Quick GELU activation function. NOTE: This is slower than nn.GELU or nn.SiLU and uses more GPU memory.
vtp/models/layers/activation.py:5
ClassSelfAttention
Self-attention module with optional RoPE support.
vtp/models/layers/attention.py:41
ClassSwiGLUFFN
SwiGLU Feed-Forward Network. Reference: GLU Variants Improve Transformer (https://arxiv.org/abs/2002.05202)
vtp/models/layers/ffn.py:51
ClassVTP
Visual Tokenizer Pre-training Model. A unified framework for vision-language pre-training that supports: - Contrastive learning (CLIP-style)
vtp/models/vtp.py:88
ClassVTPConfig
Configuration class for VTP (Visual Tokenizer Pre-training) model. This configuration supports two main modes: - CLIP-style contrastive learn
vtp/models/vtp_hf/configuration_vtp.py:7
ClassVTPModel
VTP (Visual Tokenizer Pre-training) Model. A unified framework supporting multiple vision tasks through composable methods: Basic feature ex
vtp/models/vtp_hf/modeling_vtp.py:51
ClassVTPPreTrainedModel
Base class for VTP models.
vtp/models/vtp_hf/modeling_vtp.py:31