level-of-token
lora
video-generation
research
MiniMax-H3-LoT / README.md
johndpope's picture
Cards: help wanted -> scrya-com/lot-diffusion discussion #1
c62c949 verified
|
Raw History Blame Contribute Delete
6.07 kB
---
license: other
license_name: minimax-h3-community-license
license_link: LICENSE
base_model: MiniMaxAI/MiniMax-H3
tags:
- level-of-token
- lora
- video-generation
- research
---
# MiniMax-H3 Level-of-Token (LoT) adapters
> [!WARNING]
> # ⚠️ THIS MODEL NEEDS MORE TRAINING — HELP WANTED
> **These are research checkpoints, not a finished model.** LoT output is still visibly worse than dense MiniMax H3: coarse regions are soft, faces in talking-head shots distort, and the LoRA can bend bodies even with LoT off. If you have GPU time, data, or ideas, join the discussion: **[help-wanted discussion](https://github.com/scrya-com/lot-diffusion/discussions/1)**.
> [!CAUTION]
> **License and territory.** Derived from MiniMax H3 under the [MiniMax H3 Community License Agreement](https://huggingface.co/johndpope/MiniMax-H3-LoT/blob/main/LICENSE) (see also [`NOTICE`](https://huggingface.co/johndpope/MiniMax-H3-LoT/blob/main/NOTICE)). That license allows use and redistribution **only outside its Excluded Territories: the European Union, the United Kingdom, the Republic of Korea and the United States of America.** Do not download or use these files there. Commercial use above US$20M yearly revenue needs MiniMax's written authorization. The [Acceptable Use Policy](https://huggingface.co/johndpope/MiniMax-H3-LoT/blob/main/LICENSE) applies, including: no impersonation without consent, and machine-generated output must be disclosed as such.
> [!NOTE]
> **Training data.** Run 4 includes clips of "Nikki", a character whose reference face comes from a Grok Imagine generation (per the dataset's own notes), plus isometric-3D stills. Do not use these weights to impersonate anyone.
**Train it yourself / help improve it:** [cheatsheet](https://github.com/scrya-com/lot-diffusion/blob/main/lot/CHEATSHEET.md) · [train from your own mp4s](https://github.com/scrya-com/lot-diffusion/blob/main/lot/README.md#training-h3-for-lot-from-your-own-mp4s) · [results and renders (issue 1)](https://github.com/johndpope/MiniMax-H3/issues/1)
Research adapters that let MiniMax-H3's DiT run on a **Level-of-Token** 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)). On one 24 GB card, a 124-frame 768×1344 DiT forward measured **52.3 s dense vs 18.3 s LoT (2.85×)**. The VAE decode is unchanged.
| Folder | Run | Data |
|---|---|---|
| [`run3_iso3d_distill/`](run3_iso3d_distill) | 3 runs of 2,000 steps each, ending with teacher distillation | 777 isometric-3D stills |
| [`run4_nikki_distill/`](run4_nikki_distill) | 1,500 steps on top of run 3, distillation | 516 Nikki talking-head + pose clips + the stills |
Each folder has `adapter.safetensors` (LoT heads + fitted extent bank), `lora.safetensors` (rank-16 LoRA on the FL2VA DiT), `train_log.jsonl` and its own card.
**Status: research.** Coarse regions are still softer than dense H3. Renders, eval curves and caveats are in [johndpope/MiniMax-H3 issue 1](https://github.com/johndpope/MiniMax-H3/issues/1). Code, and training from your own mp4s: [scrya-com/lot-diffusion](https://github.com/scrya-com/lot-diffusion) ([cheatsheet](https://github.com/scrya-com/lot-diffusion/blob/main/lot/CHEATSHEET.md)).
## Quick start: download → test → validate timing → train
**ComfyUI** ([ComfyUI-MiniMax-H3-Image-Lane](https://github.com/scrya-com/ComfyUI-MiniMax-H3-Image-Lane), stills and video clips):
```bash
cd ComfyUI/custom_nodes && git clone https://github.com/scrya-com/ComfyUI-MiniMax-H3-Image-Lane.git && cd ../..
hf download johndpope/MiniMax-H3-LoT run4_nikki_distill/adapter.safetensors run4_nikki_distill/lora.safetensors --local-dir /tmp/lot
mkdir -p ComfyUI/models/lot
cp /tmp/lot/run4_nikki_distill/adapter.safetensors ComfyUI/models/lot/run4_nikki_distill_adapter.safetensors
cp /tmp/lot/run4_nikki_distill/lora.safetensors ComfyUI/models/loras/minimax_h3_lot_run4_nikki_lora.safetensors
```
Load `workflows/lot_video_api.json` (22-frame clip) or `workflows/t1_lot_image_api.json` (still). Each samples one seed twice, LoT and dense. Validate the timing by comparing the console's it/s for the two runs. Use the int8 ConvRot FL2VA DiT the adapters were trained on; **LoT Unscale Latent** is required before VAE Decode.
**Python** ([scrya-com/lot-diffusion](https://github.com/scrya-com/lot-diffusion); it bundles the [musubi-tuner](https://github.com/kohya-ss/musubi-tuner) H3 runtime):
```bash
git clone https://github.com/scrya-com/lot-diffusion && cd lot-diffusion && pip install -r requirements.txt
hf download Comfy-Org/MiniMax-H3 diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors --local-dir models
export LOT_H3_CHECKPOINT=$PWD/models/diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors
hf download johndpope/MiniMax-H3-LoT --local-dir runs/lot_hf
python3 lot/test_lot.py # CPU tests
python3 lot/parity_h3.py # LoT 1x1 == dense
python3 lot/time_lot_h3.py --shape clip --trained runs/lot_hf/run4_nikki_distill # timing per layout
```
**Measured** on one RTX PRO 4000 Blackwell (24 GB), run-4 weights, one DiT forward, all blocks resident:
| Shape | `center` | `bands` | `uniform2` |
|---|---|---|---|
| still 768×1152 | 2.15× | 1.67× | 2.48× |
| clip 512×768, 22 frames | **2.55×** | 1.92× | 3.24× |
| clip 768×1344, 124 frames (48 blocks streamed) | **2.85×** | 2.57× | |
In ComfyUI's sampler: 2.6× per step on the 22-frame clip, 1.35× on a still. The VAE decode is not sped up.
**Train your own** (from mp4s or existing H3 latents, teacher distillation recipe): [cheatsheet](https://github.com/scrya-com/lot-diffusion/blob/main/lot/CHEATSHEET.md). Publish with `upload_hf.py`, which adds the license, NOTICE and these warnings.
Derived from MiniMax H3 weights; use is governed by the [MiniMax H3 Community License Agreement](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/LICENSE).