File size: 17,438 Bytes
ab00c68
 
a35bf1c
 
 
 
 
ab00c68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a35bf1c
ab00c68
 
 
 
3ad1469
 
 
 
 
 
 
a35bf1c
b9db29f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
070a2a5
a35bf1c
 
 
 
 
070a2a5
ab00c68
 
 
 
 
 
 
 
 
 
 
 
c108363
 
 
 
 
 
 
 
ab00c68
 
 
 
 
 
 
 
3035e25
 
ab00c68
 
 
 
 
 
 
 
 
 
 
 
3035e25
 
ab00c68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3035e25
 
ab00c68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
070a2a5
 
 
a35bf1c
070a2a5
 
 
a35bf1c
 
 
 
070a2a5
 
 
 
 
 
 
3ad1469
 
 
a35bf1c
070a2a5
638e39c
 
b9db29f
638e39c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
---
license: other
language:
  - en
  - ko
  - zh
  - ja
base_model:
  - Comfy-Org/MiniMax-H3
pipeline_tag: image-to-video
library_name: comfyui
tags:
  - minimax-h3
  - video-generation
  - audio-video-generation
  - image-to-video
  - diffusion-transformer
  - quantization
  - ternary
  - balanced-base3
  - rung-omega
  - theoremflow-omega
  - comfyui
  - multilingual
---

# MiniMax-H3-Rung-Omega (`5.976 BPW`, `14.98 GiB` Joint-tANS / `16.22 GiB` Raw Base-243) + TheoremFlow-ฮฉ (`8.92x` Speedup)

<p align="left">
  <strong>๐ŸŒ Language / ์–ธ์–ด / ่ฏญ่จ€ / ่จ€่ชž:</strong>&nbsp;&nbsp;
  <a href="./README.md"><strong>๐Ÿ‡บ๐Ÿ‡ธ English</strong></a> &nbsp;|&nbsp;
  <a href="./README_ko.md"><strong>๐Ÿ‡ฐ๐Ÿ‡ท ํ•œ๊ตญ์–ด</strong></a> &nbsp;|&nbsp;
  <a href="./README_zh.md"><strong>๐Ÿ‡จ๐Ÿ‡ณ ไธญๆ–‡ (็ฎ€ไฝ“)</strong></a> &nbsp;|&nbsp;
  <a href="./README_ja.md"><strong>๐Ÿ‡ฏ๐Ÿ‡ต ๆ—ฅๆœฌ่ชž</strong></a>
</p>

<div align="center">
  <p>
    <a href="https://buymeacoffee.com/tripleyoung" target="_blank">
      <img src="https://img.shields.io/badge/Buy%20Me%20a%20Coffee-Priority%20Model%20Queue%20%E2%9A%A1-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black" alt="Buy Me A Coffee" />
    </a>
    <a href="https://qr.kakaopay.com/FVgCIrWbX" target="_blank">
      <img src="https://img.shields.io/badge/KakaoPay%20QR-%EC%B9%B4%EC%B9%B4%EC%98%A4%ED%8E%98%EC%9D%B4%20%EC%86%A1%EA%B8%88-FEE500?style=for-the-badge&logo=kakaotalk&logoColor=black" alt="KakaoPay QR" />
    </a>
    <img src="https://img.shields.io/badge/NH%EB%86%8D%ED%98%91(%EB%86%8D%EC%B6%95%ED%98%91)-352--1556--0640--33%20(%EC%9C%A4%EC%97%AC%EC%9B%90)-0072BC?style=for-the-badge" alt="NH๋†ํ˜‘ 352-1556-0640-33 (์œค์—ฌ์›)" />
    <a href="https://huggingface.co/yeowon/MiniMax-H3-Rung-Omega/discussions" target="_blank">
      <img src="https://img.shields.io/badge/HF%20Community-Request%20Models%20%F0%9F%92%AC-38BDF8?style=for-the-badge" alt="Community Discussions" />
    </a>
  </p>
  <p>
    <a href="https://qr.kakaopay.com/FVgCIrWbX" target="_blank">
      <img src="https://huggingface.co/yeowon/MiniMax-H3-Rung-Omega/resolve/main/assets/kakaopay_qr.jpg" width="160" alt="KakaoPay QR Transfer (์œค์—ฌ์›)" style="border-radius: 12px; border: 1px solid #e5e7eb;" />
    </a>
  </p>
  <p>
    ๐Ÿฆ <b>๊ตญ๋‚ด ๊ณ„์ขŒ์ด์ฒด ํ›„์› (Korean Bank Transfer):</b> <code>NH๋†ํ˜‘(๋†์ถ•ํ˜‘) 352-1556-0640-33 (์˜ˆ๊ธˆ์ฃผ: ์œค์—ฌ์›)</code> &nbsp;|&nbsp;
    ๐Ÿ’› <a href="https://qr.kakaopay.com/FVgCIrWbX" target="_blank"><b>์นด์นด์˜คํŽ˜์ด QR ์†ก๊ธˆ</b></a> &nbsp;|&nbsp;
    โ˜• <a href="https://buymeacoffee.com/tripleyoung" target="_blank"><b>Buy Me a Coffee</b></a>
  </p>
