V-JEPA 2

V-JEPA 2 produces video embeddings and supports training an attentive classification probe.

Tasks
embeddings, classification
Sizes
l256, h256, g256, g384 at 256 to 384 px
Install
pip install libreyolo
Support tier
Supported, since v1.6.0. Supporting trainables: kept green in CI, features land opportunistically.
Licenses
Code MIT, weights MIT; Apache-2.0 for giant encoder artifacts. Commercial use

Install

bash
pip install "libreyolo"

Predict

Python
from libreyolo import LibreYOLO, SAMPLE_IMAGE model = LibreYOLO("LibreVJEPA2l256-embed.pt", device="cpu")result = model(SAMPLE_IMAGE)print(result.embeddings)tokens = model.embed_tokens(SAMPLE_IMAGE)print(tokens.shape)

A still image is promoted to a clip. embed_tokens() returns (B, T, H, W, D) tokens; the public embedding normalizes their mean. Exported clip graphs require direct five-dimensional runtime input.

Train

Only the attentive probe and linear classifier train; the encoder stays frozen. Use the classification task and a video-manifest dataset. Defaults are 10 epochs, batch 2, learning rate 0.001 and workers 0. Full encoder fine-tuning and pretraining are not supported.

Dataset setup describes the required training data.

Python
from libreyolo import LibreYOLO model = LibreYOLO("LibreVJEPA2l256-cls-ssv2.pt", device="cpu")# Replace with your video dataset YAML (train/val manifests of '<video-path> <class-id>' lines).model.train(data="path/to/your/video_dataset.yaml", epochs=1, device="cpu", workers=0)

Validate

Python
from libreyolo import LibreYOLO, SAMPLE_IMAGE model = LibreYOLO("LibreVJEPA2l256-cls-ssv2.pt", device="cpu")# Replace with your video dataset YAML; val() reads its val manifest of '<video-path> <class-id>' lines.metrics = model.val(data="path/to/your/video_dataset.yaml", workers=0)print(metrics)

Use the dataset format for this task. Validation explains the dataset requirements and returned metrics.

Export

TaskONNXTorchScriptExecuTorchTensorRTOpenVINOPaddleMNNRKNNncnnTFLiteCoreMLCore AI
EmbeddingsEmbeddings to ONNX: supportedEmbeddings to TorchScript: supportedEmbeddings to ExecuTorch: supportedEmbeddings to TensorRT: supportedEmbeddings to OpenVINO: supportedEmbeddings to Paddle: not supportedEmbeddings to MNN: not supportedEmbeddings to RKNN: not supportedEmbeddings to ncnn: not supportedEmbeddings to TFLite: not supportedEmbeddings to CoreML: not supportedEmbeddings to Core AI: not supported
ClassificationClassification to ONNX: supportedClassification to TorchScript: supportedClassification to ExecuTorch: supportedClassification to TensorRT: supportedClassification to OpenVINO: supportedClassification to Paddle: not supportedClassification to MNN: not supportedClassification to RKNN: not supportedClassification to ncnn: not supportedClassification to TFLite: not supportedClassification to CoreML: not supportedClassification to Core AI: not supported
Python
from libreyolo import LibreYOLO, SAMPLE_IMAGE model = LibreYOLO("LibreVJEPA2l256-embed.pt", device="cpu")model.export(format="onnx")

Export setup lists format dependencies and loading exported artifacts.

Checkpoints

Licensing

Check the license on the Hugging Face repository of the specific weights you download. Every checkpoint in the LibreYOLO org carries one, and they are not always the same across a family. That repository is the authoritative source; the summary below describes what applied when this page was last verified.

This is a description of the licenses involved, not legal advice. If the answer matters commercially, read the licenses yourself and take your own counsel.

Original work
V-JEPA 2, Meta AI
Upstream license
MIT; Apache-2.0 for giant encoder artifacts
LibreYOLO code
MIT
Weights
MIT; Apache-2.0 for giant encoder artifacts, republished at huggingface.co/LibreYOLO
Interpretation
Licenses differ by artifact: the two giant encoder artifacts are Apache-2.0; the other mirrored encoders and classification probes are MIT.

Verified against LibreYOLO v1.6.0. Support tables, checkpoints and benchmark numbers on this page are generated from the released library and the published weights, not written by hand.

V-JEPA 2 architecture

Select a variant or family overview, then select a block for details. Open the full diagram to zoom or download SVG and PNG.