Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
music3: MiniMax Music 3 on one CUDA GPU (AR int8/bf16 frame graph, Di…
…T, DAV), music3-generate and --serve

The AR LM with its depth decoder in a CUDA-graph frame step (warp-a-row GEMVs at the GB10 read
ceiling, SwiGLU fused into gate/up, CFG top-k drawn on the device), int8 weight-only by default
(a scale a row; depth decoder a scale a group of 128); the DiT on tuned cuBLASLt fp16 GEMMs with our
flash attention; the DAV in fp32 tap SGEMMs. --serve speaks a JSON-lines protocol shared with our
Mac MLX engine. Parity vs ComfyUI's native nodes, kernel contract gates 1-4 and gate 5 records,
docs/recipes/minimax-music3-cuda.md with the receipts.
  • Loading branch information
drowzeys committed Oct 17, 2026
commit abe9205a621b4e25bd4e7cf40619210a58fe30c3
1 change: 1 addition & 0 deletions docs/recipes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ For agent-assisted contributions, read the [TensorFold contributor skill](SKILL.
| Gemma 4 26B-A4B | [MLX, fused one-row decode](gemma-4.md) |
| DeepSeek-V4-Flash | [MLX on a 256 GB Mac, DSpark and MTP drafts](deepseek-v4-flash.md) |
| Qwen3.6-35B-A3B | [MLX with MTP drafts, one-GPU CUDA](qwen3.6-moe.md) |
| MiniMax Music 3 (MiniMax-Music3) | [Lyrics and a caption to a song on one CUDA GPU (GB10)](minimax-music3-cuda.md) |

## Capability floor

Expand Down
225 changes: 225 additions & 0 deletions docs/recipes/minimax-music3-cuda.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/recipes/minimax-music3-cuda/lyrics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[["hiphop", 7, "int8", 98, 98, 127, 130], ["pop", 11, "int8", 100, 100, 59, 59], ["long", 5, "int8", 31, 100, 52, 52], ["hiphop", 7, "bf16", 96, 96, 130, 135], ["pop", 11, "bf16", 100, 100, 78, 78], ["long", 5, "bf16", 90, 89, 50, 56], ["comfyui_hiphop60", 0, "comfyui", 96, 96, 159, 166]]
100 changes: 100 additions & 0 deletions docs/recipes/minimax-music3-cuda/parity_cuda_bf16.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"ref": "ref30",
"mine": "pmerge_bf16_0",
"label": "cuda bf16_0",
"prompt_ids_equal": true,
"frame_states": {
"frames": [
750,
750
],
"cos": {
"mean": 0.999956,
"min": 0.999556,
"p01": 0.999909
},
"cos_by_part": [
0.999953,
0.999952,
0.999957,
0.99996,
0.999963,
0.999965,
0.999965,
0.999964
]
},
"c0_logits": {
"frames": 751,
"cos_cond": {
"mean": 0.999977,
"min": 0.999807,
"p01": 0.99992
},
"cos_uncond": {
"mean": 0.999977,
"min": 0.999757,
"p01": 0.999921
},
"greedy_agree_cond": 0.9747,
"greedy_agree_guided": 0.9614,
"top50_overlap": 0.9854,
"ref_drawn_code_rank_mine_median": 1
},
"depth_logits": {
"cos_cond_by_codebook": [
0.999962,
0.999962,
0.999966,
0.999961,
0.999958,
0.999957,
0.999957
],
"greedy_agree_by_codebook": [
0.976,
0.9707,
0.9814,
0.964,
0.976,
0.976,
0.9814
]
},
"dit_probe": {
"1.0": {
"cos_cond": 0.999991,
"cos_uncond": 0.999994,
"rel_err_cond": 0.00447,
"cos_guided_1.7": 0.999986
},
"0.5": {
"cos_cond": 0.999958,
"cos_uncond": 0.999961,
"rel_err_cond": 0.00925,
"cos_guided_1.7": 0.999878
},
"0.1": {
"cos_cond": 0.999987,
"cos_uncond": 0.999987,
"rel_err_cond": 0.0051,
"cos_guided_1.7": 0.999962
}
},
"dit_final_latent": {
"cos": 0.999914,
"snr_db": 37.58
},
"dav_probe": {
"cos": 1.0,
"snr_db": 71.02
},
"dav_waveform": {
"samples": [
1322496,
1322496
],
"cos": 1.0,
"snr_db": 70.95
}
}
100 changes: 100 additions & 0 deletions docs/recipes/minimax-music3-cuda/parity_cuda_int8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"ref": "ref30",
"mine": "pmerge_int8_128",
"label": "cuda int8_128",
"prompt_ids_equal": true,
"frame_states": {
"frames": [
750,
750
],
"cos": {
"mean": 0.999827,
"min": 0.998345,
"p01": 0.999526
},
"cos_by_part": [
0.9998,
0.999814,
0.999833,
0.999848,
0.999859,
0.999866,
0.999868,
0.999868
]
},
"c0_logits": {
"frames": 751,
"cos_cond": {
"mean": 0.999897,
"min": 0.997585,
"p01": 0.999507
},
"cos_uncond": {
"mean": 0.999902,
"min": 0.998932,
"p01": 0.999626
},
"greedy_agree_cond": 0.9667,
"greedy_agree_guided": 0.9561,
"top50_overlap": 0.9799,
"ref_drawn_code_rank_mine_median": 1
},
"depth_logits": {
"cos_cond_by_codebook": [
0.999832,
0.999828,
0.999853,
0.999821,
0.999819,
0.99982,
0.999814
],
"greedy_agree_by_codebook": [
0.9667,
0.9614,
0.9587,
0.9454,
0.9507,
0.9601,
0.9587
]
},
"dit_probe": {
"1.0": {
"cos_cond": 0.999991,
"cos_uncond": 0.999994,
"rel_err_cond": 0.00447,
"cos_guided_1.7": 0.999986
},
"0.5": {
"cos_cond": 0.999958,
"cos_uncond": 0.999961,
"rel_err_cond": 0.00925,
"cos_guided_1.7": 0.999878
},
"0.1": {
"cos_cond": 0.999987,
"cos_uncond": 0.999987,
"rel_err_cond": 0.0051,
"cos_guided_1.7": 0.999962
}
},
"dit_final_latent": {
"cos": 0.999914,
"snr_db": 37.58
},
"dav_probe": {
"cos": 1.0,
"snr_db": 71.02
},
"dav_waveform": {
"samples": [
1322496,
1322496
],
"cos": 1.0,
"snr_db": 70.95
}
}
100 changes: 100 additions & 0 deletions docs/recipes/minimax-music3-cuda/parity_cuda_int8_rowscales.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"ref": "ref30",
"mine": "pmerge_int8_0",
"label": "cuda int8_0",
"prompt_ids_equal": true,
"frame_states": {
"frames": [
750,
750
],
"cos": {
"mean": 0.999519,
"min": 0.99816,
"p01": 0.999156
},
"cos_by_part": [
0.9998,
0.999043,
0.999183,
0.999256,
0.99939,
0.99938,
0.999392,
0.999344
]
},
"c0_logits": {
"frames": 751,
"cos_cond": {
"mean": 0.999897,
"min": 0.997585,
"p01": 0.999507
},
"cos_uncond": {
"mean": 0.999902,
"min": 0.998932,
"p01": 0.999626
},
"greedy_agree_cond": 0.9667,
"greedy_agree_guided": 0.9561,
"top50_overlap": 0.9799,
"ref_drawn_code_rank_mine_median": 1
},
"depth_logits": {
"cos_cond_by_codebook": [
0.999472,
0.999296,
0.999341,
0.999468,
0.999325,
0.999333,
0.999129
],
"greedy_agree_by_codebook": [
0.9374,
0.9095,
0.9308,
0.9268,
0.9294,
0.9081,
0.9334
]
},
"dit_probe": {
"1.0": {
"cos_cond": 0.999991,
"cos_uncond": 0.999994,
"rel_err_cond": 0.00447,
"cos_guided_1.7": 0.999986
},
"0.5": {
"cos_cond": 0.999958,
"cos_uncond": 0.999961,
"rel_err_cond": 0.00925,
"cos_guided_1.7": 0.999878
},
"0.1": {
"cos_cond": 0.999987,
"cos_uncond": 0.999987,
"rel_err_cond": 0.0051,
"cos_guided_1.7": 0.999962
}
},
"dit_final_latent": {
"cos": 0.999914,
"snr_db": 37.58
},
"dav_probe": {
"cos": 1.0,
"snr_db": 71.02
},
"dav_waveform": {
"samples": [
1322496,
1322496
],
"cos": 1.0,
"snr_db": 70.95
}
}
Loading