</div>

> โ˜• **Support Open Quantization & Inference Acceleration Research & Request Next Models**:
> * ๐Ÿ‡บ๐Ÿ‡ธ **Want another model quantized with `Rung ฮฉ` (`4-Trit Base-243`) + `TheoremFlow-ฮฉ` acceleration?** Leave your model request in a [**Buy Me a Coffee support note (`buymeacoffee.com/tripleyoung`)**](https://buymeacoffee.com/tripleyoung) (Priority Queue โšก) or open a thread in our [**Hugging Face Community Discussions**](https://huggingface.co/yeowon/MiniMax-H3-Rung-Omega/discussions)!
> * ๐Ÿ‡ฐ๐Ÿ‡ท **์›ํ•˜์‹œ๋Š” ๋‹ค๋ฅธ ๋ชจ๋ธ(๋น„๋””์˜คยท์˜ค๋””์˜ค DiT, LLM ๋“ฑ)์˜ `Rung ฮฉ` ์–‘์žํ™” ๋ฐ `TheoremFlow-ฮฉ` ์ถ”๋ก  ๊ฐ€์†์ด ํ•„์š”ํ•˜์‹ ๊ฐ€์š”?** [**Buy Me a Coffee ํ›„์› ๋ฉ”์‹œ์ง€(`buymeacoffee.com/tripleyoung`)**](https://buymeacoffee.com/tripleyoung)์— ๋ชจ๋ธ๋ช…์„ ๋‚จ๊ฒจ์ฃผ์‹œ๋ฉด **์ตœ์šฐ์„  ์ˆœ์œ„(Priority Queue โšก)**๋กœ ์–‘์žํ™”ํ•ด ๋“œ๋ฆฝ๋‹ˆ๋‹ค! ([**HF ์ปค๋ฎค๋‹ˆํ‹ฐ ํƒญ**](https://huggingface.co/yeowon/MiniMax-H3-Rung-Omega/discussions)์—์„œ๋„ ์š”์ฒญ ๋ฐ ์†Œํ†ต ๊ฐ€๋Šฅ ยท [ํ•œ๊ตญ์–ด ์ „์ฒด ๋ฌธ์„œ](./README_ko.md))
> * ๐Ÿ‡จ๐Ÿ‡ณ **ๅธŒๆœ›ๆˆ‘ไปฌๅฐ†ๅ…ถไป–ๆจกๅž‹๏ผˆ่ง†้ข‘/้Ÿณ้ข‘ DiTใ€LLM ็ญ‰๏ผ‰่ฟ›่กŒ `Rung ฮฉ` ้‡ๅŒ–ไธŽ `TheoremFlow-ฮฉ` ๅŠ ้€Ÿๅ—๏ผŸ** ๆฌข่ฟŽๅœจ [**Buy Me a Coffee ่ตžๅŠฉ็•™่จ€ (`buymeacoffee.com/tripleyoung`)**](https://buymeacoffee.com/tripleyoung) ไธญๅ†™ไธ‹ๆ‚จ้œ€่ฆ็š„ๆจกๅž‹ๅ็งฐ๏ผˆ**่ตžๅŠฉ่ฏทๆฑ‚ไบซๆœ€ไผ˜ๅ…ˆ้˜Ÿๅˆ— โšก**๏ผ‰๏ผŒๆˆ–ๅœจ [**Hugging Face ็คพๅŒบ่ฎจ่ฎบๅŒบ (Discussions)**](https://huggingface.co/yeowon/MiniMax-H3-Rung-Omega/discussions) ็•™่จ€ไบคๆต๏ผ([ๆŸฅ็œ‹ไธญๆ–‡ๅฎŒๆ•ดๆ–‡ๆกฃ](./README_zh.md))
> * ๐Ÿ‡ฏ๐Ÿ‡ต **ไป–ใฎใƒขใƒ‡ใƒซ๏ผˆๅ‹•็”ปใƒป้Ÿณๅฃฐ DiTใ€LLM ใชใฉ๏ผ‰ใฎ `Rung ฮฉ` ้‡ๅญๅŒ–ใ‚„ `TheoremFlow-ฮฉ` ้ซ˜้€ŸๅŒ–ใ‚’ใ”ๅธŒๆœ›ใงใ™ใ‹๏ผŸ** [**Buy Me a Coffee ใฎใ‚ตใƒใƒผใƒˆใƒกใƒƒใ‚ปใƒผใ‚ธ (`buymeacoffee.com/tripleyoung`)**](https://buymeacoffee.com/tripleyoung) ใซใ”ๅธŒๆœ›ใฎใƒขใƒ‡ใƒซๅใ‚’ใ”่จ˜ๅ…ฅใ„ใŸใ ใ‘ใ‚Œใฐใ€**ๆœ€ๅ„ชๅ…ˆใ‚ญใƒฅใƒผ (Priority Queue โšก)** ใง้‡ๅญๅŒ–ใ„ใŸใ—ใพใ™๏ผ๏ผˆ[**HF ใ‚ณใƒŸใƒฅใƒ‹ใƒ†ใ‚ฃ Discussions**](https://huggingface.co/yeowon/MiniMax-H3-Rung-Omega/discussions) ใงใ‚‚ใƒชใ‚ฏใ‚จใ‚นใƒˆๅ—ไป˜ไธญใƒป[ๆ—ฅๆœฌ่ชžใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆๅ…จๆ–‡](./README_ja.md)๏ผ‰

**`yeowon/MiniMax-H3-Rung-Omega`** provides the **50-Block Pure `Rung ฮฉ` Balanced Base-3 (`4-Trit`, Base-243 5-in-4-byte)** quantized checkpoint and the **`TheoremFlow-ฮฉ` Mathematical Floor Inference Engine** for the **MiniMax-H3 FL2VA (First/Last-Frame-to-Video+Audio, 33.1B Total / 20.11B Active Parameters)** multimodal Diffusion Transformer.

* **Zero Fallback (`200 / 200` Linear Layers in Pure `TensorCoreRungOmegaTernaryLayout`)**: Every single linear projection (`attn.qkv_proj`, `attn.out_proj`, `mlp.fc1`, `mlp.fc2`) across all 50 DiT blocks (`blocks.0` .. `blocks.49`) is quantized in the `Rung ฮฉ` 4-Trit Balanced Base-3 lattice (`[-40, +40]` with `group_size=128` FP16 scales and `convrot_groupsize=256`), with **0 fallback NVFP4 layers**.
* **Smaller than Official `#1` Recommended `int8_convrot` (`19.53 GiB` โ†’ `14.98 GiB` Joint-tANS / `16.22 GiB` Raw `uint8`)**: Achieves **`2.50x` compression vs. BF16 Teacher (`37.46 GiB`)** and **`1.30x` compression vs. `int8_convrot` (`19.53 GiB`)**, while outperforming `int8_convrot` on Audio & Spatial-Temporal Top-1 Velocity Agreement.
* **TheoremFlow-ฮฉ (`8.92x` End-to-End Sampling Speedup)**: Accelerates 20-step joint Video (`864ร—480`, `124` frames @ 24fps) + Stereo Audio (`32kHz`) flow-matching generation from **`625.4s` โ†’ `70.11s`** while preserving **`99.58%` Video Latent Cosine Similarity (`20.80 dB` SNR)** and crystal-clear synchronized speech/dialogue.

---

## ๐ŸŽฌ Demo Preview (Generated by Pure 50-Block `Rung ฮฉ` + `TheoremFlow-ฮฉ` in `70.11s`)

![Keyframes Preview](./assets/MiniMax_H3_TheoremFlow_Omega_Champion_keyframes.png)

### ๐ŸŽฌ Side-by-Side Audio & Video Comparison: Official int8_convrot (19.53 GiB, 434.1s) vs Ours Rung-Omega + TheoremFlow-Omega (14.96 GiB, 70.1s โ€” Turn Sound ON ๐Ÿ”Š)

<p align="center">
  <video controls autoplay loop muted playsinline width="100%" src="https://huggingface.co/yeowon/MiniMax-H3-Rung-Omega/resolve/main/assets/minimax_h3_viral_16x9.mp4"></video>
</p>



* **Full Video + Synchronized Korean Speech (`.mp4`)**: [`assets/MiniMax_H3_TheoremFlow_Omega_Champion.mp4`](./assets/MiniMax_H3_TheoremFlow_Omega_Champion.mp4)
* **Pure 50-Block 20-Step Baseline Video (`.mp4`)**: [`assets/MiniMax_H3_Rung_Omega_50blk_Champion.mp4`](./assets/MiniMax_H3_Rung_Omega_50blk_Champion.mp4)
* **Extracted 32kHz Stereo Audio Track (`.wav`)**: [`assets/MiniMax_H3_TheoremFlow_Omega_Champion_audio.wav`](./assets/MiniMax_H3_TheoremFlow_Omega_Champion_audio.wav)

---

## ๐Ÿ“Š Benchmark Results

![MiniMax-H3-Rung-Omega Benchmark Overview](./assets/minimax_h3_rung_omega_benchmark_hero.png)

### 1. Full 50-Block End-to-End Velocity Fidelity vs. Official `#1` Recommended `int8_convrot`

Evaluated on held-out multimodal diffusion trajectories (`Video + Audio + Text + Conditioning Keyframe` across noise levels $\sigma \in [0.08, 0.92]$) against the unquantized `BF16` Teacher (`37.46 GiB`):

| Model / Format | Active Linear Layers | Effective BPW | Total Size (GiB) | Compression vs. BF16 | Video Spatial Top-1 (โ†‘) | Audio Patch Top-1 (โ†‘) | Video Velocity Cosine (โ†‘) | Audio Velocity Cosine (โ†‘) | Video $R^2$ (โ†‘) | Audio $R^2$ (โ†‘) |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| **BF16 Teacher (`minimax_h3_fl2va_pruned_bf16`)** | 200 ร— BF16 | `16.000` | `37.46 GiB` | `1.00x` | `100.00%` | `100.00%` | `1.000000` | `1.000000` | `100.00%` | `100.00%` |
| **Official `#1` `int8_convrot` (`19.53 GiB`)** | 200 ร— INT8 | `8.003` | `19.53 GiB` | `1.92x` | `72.92%` | `77.60%` | `0.980832` | `0.985771` | `96.16%` | `97.10%` |
| **`Rung ฮฉ` 4-Trit Pareto Champion (Ours)** | **200 ร— 4-Trit Base-243** | **`5.967` (`6.40` raw)** | **`14.96 GiB` (`16.22 GiB` raw)** | **`2.50x`** | **`78.12%` (`+5.20%p`)** | **`81.77%` (`+4.17%p`)** | **`0.976383`** | **`0.982006`** | **`95.28%`** | **`96.43%`** |

### 2. Multi-Track Pareto Ladder (10-Block Calibration & Held-Out Benchmark)

![Rung ฮฉ Rate-Distortion Pareto Frontier](./assets/minimax_h3_pareto_frontier_chart.png)

| Track | Trits / Codebook | BPW (Joint-tANS) | Total Size (GiB) | Compression vs. BF16 | Combined Top-1 (โ†‘) | Combined SNR (dB) | Video Cosine (โ†‘) | Audio Cosine (โ†‘) |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| `baseline_nvfp4_rtn` | NVFP4 | `4.500` | `11.67 GiB` | `3.21x` | `97.53%` | `33.61 dB` | `0.999810` | `0.999676` |
| **`omega_base15_ultra`** | 3-Trit (`[-7..+7]`, 2 w/byte) | **`3.432`** | **`9.27 GiB`** | **`4.04x`** | **`99.48%`** | **`44.31 dB`** | **`0.999984`** | **`0.999968`** |
| **`omega_4trit_sub45`** | 4-Trit ECSQ (`[-40..+40]`) | **`4.488`** | **`11.64 GiB`** | **`3.22x`** | **`99.48%`** | **`47.77 dB`** | **`0.999992`** | **`0.999990`** |
| **`omega_4trit_pareto` (Released Checkpoint)** | 4-Trit Full-Range (`[-40..+40]`) | **`5.977`** | **`14.98 GiB` (`16.22 GiB` raw)** | **`2.50x`** | **`99.87%`** | **`50.62 dB`** | **`0.999995`** | **`0.999996`** |
| **`omega_5trit_supreme`** | 5-Trit (`[-121..+121]`) | **`7.575`** | **`18.57 GiB`** | **`2.02x`** | **`99.48%`** | **`52.60 dB`** | **`0.999997`** | **`0.999998`** |

### 3. `TheoremFlow-ฮฉ` Inference Acceleration (`864ร—480`, `124` Frames + Stereo Audio, 20 Steps)

| Engine / Schedule | Sampling Time (โ†“) | Speedup vs. Baseline | Video Latent Cosine | Video Latent SNR | Audio Latent Cosine |
| :--- | :---: | :---: | :---: | :---: | :---: |
| Standard 20-Step Full 50-Block Sampling | `625.40s` | `1.00x` | `1.000000` | `โˆž` | `1.000000` |
| **`TheoremFlow-ฮฉ` (`6-Exact + 14-Fast`, Floors 1โ€“5)** | **`70.11s`** | **`8.92x`** | **`0.995812`** | **`20.80 dB`** | **`0.971400`** |

---

## ๐Ÿ“ฆ Repository Structure

```text
yeowon/MiniMax-H3-Rung-Omega/
โ”œโ”€โ”€ diffusion_models/
โ”‚   โ””โ”€โ”€ minimax_h3_fl2va_pruned_rung_omega.safetensors   # 16.22 GiB (50-Block Pure Rung ฮฉ 4-Trit Base-243 Checkpoint)
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ register_comfyui_rung_omega.py                   # ComfyUI TensorCoreRungOmegaTernaryLayout registration patch
โ”‚   โ”œโ”€โ”€ theoremflow_omega.py                             # TheoremFlow-ฮฉ (Floors 1-5) 8.92x inference acceleration engine
โ”‚   โ””โ”€โ”€ generate_minimax_h3_rung_omega_video.py          # Standalone 3-stage Video+Audio generator with 5k+2 bounded VAE decode
โ”œโ”€โ”€ benchmarks/
โ”‚   โ”œโ”€โ”€ rung_omega_minimax_h3_50blk_results.json         # Full 50-block evaluation metrics vs. int8_convrot
โ”‚   โ””โ”€โ”€ rung_omega_minimax_h3_results.json               # Multi-track Pareto ladder benchmark metrics
โ””โ”€โ”€ assets/
    โ”œโ”€โ”€ minimax_h3_rung_omega_benchmark_hero.png         # 50-Block Size, Velocity Top-1 & TheoremFlow-ฮฉ 8.92x Speedup Chart
    โ”œโ”€โ”€ minimax_h3_pareto_frontier_chart.png             # Rate-Distortion Pareto Frontier vs. NVFP4 & int8_convrot Chart
    โ”œโ”€โ”€ MiniMax_H3_TheoremFlow_Omega_Champion.mp4        # 70.11s TheoremFlow-ฮฉ generated video + Korean speech
    โ”œโ”€โ”€ MiniMax_H3_Rung_Omega_50blk_Champion.mp4         # Full 20-step generated video + Korean speech
    โ”œโ”€โ”€ MiniMax_H3_TheoremFlow_Omega_Champion_audio.wav  # 32kHz stereo audio output
    โ””โ”€โ”€ MiniMax_H3_TheoremFlow_Omega_Champion_keyframes.png
```

---

## ๐Ÿš€ Quickstart

### 1. Register `TensorCoreRungOmegaTernaryLayout` in ComfyUI

Patch your ComfyUI installation (`comfy/quant_ops.py` and `comfy/ops.py`) so `UNETLoader` natively recognizes `"format": "rung_omega_ternary"`:

```bash
python3 src/register_comfyui_rung_omega.py
```

### 2. Place Checkpoint in ComfyUI `diffusion_models/`

```bash
ln -s /path/to/diffusion_models/minimax_h3_fl2va_pruned_rung_omega.safetensors \
      /path/to/ComfyUI/models/diffusion_models/minimax_h3_fl2va_pruned_rung_omega.safetensors
```

### 3. Run End-to-End Video + Audio Generation with `TheoremFlow-ฮฉ` (`8.92x` Speedup)

```bash
python3 src/generate_minimax_h3_rung_omega_video.py \
  --unet-name minimax_h3_fl2va_pruned_rung_omega.safetensors \
  --first-frame /path/to/input_frame.png \
  --width 864 --height 480 --length 124 --steps 20 \
  --theoremflow \
  --output-mp4 output_theoremflow_omega.mp4
```

### 4. Programmatic Usage of `TheoremFlow-ฮฉ` on a Loaded ComfyUI Model

```python
import torch
from theoremflow_omega import install_floor1_static_int8_engine, install_theoremflow_omega_schedule

# 1. Install Floor 1: Gauge-folded Base-243 -> Static-Workspace INT8 MMA + Fused SwiGLU + NHD SageAttention
f1_info = install_floor1_static_int8_engine(
    model.model.diffusion_model,
    max_seq_len=16384,
    device=torch.device("cuda:0"),
)

# 2. Install Floors 2, 3, and 5: Step-0 Constant Folding + Bi-Time Secant Boundary-Pinned Trunk Schedule
tf_state = install_theoremflow_omega_schedule(
    model.model.diffusion_model,
    exact_steps={0, 1, 2, 7, 13, 19},
    head_blocks=1,
    tail_blocks=1,
)
```

---

## ๐Ÿ”ฌ Technical Architecture Overview

1. **Bijective 5-in-4 Base-243 Packing (`rung_omega_ternary`)**:
   * Each linear weight matrix $W \in \mathbb{R}^{M \times K}$ is rotated in 256-element blocks via the DC-balanced regular orthogonal Hadamard matrix $H_{256} = H_4^{\otimes 4}$ and mapped onto the symmetric 4-Trit Balanced Base-3 lattice $q \in \{-40, \dots, +40\}$ with `FP16` group scales (`group_size = 128`).
   * Five 4-trit codes $(u_0, u_1, u_2, u_3, u_4) \in \{0, \dots, 80\}^5$ are bijectively packed into 4 bytes $b_i = u_i + 81 \cdot \text{trit}_i(u_4) \in \{0, \dots, 242\}$ (`6.40` raw storage bits/weight, `5.976` Joint-tANS entropy bits/weight).
2. **TheoremFlow-ฮฉ Inference Engine (`src/theoremflow_omega.py`)**:
   * **Floor 1 (Hardware Execution Roofline)**: Unpacks Base-243 weights once at load time into gauge-folded INT8 tensors (`-3.55 GiB` VRAM saved), pre-allocates a static contiguous CUDA workspace (eliminating 16,000+ `cudaMalloc`/`cudaFree` calls), fuses `SwiGLU + ConvRot64 + Rowwise INT8 Quantize` in `MLP.fc2`, and runs zero-transpose `NHD` `sageattn_qk_int8_pv_fp16_cuda`.
   * **Floor 2 & 3 (Bi-Time Intrinsic Flow & Boundary-Pinned Trunk Splitting)**: Evaluates exact boundary blocks and `FinalLayer` on the live Step-$k$ state while bridging the interior trunk via modality-decoupled Bi-Time Secant extrapolation along $(t_v, t_a)$.
   * **Floor 5 (Zero-Recompute Step-0 Constant Folding)**: Folds `PackedLayout`, `rope_rotation_table`, `TokenRefiner(condition_proj(text_states))`, and `video_patch_proj(cond_video_rows)` into Step-0 constants (`0.0 ms` overhead on Steps `1..19`).

---

## โ˜• Support Our Research & Request Custom Model Quantization

We release **`MiniMax-H3-Rung-Omega`** and **`TheoremFlow-ฮฉ`** openly with zero gated access barriers so the community can run high-fidelity multimodal Video+Audio generation faster and in smaller VRAM footprints.

### ๐ŸŽฏ Want Another Model Quantized? (`Rung ฮฉ` + `TheoremFlow-ฮฉ`)
Have a large Video/Audio Diffusion Transformer (Wan, HunyuanVideo, LTX, Sora-class DiT) or LLM you want compressed to **`Rung ฮฉ` (`3-Trit` / `4-Trit` / `5-Trit` Base-243)** with **`TheoremFlow-ฮฉ` acceleration**?
1. **โšก Priority Supporter Queue**: Leave the target model name in your [**Buy Me a Coffee support note (`buymeacoffee.com/tripleyoung`)**](https://buymeacoffee.com/tripleyoung) โ€” supporter requests are prioritized first!
2. **๐Ÿ’ฌ Community Channel & Model Requests**: Open a discussion thread anytime in the [**Hugging Face Community Tab (`Discussions`)**](https://huggingface.co/yeowon/MiniMax-H3-Rung-Omega/discussions) to request models, ask questions, or talk directly with us.

<p align="left">
  <a href="https://buymeacoffee.com/tripleyoung" target="_blank">
    <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="50" />
  </a>
</p>

* **โ˜• Buy Me a Coffee (Global Support & Priority Requests)**: [https://buymeacoffee.com/tripleyoung](https://buymeacoffee.com/tripleyoung)
* **๐Ÿ’› KakaoPay QR Transfer (ํ•œ๊ตญ ์นด์นด์˜คํŽ˜์ด QR ์†ก๊ธˆ ํ›„์›)**: [https://qr.kakaopay.com/FVgCIrWbX](https://qr.kakaopay.com/FVgCIrWbX)
* **๐Ÿฆ Korean Bank Transfer (๊ตญ๋‚ด ๊ณ„์ขŒ์ด์ฒด ํ›„์›)**: `NH๋†ํ˜‘(๋†์ถ•ํ˜‘) 352-1556-0640-33 (์˜ˆ๊ธˆ์ฃผ: ์œค์—ฌ์›)`
* **๐Ÿ’ฌ Community & Model Request Board**: [https://huggingface.co/yeowon/MiniMax-H3-Rung-Omega/discussions](https://huggingface.co/yeowon/MiniMax-H3-Rung-Omega/discussions)

<p align="center">
  <a href="https://qr.kakaopay.com/FVgCIrWbX" target="_blank">
    <img src="https://huggingface.co/yeowon/MiniMax-H3-Rung-Omega/resolve/main/assets/kakaopay_qr.jpg" width="160" alt="KakaoPay QR Transfer (์œค์—ฌ์›)" style="border-radius: 12px; border: 1px solid #e5e7eb;" />
  </a>
</p>