Skip to content

Add native MiniMax Music 3 pipeline support - #510

Merged
justinchuby merged 3 commits into
mainfrom
copilot/minimax-music3
Aug 18, 2026
Merged

justinchuby merged 3 commits into
mainfrom
copilot/minimax-music3

Conversation

@justinchuby

Copy link
Copy Markdown
Member

Summary

  • recognize MiniMax-Music3 modular diffusers indexes and resolve component repository, revision, and subfolder metadata
  • export the Qwen3 language model, RVQ depth decoder, condition encoder, 1D flow transformer, and stereo vocoder as native ONNX graphs
  • add exact BF16-safe partial RoPE, RVQ feedback, floor-rate interpolation, Snake activation, and weight-normalization fusion
  • add tiny runtime, graph, config, weight-alignment, builder, and schema coverage

Validation

  • python3 -m pytest src/mobius/models/minimax_music3_test.py src/mobius/_diffusers_builder_test.py tests/yaml_schema_test.py -q --tb=short (339 affected tests passed in the implementation worktree)
  • expanded independent selection: 292 passed, 1396 deselected
  • repository-wide non-integration suite: 3980 passed, 60 skipped; 3 unrelated failures reproduced unchanged on main (Gemma3n/Gemma4 missing inferred audio output shapes and unavailable cached Gemma4 config)
  • Ruff 0.16.2 formatting and lint checks pass for all changed Python files
  • two-pass specialist review completed; BF16 RoPE and modular external-component metadata findings resolved

Waivers

  • L3/L4/L5 and full weighted CLI export are waived: the checkpoint is approximately 11.7B parameters and its reference diffusers implementation remains in unmerged PR #14456. The pinned L2 case records these limits.
  • End-to-end scheduler orchestration and audio generation are not claimed; this PR provides faithful neural component exports and pipeline metadata.

Pinned model revision: fbdf52fbaaca799592917417eb05f1899f1255ec.
Pinned diffusers source: 9cdd65902a576493acea190d6bc115afb41d4709.

Recognize modular diffusers indexes and export the Qwen3 language stage, RVQ depth decoder, condition encoder, 1D flow transformer, and stereo vocoder with faithful configs and weight handling. Add tiny runtime, config, builder, schema, and alignment coverage plus pinned large-model waivers.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 39ff6824-d35f-4d3b-8f5f-043a7119a100
Signed-off-by: GitHub Copilot <[email protected]>
@justinchuby
justinchuby requested review from a team and a lite review from Copilot August 17, 2026 21:08
@CLAassistant

CLAassistant commented Aug 17, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ justinchuby
❌ Copilot
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions

github-actions Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

Performance Comparison

Comparing fd69dc6 → 6d1ba6e

