level-of-token
lora
video-generation
research
johndpope commited on
Commit
1712673
·
verified ·
1 Parent(s): 1b59338

LoT adapter + LoRA: run 3: isometric stills, teacher distillation

Browse files
run3_iso3d_distill/README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: minimax-h3-community-license
4
+ license_link: https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/LICENSE
5
+ base_model: MiniMaxAI/MiniMax-H3
6
+ tags:
7
+ - level-of-token
8
+ - lora
9
+ - video-generation
10
+ - research
11
+ ---
12
+
13
+ # MiniMax-H3 Level-of-Token adapter: run 3: isometric stills, teacher distillation
14
+
15
+ Research weights for running **MiniMax-H3**'s DiT on a **Level-of-Token (LoT)** layout: fewer, larger tokens where detail is low, with the full-resolution velocity recovered afterwards ([Nakayama et al., arXiv 2610.05816](https://arxiv.org/abs/2610.05816)). The VAE latent stays full size; only the transformer sequence shrinks. On one 24 GB card a 37-frame 768×1344 DiT forward measured 51.9 s dense vs 19.6 s LoT (2.64×). The VAE decode is unchanged.
16
+
17
+ **Status: research.** Coarse regions are still softer than dense H3. Progress, renders and caveats are tracked in [the issue](https://github.com/johndpope/MiniMax-H3/issues/1).
18
+
19
+ ## Files
20
+
21
+ | File | What |
22
+ |---|---|
23
+ | `adapter.safetensors` | LoT adapter: per-extent input/output heads, shape MLP, and the Procrustes extent bank (`A`, `s`) it was trained with |
24
+ | `lora.safetensors` | Rank-16 LoRA on `blocks.*.attn.qkv_proj`, `attn.out_proj`, `mlp.fc1`, `mlp.fc2` (200 modules) of the FL2VA DiT |
25
+ | `train_log.jsonl` | Per-step loss and held-out evals |
26
+
27
+ ## Use
28
+
29
+ Needs the code in [`scripts/lot`](https://github.com/johndpope/MiniMax-H3/tree/main/scripts/lot), Fizgig with the LoT hooks (branch `immiscible-h3-noise`), and the pruned int8 FL2VA DiT (`minimax_h3_fl2va_pruned_int8_convrot.safetensors`).
30
+
31
+ ```bash
32
+ hf download johndpope/MiniMax-H3-LoT --local-dir runs/lot_hf
33
+ python3 scripts/lot/render_h3.py --trained runs/lot_hf --swap 4 \
34
+ --layout bands --variants dense,dense_lora,lot_trained
35
+ ```
36
+
37
+ Training from your own mp4s: [cheatsheet](https://github.com/johndpope/MiniMax-H3/tree/main/scripts/lot/CHEATSHEET.md).
38
+
39
+ ## Training
40
+
41
+ Warm start chain: run 1 (2,000 steps, shift 12) → run 2 (2,000 steps, LoT shift 3) → **run 3 (2,000 steps, LoT shift 3, `--distill 1`)**. Data: 777 isometric-3D stills with cached text (`cache_iso3d`), 24 held out. Layouts per step: 20% dense, uniform extents, detail-driven 4×4 mosaics. Rank 16, AdamW 8-bit, lr 1e-4, batch 1, swap 4, one RTX PRO 4000 Blackwell (24 GB), 2 h 50 min.
42
+
43
+ Loss: eq. 17 with H3's `x0 − ε` head (velocity MSE in y-space), plus a distillation term that pulls LoT's clean estimate toward the frozen dense base (LoRA off) from the same noisy input.
44
+
45
+ ## Held-out eval
46
+
47
+ `dense` / `uniform2` / `mosaic` are the data loss on those layouts. `gap_*` is the weighted distance from LoT to the frozen dense teacher. Lower is better.
48
+
49
+ | step | dense | uniform2 | mosaic | gap_uniform2 | gap_mosaic |
50
+ |---|---|---|---|---|---|
51
+ | 0 | 0.2959 | 0.1835 | 0.2496 | 0.6732 | 0.6934 |
52
+ | 250 | 0.3076 | 0.1878 | 0.2551 | 0.6376 | 0.6475 |
53
+ | 500 | 0.3094 | 0.1894 | 0.2536 | 0.6172 | 0.6119 |
54
+ | 750 | 0.3094 | 0.1846 | 0.2516 | 0.6092 | 0.6071 |
55
+ | 1000 | 0.3091 | 0.1836 | 0.2513 | 0.5969 | 0.6044 |
56
+ | 1250 | 0.3179 | 0.1883 | 0.2567 | 0.5833 | 0.5826 |
57
+ | 1500 | 0.3078 | 0.1822 | 0.2512 | 0.5794 | 0.5833 |
58
+ | 1750 | 0.3091 | 0.1851 | 0.2537 | 0.5609 | 0.5726 |
59
+ | 2000 | 0.3056 | 0.1830 | 0.2523 | 0.5688 | 0.5670 |
60
+
61
+ ## License
62
+
63
+ Derived from MiniMax H3 weights; use is governed by the [MiniMax H3 Community License Agreement](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/LICENSE).
run3_iso3d_distill/adapter.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fde812d3737ac088c143df27e342715b6782b4495da902d8a69cf57f0e95a6ba
3
+ size 214016184
run3_iso3d_distill/lora.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54a4b54c150609fb75b80964de14d940ef1b7a9f4761f95e98a84ce45a31554f
3
+ size 149163288
run3_iso3d_distill/train_log.jsonl ADDED
The diff for this file is too large to render. See raw diff