/ Модель

Характеристики

Лицензия
MIT
Архитектура
vjepa2_1 · dense
Библиотека
mlx
Опубликована
19 окт 2026

vjepa2.1-vit-base-384

ЭмбеддингиТекст → embedding3 профессии

Конвертированный видеокодировщик V-JEPA 2.1 извлекает признаки из кадров видео для дальнейшего анализа.

60скачиваний за 30 дней0лайковвеса обновлены19 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Это неофициальная конверсия видеокодировщика V-JEPA 2.1 ViT-B/16 разрешения 384 пикселя, разработанного Meta FAIR, в формат safetensors для Swift и MLX. Веса соответствуют энкодеру из исходного чекпойнта Meta; модель основана на архитектуре ViT-B и содержит около 86,8 млн параметров. Чекпойнт энкодера дистиллирован из ViT-G. В репозитории также есть предиктор скрытых токенов, который выдаёт признаки размерности 1664 в пространстве учителя ViT-G.

Модель принимает кадры видео и извлекает признаки для встраивания и последующего анализа видео; её можно использовать в приложениях на Apple Silicon через MLX или с исходным кодом PyTorch. README приводит примеры обработки видеоклипов из 16 и 4 кадров, а также одиночного изображения. Конверсия проверена на совпадение с исходной реализацией Meta, включая обработку кадров; лицензия репозитория — MIT.

Сценарии применения

  • извлечение признаков из видеоклипов
  • создание векторных представлений видео
  • подготовка видео к последующему машинному анализу
  • предсказание признаков скрытых участков видео
  • обработка кадров видео на Apple Silicon через MLX

Ограничения

Это энкодер признаков, а не готовая модель для генерации текста или ответов на вопросы о видео; для предсказания скрытых токенов требуется также загруженный предиктор. Репозиторий предназначен для Swift/MLX и требует собственного кода или приложения для инференса.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

V-JEPA 2.1 ViT-B/16 (384px) encoder, safetensors for MLX

The V-JEPA 2.1 ViT-B/16 video encoder from Meta FAIR (facebookresearch/vjepa2), repackaged as plain safetensors for the Swift / MLX port mlx-swift-vjepa2. Distilled from ViT-G.

Unofficial. This is a format conversion of Meta's released checkpoint, not a Meta release. The tensors are exactly the encoder that torch.hub.load('facebookresearch/vjepa2', 'vjepa2_1_vit_base_384') loads.

Source checkpointvjepa2_1_vitb_dist_vitG_384.pt → ema_encoder
Upstream codefacebookresearch/vjepa2 @ 204698b (app/vjepa_2_1/models)
Parameters86,833,152
Architecturewidth 768, depth 12, 12 heads (64-dim), MLP 3072, patch 16, tubelet 2, 3-axis RoPE
Input384×384 crops, ImageNet normalization; 1 frame → image path, 2+ frames → video path
Output[N, 768] patch features (N = T/2 · 24 · 24), plus 4-level hierarchical features [N, 3072]

Files

FiledtypeSizeSHA-256
model.safetensorsfloat32 (bit-identical to the source checkpoint)347 MBe89509a1d64dbd117b17d5c32a1d0b1892d3698d75249e4a001cb490ca7e4017
model-fp16.safetensorsfloat16 (round-to-nearest from fp32)174 MB60de5fc3e6bdcb026b00c7e5d4c0f485f634dc42bb2397296ec45341a62de7e8
predictor.safetensorsfloat32 predictor (bit-identical to the checkpoint's predictor)92 MB7260d75185c1ea7da0980deac01b9f8068f144c42a3378ec71fe842fb2469655
predictor-fp16.safetensorsfloat16 predictor46 MB44dd38b28b2154c895b22befbf0f448c2101e033df1e9db661a730602ae323f2
config.jsonarchitecture, preprocessing, provenance

The predictor (22,874,752 parameters) is the one Meta released in the same checkpoint. It predicts the features of hidden tokens from the encoder's features of the visible ones; it outputs 1664-wide features (the ViT-G teacher's feature space, which ViT-B was distilled from).

Keys and tensor layouts follow upstream's state dicts after _clean_backbone_key. The Conv3d patch embeddings stay in PyTorch layout (O, I, kT, kH, kW); the Swift loader transposes them at load time. That means you can also load the files into upstream's PyTorch VisionTransformer / VisionTransformerPredictor with load_state_dict(..., strict=True).