Model Metric Baseline Current Delta
bert (feature-extraction) model_size_bytes 359 KB 359 KB +0.0% ⚪
bert (feature-extraction) num_nodes 60 60 +0.0% ⚪
falcon model_size_bytes 364 KB 364 KB +0.0% ⚪
falcon num_nodes 66 66 +0.0% ⚪
gemma2 model_size_bytes 428 KB 428 KB +0.0% ⚪
gemma2 num_nodes 105 105 +0.0% ⚪
gpt2 model_size_bytes 388 KB 388 KB +0.0% ⚪
gpt2 num_nodes 54 54 +0.0% ⚪
llama model_size_bytes 425 KB 425 KB +0.0% ⚪
llama num_nodes 60 60 +0.0% ⚪
llama (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
llama (static-cache) num_nodes 56 56 +0.0% ⚪
mamba (ssm-text-generation) model_size_bytes 296 KB 296 KB +0.0% ⚪
mamba (ssm-text-generation) num_nodes 94 94 +0.0% ⚪
phi3 model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 num_nodes 58 58 +0.0% ⚪
phi3 (static-cache) model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 (static-cache) num_nodes 54 54 +0.0% ⚪
qwen2 model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 num_nodes 60 60 +0.0% ⚪
qwen2 (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 (static-cache) num_nodes 56 56 +0.0% ⚪
qwen3_5_moe (hybrid-text-generation) model_size_bytes 506 KB 506 KB +0.0% ⚪
qwen3_5_moe (hybrid-text-generation) num_nodes 264 264 +0.0% ⚪
qwen3_5_text (hybrid-text-generation) model_size_bytes 458 KB 458 KB +0.0% ⚪
qwen3_5_text (hybrid-text-generation) num_nodes 126 126 +0.0% ⚪
qwen3_5_vl (hybrid-qwen-vl) model_size_bytes 977 KB 977 KB +0.0% ⚪
qwen3_5_vl (hybrid-qwen-vl) num_nodes 428 428 +0.0% ⚪
t5 (seq2seq) model_size_bytes 836 KB 836 KB +0.0% ⚪
t5 (seq2seq) num_nodes 166 166 +0.0% ⚪
whisper (speech-to-text) model_size_bytes 1008 KB 1008 KB +0.0% ⚪
whisper (speech-to-text) num_nodes 128 128 +0.0% ⚪

No performance regressions.

@github-actions

github-actions Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

🏗️ Architecture Diff

Comparing fd69dc6 → 6d1ba6e

Model Sub-model Changes Status
bert (feature-extraction) model 0 ⚪
falcon model 0 ⚪
gemma2 model 0 ⚪
gemma4 (gemma4) decoder 0 ⚪
gemma4 (gemma4) embedding 0 ⚪
gemma4 (gemma4) vision_encoder 0 ⚪
gemma4_text model 0 ⚪
gpt2 model 0 ⚪
llama model 0 ⚪
llama (static-cache) model 0 ⚪
mamba (ssm-text-generation) model 0 ⚪
phi3 model 0 ⚪
phi3 (static-cache) model 0 ⚪
qwen model 0 ⚪
qwen (static-cache) model 0 ⚪
qwen2 model 0 ⚪
qwen2 (static-cache) model 0 ⚪
qwen2_moe model 0 ⚪
qwen2_moe (static-cache) model 0 ⚪
qwen3 model 0 ⚪
qwen3 (static-cache) model 0 ⚪
qwen3_5_moe (hybrid-text-generation) model 0 ⚪
qwen3_5_text (hybrid-text-generation) model 0 ⚪
qwen3_5_vl (hybrid-qwen-vl) decoder 0 ⚪
qwen3_5_vl (hybrid-qwen-vl) embedding 0 ⚪
qwen3_5_vl (hybrid-qwen-vl) vision_encoder 0 ⚪
qwen3_moe model 0 ⚪
qwen3_moe (static-cache) model 0 ⚪
qwen3_next (hybrid-text-generation) model 0 ⚪
t5 (seq2seq) decoder 0 ⚪
t5 (seq2seq) encoder 0 ⚪
whisper (speech-to-text) decoder 0 ⚪
whisper (speech-to-text) encoder 0 ⚪

No architecture changes detected. ✅


Legend: ⚪ No change · 🔵 Minor (attrs/inits) · 🟡 Moderate (nodes added/removed) · 🔴 Major (interface changed)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds native Mobius support for exporting the MiniMax Music 3 modular diffusers pipeline components as ONNX graphs, including diffusers modular index/component source resolution and corresponding config + runtime/graph tests.

Changes:

  • Add MiniMax Music 3 component model implementations (RVQ depth decoder, condition encoder, 1D flow transformer, stereo vocoder) plus a Qwen3-based language model wrapper and task graph contracts.
  • Extend diffusers pipeline builder to support modular_model_index.json and modular component metadata (external repo/revision/subfolder), including optional metadata downloads with revision.
  • Add schema + builder + runtime/unit tests and a pinned YAML test case for the MiniMax Music 3 pipeline.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
testdata/cases/diffusion/minimax-music3.yaml Adds a pinned MiniMax-Music3 diffusers case (with documented waivers).
src/mobius/tasks/_minimax_music3.py Introduces task graph contracts for MiniMax Music 3 component exports.
src/mobius/tasks/init.py Registers new MiniMax Music 3 tasks and task-name mappings.
src/mobius/models/minimax_music3.py Adds native ONNX-building model components for MiniMax Music 3.
src/mobius/models/minimax_music3_test.py Adds build/runtime/contract tests for the new component exports.
src/mobius/models/init.py Exposes the new MiniMax Music 3 model classes in the public models API.
src/mobius/_diffusers_configs.py Adds MiniMax Music 3 config adapters and pipeline constants.
src/mobius/_diffusers_builder.py Adds modular diffusers index fallback + modular component source resolution (repo/revision/subfolder).
src/mobius/_diffusers_builder_test.py Adds tests for modular index fallback and component source resolution semantics.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/mobius/models/minimax_music3.py Resolved
Comment thread src/mobius/models/minimax_music3.py Resolved
justinchuby and others added 2 commits August 17, 2026 17:53
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Signed-off-by: Justin Chu <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Signed-off-by: Justin Chu <[email protected]>
@justinchuby
justinchuby merged commit 189a19c into main Aug 18, 2026
2 of 3 checks passed
@justinchuby
justinchuby deleted the copilot/minimax-music3 branch August 18, 2026 00:54
@justinchuby justinchuby mentioned this pull request Aug 21, 2026
4 of 10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants