SAVRN
Search Contact SAVRN

Open-weight model · Video classification

xclip-base-patch32-16-frames

by Microsoft microsoft/xclip-base-patch32-16-frames

X-CLIP model (base-sized, patch resolution of 32) trained fully-supervised on Kinetics-400. It was introduced in the paper Expanding Language-Image Pretrained Models for General Video Recognition by Ni et al. and first released in this repository.

Parameters197M
Context77
Weights1.6 GB
Licensemit
AccessOpen weights
Monthly Downloads23.6k

Runs On

What it takes to serve xclip-base-patch32-16-frames (197M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.4 GB 0.5 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.2 GB 0.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

By Microsoft, published under mit, revision 663a1e6d4b36.

X-CLIP model (base-sized, patch resolution of 32) trained fully-supervised on Kinetics-400. It was introduced in the paper Expanding Language-Image Pretrained Models for General Video Recognition by Ni et al. and first released in this repository. This model was trained using 16 frames per video, at a resolution of 224x224. Disclaimer: The team releasing X-CLIP did not write a model card for this model so this model card has been written by the Hugging Face team. X-CLIP is a minimal extension of CLIP for general video-language understanding. The model is trained in a contrastive way on (video, text) pairs. This allows the model to be used for tasks like zero-shot, few-shot or fully…

Read Microsoft's full model card

X-CLIP (base-sized model)

X-CLIP model (base-sized, patch resolution of 32) trained fully-supervised on Kinetics-400. It was introduced in the paper Expanding Language-Image Pretrained Models for General Video Recognition by Ni et al. and first released in this repository.

This model was trained using 16 frames per video, at a resolution of 224x224.

Disclaimer: The team releasing X-CLIP did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description

X-CLIP is a minimal extension of CLIP for general video-language understanding. The model is trained in a contrastive way on (video, text) pairs.

This allows the model to be used for tasks like zero-shot, few-shot or fully supervised video classification and video-text retrieval.

Intended uses & limitations

You can use the raw model for determining how well text goes with a given video. See the model hub to look for fine-tuned versions on a task that interests you.

How to use

For code examples, we refer to the documentation.

Training data

This model was trained on Kinetics-400.

Preprocessing

The exact details of preprocessing during training can be found here.

The exact details of preprocessing during validation can be found here.

During validation, one resizes the shorter edge of each frame, after which center cropping is performed to a fixed-size resolution (like 224x224). Next, frames are normalized across the RGB channels with the ImageNet mean and standard deviation.

Evaluation results

This model achieves a top-1 accuracy of 81.1% and a top-5 accuracy of 95.5%.

Configuration

Architecture
XCLIPModel
Context length (tokens)
77
Layers
12
Hidden size
512
Feed-forward size
2,048
Attention heads
8
Vocabulary size
49,408
Stored precision
float32
Model type
xclip

Identity and Version

Repository
microsoft/xclip-base-patch32-16-frames
Publisher
Microsoft
Task
Video classification
Modality
Video
Library
transformers
Parameters
197M parameters
Languages
en
Revision
663a1e6d4b3600f9604b7b1c140bc1cf4a97d2a7
First published
2022-09-07
Last updated
2024-10-28

Files and Weights

11 files, 1.6 GB in total. The weights are 2 files totalling 1.6 GB in bin, safetensors.

Weights2 files · 1.6 GB
Configuration3 files · 9.7 KB
Tokenizer4 files · 3.8 MB
Documentation1 file · 2.7 KB
Repository1 file · 1.4 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights786.4 MB f67aa8bc3f99
pytorch_model.binWeights786.6 MB 02de90afd307
config.jsonConfiguration8.9 KB
preprocessor_config.jsonConfiguration310 B
special_tokens_map.jsonConfiguration472 B
README.mdDocumentation2.7 KB
.gitattributesRepository1.4 KB
merges.txtTokenizer524.6 KB
tokenizer.jsonTokenizer2.2 MB
tokenizer_config.jsonTokenizer927 B
vocab.jsonTokenizer1.1 MB

License and Download

License
mit
Access
Open weights, no gate
Download size
1.6 GB
Download from Microsoft

Released by Microsoft through its official repository on Hugging Face. Read the license.

Built From

Evaluations

Each result is shown as reported, with the conditions its reporter stated. None is a SAVRN measurement. A comparison lines two results up only when their configuration, unit and setup are all stated and identical.

BenchmarkConditionsResultReported byRevisionDate
Kinetics 400 Task video-classificationMetric top-1 accuracyComparison conditions not established 81.1 microsoft
Publisher reported
Evaluated revision not stated
Kinetics 400 Task video-classificationMetric top-5 accuracyComparison conditions not established 95.5 microsoft
Publisher reported
Evaluated revision not stated

Memory Requirements

PrecisionWeights in memory
As published1.6 GB
16-bit0.4 GB
8-bit0.2 GB
4-bit0.1 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About xclip-base-patch32-16-frames

How much GPU memory does xclip-base-patch32-16-frames need?

About 0.5 GB at 16-bit and 0.1 GB at 4-bit: the weights (197M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run xclip-base-patch32-16-frames on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use xclip-base-patch32-16-frames commercially?

Yes. xclip-base-patch32-16-frames is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

What is xclip-base-patch32-16-frames's context length?

77 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Video classification

xclip-base-patch32

Microsoft

X-CLIP model (base-sized, patch resolution of 32) trained fully-supervised on Kinetics-400. It was introduced in the paper Expanding Language-Image Pretrained Models for General Video Recognition by Ni et al. and first released in this repository. This model was trained using 8 frames per video, at a resolution of 224x224. Disclaimer: The team releasing X-CLIP did not write a model card for this model so this model card has been written by the Hugging Face team. X-CLIP is a minimal extension of CLIP for general video-language understanding. The model is trained in a contrastive way on (video, text) pairs. This allows the model to be used for tasks like zero-shot, few-shot or fully…

Open weights mit 197M parameters 77 tokens transformers

Model · Video classification

xclip-base-patch16-zero-shot

Microsoft

X-CLIP model (base-sized, patch resolution of 16) trained on Kinetics-400. It was introduced in the paper Expanding Language-Image Pretrained Models for General Video Recognition by Ni et al. and first released in this repository. This model was trained using 32 frames per video, at a resolution of 224x224. Disclaimer: The team releasing X-CLIP did not write a model card for this model so this model card has been written by the Hugging Face team. X-CLIP is a minimal extension of CLIP for general video-language understanding. The model is trained in a contrastive way on (video, text) pairs. This allows the model to be used for tasks like zero-shot, few-shot or fully supervised video…

Open weights mit 195M parameters 77 tokens transformers

Model · Video classification

xclip-base-patch16

Microsoft

X-CLIP model (base-sized, patch resolution of 16) trained fully-supervised on Kinetics-400. It was introduced in the paper Expanding Language-Image Pretrained Models for General Video Recognition by Ni et al. and first released in this repository. This model was trained using 8 frames per video, at a resolution of 224x224. Disclaimer: The team releasing X-CLIP did not write a model card for this model so this model card has been written by the Hugging Face team. X-CLIP is a minimal extension of CLIP for general video-language understanding. The model is trained in a contrastive way on (video, text) pairs. This allows the model to be used for tasks like zero-shot, few-shot or fully…

Open weights mit 195M parameters 77 tokens transformers

Model · Video classification

vjepa2.1-vit-base-384

Antonio Apicella

A HuggingFace-format conversion of Meta AI's V-JEPA 2.1 ViT-B/16 video encoder and predictor, operating at 384x384 resolution. The weights are Meta's, copied without modification. This repository provides the transformers-compatible packaging plus a documented numerical validation against the original implementation. An equivalent community port already exists (Dev-Jahn/vjepa2.1-vitb-fpc64-384). This repository adds an independently reproduced conversion together with the validation results below. The only structural change is that the fused QKV projection of each attention block is split into separate query / key / value matrices, following the convention used by transformers. This is a…

Open weights mit 110M parameters transformers

VideoMAE model pre-trained on Kinetics-400 for 1600 epochs in a self-supervised way. It was introduced in the paper VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Training by Tong et al. and first released in this repository. Disclaimer: The team releasing VideoMAE did not write a model card for this model so this model card has been written by the Hugging Face team. VideoMAE is an extension of Masked Autoencoders (MAE) to video. The architecture of the model is very similar to that of a standard Vision Transformer (ViT), with a decoder on top for predicting pixel values for masked patches. Videos are presented to the model as a sequence of…

Open weights cc-by-nc-4.0 94M parameters transformers

VideoMAE model pre-trained on Something-Something-v2 for 2400 epochs in a self-supervised way. It was introduced in the paper VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Training by Tong et al. and first released in this repository. Disclaimer: The team releasing VideoMAE did not write a model card for this model so this model card has been written by the Hugging Face team. VideoMAE is an extension of Masked Autoencoders (MAE) to video. The architecture of the model is very similar to that of a standard Vision Transformer (ViT), with a decoder on top for predicting pixel values for masked patches. Videos are presented to the model as a sequence of…

Open weights cc-by-nc-4.0 94M parameters transformers