RoboJEPA-Decoder-0.6B, step 219400 (epoch 1097)
Browse files- .gitattributes +2 -0
- README.md +45 -5
- scheme_dit_block.png +3 -0
- scheme_dit_block.svg +0 -0
- scheme_pipeline.png +3 -0
- scheme_pipeline.svg +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
scheme_dit_block.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
scheme_pipeline.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -20,8 +20,9 @@ predicts future V-JEPA features, and this head renders them as a 33-frame 240x32
|
|
| 20 |
It decodes **encoder** features (`train_heads_on_predictor: false`), so it works just as well as a
|
| 21 |
standalone "V-JEPA features -> video" inverter, independent of any predictor.
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
|
|
|
| 25 |
|
| 26 |
## Architecture
|
| 27 |
|
|
@@ -30,13 +31,15 @@ standalone "V-JEPA features -> video" inverter, independent of any predictor.
|
|
| 30 |
| kind | DiT (transformer diffusion), x0-prediction |
|
| 31 |
| conditioning | V-JEPA 2.1 ViT-G/384 features, 1664-dim, grid 15x20, **9 frames** (see [Usage](#usage)) |
|
| 32 |
| latent space | NVIDIA Cosmos-0.1-Tokenizer-CV4x8x8, 16 channels, 9 x 30x40 |
|
| 33 |
-
| output | 33 frames at 240x320 (8x spatial, 4x temporal detokenization) |
|
| 34 |
| depth / width | 32 blocks, 1280-dim, 20 heads, 10 KV heads (GQA), MLP ratio 4 |
|
| 35 |
| position encoding | RoPE; local temporal attention window of 4 frames |
|
| 36 |
| diffusion | `cosine_simple_diffusion`, zero-terminal-SNR, 1000 train steps, 128 at sampling |
|
| 37 |
| condition dropout | 0.1 (classifier-free guidance capable) |
|
| 38 |
| precision on disk | fp32 |
|
| 39 |
|
|
|
|
|
|
|
| 40 |
### Parameter count
|
| 41 |
|
| 42 |
| component | params |
|
|
@@ -124,6 +127,43 @@ The snippet above was run end to end on an A100-80GB before publishing: 494/494
|
|
| 124 |
random features returned a `uint8` tensor of shape `(1, 33, 1, 240, 320, 3)`. Sampling 1 clip at 8
|
| 125 |
denoising steps peaked at 6.0 GB of GPU memory.
|
| 126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
## Training
|
| 128 |
|
| 129 |
Only this head was trained. The V-JEPA 2.1 ViT-G/384 encoder is frozen, and the world model's
|
|
@@ -131,13 +171,13 @@ predictor was *not* trained in this run, so the decoder never saw predicted feat
|
|
| 131 |
|
| 132 |
| | |
|
| 133 |
|---|---|
|
| 134 |
-
| steps | 219 400 (epoch 1097
|
| 135 |
| hardware | 1 node x 4 A100-80GB, ~3.02 s/iter, 56 GB peak per GPU |
|
| 136 |
| global batch | 8 clips/step (2 per GPU, no grad accumulation), 8 feature frames per clip |
|
| 137 |
| optimizer | AdamW, constant lr 1e-4, betas (0.9, 0.95), weight decay 0, grad clip 1.0 |
|
| 138 |
| precision | bf16 mixed precision, `torch.compile`d |
|
| 139 |
| objective | x0-prediction diffusion loss in Cosmos latent space |
|
| 140 |
-
|
|
| 141 |
|
| 142 |
### Data
|
| 143 |
|
|
|
|
| 20 |
It decodes **encoder** features (`train_heads_on_predictor: false`), so it works just as well as a
|
| 21 |
standalone "V-JEPA features -> video" inverter, independent of any predictor.
|
| 22 |
|
| 23 |
+
Checkpoint: **219 400 optimization steps** (epoch 1097).
|
| 24 |
+
|
| 25 |
+

|
| 26 |
|
| 27 |
## Architecture
|
| 28 |
|
|
|
|
| 31 |
| kind | DiT (transformer diffusion), x0-prediction |
|
| 32 |
| conditioning | V-JEPA 2.1 ViT-G/384 features, 1664-dim, grid 15x20, **9 frames** (see [Usage](#usage)) |
|
| 33 |
| latent space | NVIDIA Cosmos-0.1-Tokenizer-CV4x8x8, 16 channels, 9 x 30x40 |
|
| 34 |
+
| output | 33 frames at 240x320 (8x spatial, 4x temporal detokenization); any 16h x 16w at test time, see [Resolution](#resolution-at-test-time) |
|
| 35 |
| depth / width | 32 blocks, 1280-dim, 20 heads, 10 KV heads (GQA), MLP ratio 4 |
|
| 36 |
| position encoding | RoPE; local temporal attention window of 4 frames |
|
| 37 |
| diffusion | `cosine_simple_diffusion`, zero-terminal-SNR, 1000 train steps, 128 at sampling |
|
| 38 |
| condition dropout | 0.1 (classifier-free guidance capable) |
|
| 39 |
| precision on disk | fp32 |
|
| 40 |
|
| 41 |
+

|
| 42 |
+
|
| 43 |
### Parameter count
|
| 44 |
|
| 45 |
| component | params |
|
|
|
|
| 127 |
random features returned a `uint8` tensor of shape `(1, 33, 1, 240, 320, 3)`. Sampling 1 clip at 8
|
| 128 |
denoising steps peaked at 6.0 GB of GPU memory.
|
| 129 |
|
| 130 |
+
## Resolution at test time
|
| 131 |
+
|
| 132 |
+
Nothing in the decoder is tied to the 240x320 it was trained at. The conditioning features are
|
| 133 |
+
nearest-upsampled onto the latent grid and positions come from RoPE, so a **h x w feature grid
|
| 134 |
+
renders 16h x 16w video** — feed it V-JEPA features from a larger frame and you get a larger clip
|
| 135 |
+
out, from the same weights.
|
| 136 |
+
|
| 137 |
+
The one catch is bookkeeping: the grid is read from the module at construction time, so retarget it
|
| 138 |
+
before decoding (and use a fresh process per resolution — the attention and RoPE caches keep the
|
| 139 |
+
previous grid):
|
| 140 |
+
|
| 141 |
+
```python
|
| 142 |
+
m = head.ema_model
|
| 143 |
+
m.condition_h, m.condition_w = h, w # your V-JEPA feature grid
|
| 144 |
+
m.grid_height, m.grid_width = 2 * h, 2 * w # Cosmos latent grid
|
| 145 |
+
m.img_size = [2 * h, 2 * w]
|
| 146 |
+
m.attn_mask_cache.clear()
|
| 147 |
+
for mod in m.modules(): # each attention module keeps its own copy
|
| 148 |
+
if mod is not m and hasattr(mod, "grid_height"):
|
| 149 |
+
mod.grid_height, mod.grid_width = 2 * h, 2 * w
|
| 150 |
+
```
|
| 151 |
+
|
| 152 |
+
Measured on an A100-80GB, 33-frame clips, 4 denoising steps:
|
| 153 |
+
|
| 154 |
+
| feature grid | video | full-sequence peak GPU | per-frame (`use_cache=True`) peak GPU |
|
| 155 |
+
|---|---|---|---|
|
| 156 |
+
| 15x20 (trained) | 240x320 | 6.0 GB | 6.1 GB |
|
| 157 |
+
| 23x30 | 368x480 | 9.0 GB | 7.3 GB |
|
| 158 |
+
| 30x40 | 480x640 | 14.2 GB | 10.7 GB |
|
| 159 |
+
| 38x50 | 608x800 | 24.5 GB | 10.7 GB |
|
| 160 |
+
|
| 161 |
+
Memory for the full-sequence path grows with the square of the token count, so decode frame by
|
| 162 |
+
frame with `use_cache=True` at the larger grids. Without the retargeting above, a non-native grid
|
| 163 |
+
either raises `non-autoregressive inference without attention mask detected!!!` or silently
|
| 164 |
+
mis-infers the grid.
|
| 165 |
+
|
| 166 |
+
|
| 167 |
## Training
|
| 168 |
|
| 169 |
Only this head was trained. The V-JEPA 2.1 ViT-G/384 encoder is frozen, and the world model's
|
|
|
|
| 171 |
|
| 172 |
| | |
|
| 173 |
|---|---|
|
| 174 |
+
| steps | 219 400 (epoch 1097) |
|
| 175 |
| hardware | 1 node x 4 A100-80GB, ~3.02 s/iter, 56 GB peak per GPU |
|
| 176 |
| global batch | 8 clips/step (2 per GPU, no grad accumulation), 8 feature frames per clip |
|
| 177 |
| optimizer | AdamW, constant lr 1e-4, betas (0.9, 0.95), weight decay 0, grad clip 1.0 |
|
| 178 |
| precision | bf16 mixed precision, `torch.compile`d |
|
| 179 |
| objective | x0-prediction diffusion loss in Cosmos latent space |
|
| 180 |
+
| `encoder_image_loss` | **0.0204** at step 219 400 (0.038 at step 140 600) |
|
| 181 |
|
| 182 |
### Data
|
| 183 |
|
scheme_dit_block.png
ADDED
|
Git LFS Details
|
scheme_dit_block.svg
ADDED
|
|
scheme_pipeline.png
ADDED
|
Git LFS Details
|
scheme_pipeline.svg
ADDED
|
|