↑↓ move Enter open ⌘K find from any page 256 of 256 tabs
Loading the recording…

What Cosmos-Predict1 is

Cosmos is NVIDIA's family of world foundation models: large video models pretrained to predict how scenes unfold, meant to be fine-tuned for robots and vehicles. Its autoregressive branch treats video the way a language model treats text. A tokenizer turns the video into discrete tokens, and a transformer predicts them one at a time, each from all the tokens before it.

The model on this page is the base Cosmos-Predict1-4B, with no text conditioning. Given the first 9 frames of a dashcam drive on a highway at dusk (NVIDIA's sample video, 640 × 1024 pixels), it continues the video to 33 frames.

Frames → tokens

The discrete tokenizer first applies a 3-D Haar wavelet, which folds every 4 × 4 × 4 block of pixels into channels. A causal encoder of convolutions and attention, which never looks at later frames, then compresses the video 8× in time and 16× in each spatial direction. Frame 0 gets a latent frame of its own, so that a single image can be a prompt, and each later latent frame stands for 8 frames: the 33 frames become 5 latent frames of 40 × 64 positions. The Frames → tokens panel shows real frames beside their latent frames; decoded back from the tokens, the frames come within a PSNR of 32.8 to 34.8 dB of the originals.

One token = 6 rounded numbers

Each latent position becomes one token by finite scalar quantisation (FSQ). A 1 × 1 convolution gives the position 6 numbers; each is squashed by tanh into a fixed range and rounded to one of levels, with , and the 6 digits are read as one number:

There is no codebook to learn, so none of it can go unused; Mentzer et al. found this simple rounding competitive with a learned VQ codebook while using nearly all of its codes. The One token panel shows the 6 numbers before and after rounding and the id they make. A different value in any one digit is a different id, which matters below.

A transformer over video tokens

The transformer has 16 layers of width 4,096 with SwiGLU MLPs of width 14,336, and a vocabulary of 64,000 ids. Its attention uses 32 query heads that share 8 key–value heads (grouped-query attention), normalises queries and keys, and places tokens with 3-D RoPE: of each head's 128 dimensions, 44 are rotated by the latent frame, 42 by the row and 42 by the column. The 5 latent frames of 2,560 tokens fill its full context of 12,800 positions. It models the video as a product of next-token probabilities, row by row and frame by frame,

and generates by sampling. The 5,120 prompt tokens (2 latent frames) are read in one pass into the key–value cache, then 7,680 tokens are sampled one at a time. The The sequence panel shows where the selected token sits and which tokens exist when it is sampled.

Sampling, and the real video

Each token is drawn by nucleus (top-p) sampling at temperature 1: keep the most likely ids until their probabilities add up to 0.8, renormalise and sample among them. The Next token panel shows the distribution, the nucleus and the sampled id. The continuation is not the real video token for token: in the three generated latent frames only 1.2 %, 0.4 % and 0.6 % of the ids equal the real video's, partly because a token that differs in any digit is a different id. In pixels the first generated frame is at 33.2 dB from the real one, and the last at 26.7 dB.

Reading the real video in one causal pass scores every real token given the real ones before it (teacher forcing). The model's top choice is the real token only 4.5 % of the time, but the real token lies inside the 0.8 nucleus 72 % of the time: the next token of a video is genuinely uncertain, and the model spreads its probability over many plausible ones. The Surprise of the real video strip shows per latent frame: 11.8 nats per token in the first, where little comes before, and 5.0 to 6.0 in the others.

Where it looks

The Where it looks panel probes four tokens, on the white car, the street lamp, the overhead sign and the lane line, and shows the attention of each layer, averaged over the 32 heads, over every earlier latent frame. It reports how much of the weight falls on the token just before and how much on the video's very first token. A first token that every query can see often collects weight that has nowhere better to go, an attention sink of the kind Xiao et al. found in language models.

Where it came from

VideoGPT (2021) generated video by modelling VQ-VAE tokens with a transformer, the recipe IRIS, the previous tab, used for one Atari game. The Cosmos platform (2025) scaled it to driving, robotics and general video and released autoregressive models such as this one beside diffusion models of the same family. Its diffusion successor, Cosmos-Predict2, is the last tab: it denoises a whole clip at once instead of sampling one token at a time.

Papers

  1. Cosmos World Foundation Model Platform for Physical AI NVIDIA · arXiv 2025 The Cosmos tokenizers and world models, including the autoregressive Cosmos-Predict1-4B this tab records.
  2. Finite Scalar Quantization: VQ-VAE Made Simple Fabian Mentzer, David Minnen, Eirikur Agustsson, Michael Tschannen · ICLR 2024 FSQ: rounding a few bounded numbers instead of looking up a learned codebook.
  3. VideoGPT: Video Generation using VQ-VAE and Transformers Wilson Yan, Yunzhi Zhang, Pieter Abbeel, Aravind Srinivas · arXiv 2021 Video as discrete tokens predicted by a transformer, the approach Cosmos AR scales.
  4. The Curious Case of Neural Text Degeneration Ari Holtzman, Jan Buys, Li Du, Maxwell Forbes, Yejin Choi · ICLR 2020 Nucleus (top-p) sampling, which this tab samples with at p = 0.8.
  5. GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints Joshua Ainslie et al. · EMNLP 2023 Grouped-query attention: several query heads sharing one key–value head.
  6. RoFormer: Enhanced Transformer with Rotary Position Embedding Jianlin Su, Yu Lu, Shengfeng Pan, Ahmed Murtadha, Bo Wen, Yunfeng Liu · arXiv 2021 Rotary position embeddings, split here between time, rows and columns.
  7. Efficient Streaming Language Models with Attention Sinks Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, Mike Lewis · ICLR 2024 Why transformers put large attention weight on the first token.

See also