LoT adapter + LoRA: run 4: Nikki talking-head + pose clips, teacher distillation
Browse files
run4_nikki_distill/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 4: Nikki talking-head + pose clips, 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 from run 3 (isometric stills, distillation). **Run 4: 1,500 steps, LoT shift 3, `--distill 1`, swap 8.** Data: 516 Nikki clips from h3-atlas (50 talking-head with full H3 prompts, 466 pose transitions captioned from their start/end poses), H3 latents of the first 7 latent frames at 512×768, mixed with 777 isometric stills; 12 held out per set. Captions encoded once with Qwen3-VL-32B. Rank 16, AdamW 8-bit, lr 1e-4, batch 1, one RTX PRO 4000 Blackwell (24 GB).
|
| 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.1991 | 0.1525 | 0.1950 | 0.5042 | 0.5204 |
|
| 52 |
+
| 250 | 0.1887 | 0.1290 | 0.1672 | 0.3990 | 0.4224 |
|
| 53 |
+
| 500 | 0.1898 | 0.1245 | 0.1637 | 0.3911 | 0.4075 |
|
| 54 |
+
| 750 | 0.1876 | 0.1233 | 0.1605 | 0.3839 | 0.3981 |
|
| 55 |
+
| 1000 | 0.1885 | 0.1205 | 0.1591 | 0.3741 | 0.3849 |
|
| 56 |
+
| 1250 | 0.1886 | 0.1225 | 0.1612 | 0.3715 | 0.3872 |
|
| 57 |
+
| 1500 | 0.1857 | 0.1201 | 0.1583 | 0.3701 | 0.3811 |
|
| 58 |
+
|
| 59 |
+
## License
|
| 60 |
+
|
| 61 |
+
Derived from MiniMax H3 weights; use is governed by the [MiniMax H3 Community License Agreement](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/LICENSE).
|
run4_nikki_distill/adapter.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8def7b32389f1f9b27433b9ddf63802ada8c1a9c4716bfe9219e854e06b62dbd
|
| 3 |
+
size 214016184
|
run4_nikki_distill/lora.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e4223c016bee5808774ce2124da4eb71e35aaafd9b0add30c884b3f08541a3e
|
| 3 |
+
size 149163288
|
run4_nikki_distill/train_log.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|