Usage

Swift (mlx-swift-vjepa2)

import VJEPA2

// Downloads model-fp16.safetensors (or model.safetensors for .float32) from this repo and caches it.
let session = try await VJEPA2Session.load(pretrained: .base, dtype: .float16)
let frames = try await VJEPA2VideoReader.frames(url: clipURL, count: 16, stride: 2)
let encoding = session.encode(frames)        // encoding.features: N × 768 floats

Predict hidden patches (the JEPA path) by also loading the predictor:

let session = try await VJEPA2Session.load(pretrained: .base, dtype: .float16, predictor: true)
let mask = VJEPA2TokenMask.block(in: session.tokenGrid(frameCount: frames.count), rows: 6 ..< 18, columns: 6 ..< 18)
let prediction = try session.predict(frames, mask: mask)   // mask.target.count × 1664 floats

CLI: vjepa2-cli embed --model base --video clip.mp4, or vjepa2-cli predict --model base --video clip.mp4. Or pick the model in the V-JEPA 2 Viewer app.

PyTorch (upstream code)

import torch
from safetensors.torch import load_file
from app.vjepa_2_1.models import vision_transformer as vit  # from facebookresearch/vjepa2

encoder = vit.vit_base(
    img_size=(384, 384), patch_size=16, num_frames=64, tubelet_size=2, use_sdpa=True, use_SiLU=False,
    wide_SiLU=True, uniform_power=False, use_rope=True, img_temporal_dim_size=1, interpolate_rope=True)
encoder.load_state_dict(load_file("model.safetensors"), strict=True)

Parity

The weights are checked against upstream's own PyTorch code. The upstream reference runs in fp32 on CPU, on a real 16-frame clip, a 4-frame clip, and a single image. Values are cosine similarity:

Exact path (MLX CPU stream), every saved blockGPU fp32 per stage (min)End-to-end fp32: video / hierarchical / imageEnd-to-end fp16
1.0000000.9998880.999920 / 0.999944 / 0.9999710.999933

The predictor is checked the same way, on masks from upstream's own mask generator: every predictor block matches at cosine ≥ 0.9999997 on the exact path, and pixels → masked encoder → predictor matches at ≥ 0.99998 (fp32) / ≥ 0.99997 (fp16) on the GPU.

Preprocessing (an OpenCV-exact bilinear resize, center crop, and normalization) reproduces upstream's tensor bit for bit. The fixture generator and the test suite ship with mlx-swift-vjepa2.

License

The weights and code are released by Meta under the MIT License. That license is reproduced verbatim in LICENSE, with the copyright notice "Copyright (c) Meta Platforms, Inc. and affiliates.". This repackaging adds no restrictions. If you redistribute these files, keep the license and copyright notice with them.

Citation

@article{murlabadia2026vjepa2_1,
  title={V-JEPA 2.1: Unlocking Dense Features in Video Self-Supervised Learning},
  author={Mur-Labadia, Lorenzo and Muckley, Matthew and Bar, Amir and Assran, Mahmoud and
Sinha, Koustuv and Rabbat, Michael and LeCun, Yann and Ballas, Nicolas and Bardes, Adrien},
  journal={arXiv preprint arXiv:2603.14482},
  year={2026}
}

@article{assran2025vjepa2,
  title={V-JEPA~2: Self-Supervised Video Models Enable Understanding, Prediction and Planning},
  author={Assran, Mahmoud and Bardes, Adrien and Fan, David and Garrido, Quentin and Howes, Russell and
Komeili, Mojtaba and Muckley, Matthew and Rizvi, Ammar and Roberts, Claire and Sinha, Koustuv and Zholus, Artem and
Arnaud, Sergio and Gejji, Abha and Martin, Ada and Robert Hogan, Francois and Dugas, Daniel and
Bojanowski, Piotr and Khalidov, Vasil and Labatut, Patrick and Massa, Francisco and Szafraniec, Marc and
Krishnakumar, Kapil and Li, Yong and Ma, Xiaodong and Chandar, Sarath and Meier, Franziska and LeCun, Yann and
Rabbat, Michael and Ballas, Nicolas},
  journal={arXiv preprint arXiv:2506.09985},
  year={2025}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · mlx

Нельзя запустить

MLX-модели работают только на Apple Silicon.

Ревизия весов
ee3ee8b

0 моделей