CADRE-2x32x32-multires
CADRE is a family of causal video autoencoders for interactive world models, from Rethinking Video Autoencoders for Interactive World Models. This repository holds CADRE-2x32x32-multires: the paper's CADRE-2x32x32 trained further, to 400k steps, the last 40k on five resolutions. It keeps each clip at its own size and reconstructs better than CADRE-2x32x32 at sizes other than 288 x 512, above all larger ones.
The autoencoder
- Cell: CADRE-2x32x32: one latent position per 2 frames x 32 x 32 pixels, 64 channels.
- Input: RGB video, uint8
(B, T, 3, H, W)withTa multiple of 2, at 20 fps.preprocesskeeps its size, padding H and W to a multiple of 32 (trained on 256 x 448 to 384 x 640), in [-1, 1]. - Latents:
(B, T / 2, 64, 9, 16)for a 288 x 512 clip, one latent per 32 x 32 pixels at any other size.latent_mean/latent_std(config.json: 0.0815287 / 7.38379) standardize them for a world model (normalize/unnormalize). - Decoder: samples the clip back from the latents by flow matching, causally in time, in
decode_stepssteps (1 or 2 in the paper); output(B, T, 3, H, W)without_hw=(H, W)in [-1, 1]. - Architecture: frozen DINOv3 ViT-B/16 encoder (features of layers 2, 4, 5, 6, 7, 8, 9, 10, 11 averaged), one trained strided convolution as the bottleneck (temporal stride 2, spatial stride 2), and a space-time transformer decoder (24 blocks of width 1024, the last 4 at the native frame rate) with a small convolutional refinement head. 476M trained parameters + 86M frozen DINOv3 parameters, fp32 EMA weights.
- Checkpoint: step 400k: pretraining to 150k, cooldown to 360k, multi-resolution finetune to 400k (
cadre_2x32x32_multires).
Usage
The loaders are part of the CADRE code release (a flat Python package; install it with uv sync and run
from its root). They read config.json + model.safetensors from a local directory or a Hub repo id (via
huggingface_hub.snapshot_download, which needs hf auth login while the repository is private).
import torch
from model_autoencoder import CADRE
with torch.device("cuda"):
autoencoder = CADRE.from_pretrained("kyutai/cadre-2x32x32-multires")
video = torch.randint(0, 256, (1, 16, 3, 384, 640), dtype=torch.uint8, device="cuda") # (B, T, 3, H, W), 20 fps
with torch.no_grad():
x = autoencoder.preprocess(video) # pads H and W to a multiple of 32
z = autoencoder.encode(x)
video_hat = autoencoder.decode(z, decode_steps=1, out_hw=x.shape[-2:]) # (1, 16, 3, 384, 640) in [-1, 1]
Training
The autoencoder trains on a mixture of 23 video sources, about 76k hours (web video, robot manipulation, driving, scene
walkthroughs, people, egocentric and drone video, games; the paper's appendix lists them): random 16-frame windows
resized to cover 288 x 512, center-cropped and resampled to 20 fps. Recipe: 150k steps at batch 96 on 16 H100s,
AdamW (betas 0.9 / 0.95, no weight decay), learning rate 2e-4 after a 2k-step warm-up, then constant, bf16, EMA
0.9999. The DINOv3 encoder stays frozen; the bottleneck and decoder train on flow matching with diffusion forcing, L1,
LPIPS, DINO latent consistency, a 3D Haar wavelet loss and progressive self-distillation (PSD), with gradient
balancing (configs/autoencoder/pretrain.yaml).
The released checkpoint then trains further (configs/autoencoder/cooldown_360k.yaml, then
configs/autoencoder/multires_ft.yaml). From 150k, the full training state continues at the same batch and learning
rate, which decays along a cosine to 2e-5 over steps 290k to 360k. Then 40k steps at a constant 2e-5 cycle through
five sizes, one per step: 256 x 448, 288 x 512, 320 x 544, 352 x 608 and 384 x 640. The model keeps each clip at its
own size (adaptive resolution), and the decoder's spatial RoPE box is rescaled by a random factor in [1/1.15, 1.15].
Licence
The weights are released under CC BY-NC 4.0
(non-commercial use only). They contain Meta's frozen DINOv3 ViT-B/16 weights, which remain DINO Materials under the DINOv3
License (LICENSE-DINOv3, included in this repository, as the DINOv3 License requires for redistribution): your use
of those parts is subject to its terms, including its trade-control restrictions and the prohibited uses it lists
(ITAR, military and warfare, nuclear, espionage, weapons). The CADRE code is MIT; it loads the DINOv3 model code from
torch.hub (facebookresearch/dinov3, commit 1e358a23), which is also under the DINOv3 License.
Citation
arXiv preprint coming soon. Until then:
@misc{ramananarahary2026cadre,
title = {Rethinking Video Autoencoders for Interactive World Models},
author = {Ramanana Rahary, Adrien and Bai, Yutong and Dufour, Nicolas and P{\'e}rez, Patrick and Picard, David},
year = {2026},
note = {arXiv preprint coming soon}
}
Authors
- Adrien Ramanana Rahary (Kyutai; École Nationale des Ponts et Chaussées)
- Yutong Bai (BAIR, UC Berkeley)
- Nicolas Dufour (Kyutai)
- Patrick Pérez (work done while at Kyutai)
- David Picard (École Nationale des Ponts et Chaussées)
- Downloads last month
- 28