final.checkpoint-17500 has the best free-running acoustic top-1 by 0.009 percentage point.from_pretrained loader is not present yet.V4 replaces the seven independent acoustic readouts with a causal decoder across RVQ depth.
At step 17,500, relative to v3:
| Metric | v3 | v4 free-running | Change |
|---|---|---|---|
| semantic top-1 | 43.03% | 43.16% | +0.13 pp |
| semantic top-5 | 80.48% | 80.51% | +0.03 pp |
| acoustic top-1 | 7.65% | 7.30% | -0.35 pp |
| acoustic top-5 | 22.02% | 19.88% | -2.14 pp |
V4 teacher-forced acoustic accuracy at the same step:
| Metric | Free-running | Teacher-forced |
|---|---|---|
| acoustic top-1 | 7.30% | 18.42% |
| acoustic top-5 | 19.88% | 44.54% |
The decoder learned strong conditional distributions. Greedy error propagation lowers exact agreement with the one sampled label sequence.
That exact-match result is not the primary outcome. The RVQ code space is redundant. Multiple code tuples can produce the same downstream conditioning.
Condition-embedding replay through the official LM and RVQ depth decoder:
| Model | Mean cosine | Change from v3 |
|---|---|---|
| v3 | 0.770259 | - |
| v4 | 0.874796 | +0.104537 |
V4 is substantially more functionally correct by the downstream metric. Exact sampled-token accuracy is a weak proxy for that result.
V4 loss is conditional on true previous codebooks. It is not directly comparable to the independent-head v1-v3 loss.
Approximate the missing audio-to-RVQ path used by MiniMax Music 3.
44.1 kHz waveform
-> frozen DAV / Flow-VAE encoder
-> 128-channel DAV latents
-> shared audio encoder
-> semantic distribution
-> causal RVQ-depth decoder
-> 7 acoustic distributions
| Head | Role | Vocabulary |
|---|---|---|
| 0 | semantic | 16,384 |
| 1-7 | acoustic | 1,024 each |
The downstream path replays selected codes through the MiniMax Music 3 language model, official RVQ depth decoder, condition encoder, diffusion transformer, and DAV decoder.
Exported parameters: 169,008,576.
| Component | Configuration | Parameters |
|---|---|---|
| DAV latent input stem | Conv1d, 128 -> 1,088, kernel 7 | 975,936 |
| Local residual stack | 3 blocks, dilations 1/3/9 | 14,217,984 |
| Position embedding | learned, 128 x 1,088 | 139,264 |
| Shared Transformer | 8 pre-norm layers, width 1,088, 17 heads, FFN 4,352 | 113,752,576 |
| Final normalization | LayerNorm(1,088) | 2,176 |
| Semantic readout | mup.MuReadout, 1,088 -> 16,384 |
17,842,176 |
| Causal depth decoder | width 512, 8 heads, 2 layers, FFN 2,048 | 22,078,464 |
Shared audio processing:
Context: 128 frames, or 5.12 seconds. There is no cross-window state.
The per-sample pool matrix preserves stitched-chunk alignment. It is not a fixed-ratio resampler.
The depth decoder operates independently for each audio frame.
Configuration:
Sequence for acoustic book k:
[projected audio context, semantic code, acoustic code 1, ..., acoustic code k-1]
Training uses true earlier codes. Inference uses argmax predictions from earlier books.
The causal mask prevents access to later codebooks. The decoder is autoregressive across RVQ depth, not across time.
| Version | Parameters | Change |
|---|---|---|
| v1 | 40,978,944 | 512-wide baseline |
| v2 | 154,736,064 | shared width increased to 1,088 |
| v3 | 154,736,064 | v2 plus training-only MERT alignment |
| v4 | 169,008,576 | v2 shared encoder plus causal depth decoder |
V3 showed only a small gain from MERT alignment. V2 and v3 showed a monotonic top-1 decline across acoustic codebook depth. V4 tests whether conditioning book k on books < k removes that decline.
The teacher-forced result confirms the conditional-dependence diagnosis. The free-running result exposes a second problem: training and inference histories differ.
Package: microsoft/mup.
Shared encoder shape family:
| Model | Width | Heads | Head dimension |
|---|---|---|---|
| base | 128 | 2 | 64 |
| delta | 256 | 4 | 64 |
| target | 1,088 | 17 | 64 |
Depth topology is present in base, delta, and target shape models. Depth width remains fixed at 512.
Initialization order:
mup.set_base_shapes before optimizer construction.mup.MuAdamW after infshapes are attached.V1-v3 encoder-only shape files are rejected for v4.
Semantic readout:
mup.MuReadout;The fixed-width depth decoder uses standard linear layers except for the 1,088 -> 512 context projection, which is a nonzero-initialized mup.MuReadout.
Shared attention score scale: 8 / head_dim. At head dimension 64 this is 1/8.
Seed: 42, device-specific under DDP.
Dataset: bghira/minimax-music3-rvq-reverse-distillation.
Run snapshot:
Trainer inputs:
Waveforms are re-encoded with SimpleTuner/MiniMax-Music-3-Encoder. DAV latents are cached once. Window reads use safetensors.safe_open(...).get_slice(...).
Stored flow-VAE latents in the dataset are not consumed.
DAV hop: 512 samples at 44.1 kHz.
Frame center:
((latent_start + latent_end) / 2) * 512 / 44100 seconds
Stitched rollout rules:
i uses code row i + 1;chunk_stitching metadata are excluded.loss = mean(CE_head_0 ... CE_head_7)
+ 0.25 * mean(KL_head_0 ... KL_head_7)
For heads 1 through 7, logits are teacher-forced on true previous codebooks during training and loss evaluation.
Hard targets:
-100.Soft targets:
T^2 scaling;| Setting | Value |
|---|---|
| Hardware | 4 x NVIDIA L40S |
| Distribution | PyTorch DDP through Accelerate |
| Precision | bfloat16 mixed precision |
| Epochs | 20 |
| Optimizer steps | 17,660 |
| Batch per rank | 16 |
| Global batch | 64 |
| Gradient accumulation | 1 |
| Optimizer | mup.MuAdamW |
| Learning rate | 3e-4 |
| Weight decay | 0.01 |
| LR schedule | polynomial, power 1.0 |
| Linear warmup | 500 steps |
| Final learning rate | 1e-7 |
| Gradient norm limit | 1.0 |
| Train crop | random 128-frame window |
| Validation crop | deterministic 128-frame windows |
| Validation interval | 500 steps |
| Checkpoint interval | 500 steps |
The learning-rate multiplier warms linearly for 500 steps, then decays linearly to the final learning rate. It does not restart or reheat.
Training metrics: Weights & Biases.
Representative command:
accelerate launch --num_processes 4 scripts/train_minimax_music_rvq_encoder.py \
--dataset_repo_id bghira/minimax-music3-rvq-reverse-distillation \
--pretrained_vae_model_name_or_path SimpleTuner/MiniMax-Music-3-Encoder \
--latent_cache_dir cache/vae/minimaxmusic-rvq-encoder \
--output_dir output/minimaxmusic-rvq-encoder-169m-v4 \
--d_model 1088 --layers 8 --heads 17 --ff_mult 4 \
--depth_decoder --depth_decoder_dim 512 --depth_decoder_layers 2 \
--depth_decoder_heads 8 --depth_decoder_ff_mult 4 \
--mup --mup_readout_zero_init --optimizer torch-adamw \
--learning_rate 3e-4 --lr_scheduler polynomial --lr_warmup_steps 500 \
--lr_end 1e-7 --lr_power 1.0 --weight_decay 0.01 \
--teacher_kl_weight 0.25 --teacher_kl_temperature 1.0 \
--train_batch_size 16 --validation_batch_size 16 --num_train_epochs 20 \
--mixed_precision bf16 --require_exact_alignment \
--report_to wandb --tracker_project_name simpletuner-rvq-encoder \
--push_to_hub SimpleTuner/open-rvq-encoder-minimax-music3-169m-v4
| File | Contents |
|---|---|
rvq_encoder.safetensors |
exported encoder and depth-decoder state dictionary |
rvq_encoder_config.json |
architecture and muP configuration |
mup_base_shapes.bsh |
exported depth-topology muP base shapes |
mup_base_shapes.bsh.meta.json |
shape scope and depth configuration |
Loading currently requires RVQEncoderConfig and MiniMaxMusicRVQEncoder from scripts/train_minimax_music_rvq_encoder.py.
Protocol:
final;Final checkpoint:
| Metric | Free-running | Teacher-forced |
|---|---|---|
| semantic top-1 | 43.17% | 43.17% |
| semantic top-5 | 80.51% | 80.51% |
| acoustic top-1 | 7.29% | 18.42% |
| acoustic top-5 | 19.88% | 44.55% |
Conditional final loss:
| Metric | Value |
|---|---|
| total | 3.987436 |
| hard CE | 3.514642 |
| teacher KL before 0.25 weighting | 1.891180 |
Top-k accuracy measures exact token inclusion. It does not measure perceptual code equivalence.
Machine-readable comparison: comparison-metrics.json.
Protocol:
| Model | Parameters | Mean cosine | Standard deviation | 5th-95th percentile |
|---|---|---|---|---|
| Serveurperso v1 | 40,978,944 | 0.663329 | 0.022175 | 0.628052-0.696328 |
| SimpleTuner v1 | 40,978,944 | 0.762442 | 0.019550 | 0.734519-0.790450 |
| SimpleTuner v2 | 154,736,064 | 0.769841 | 0.019063 | 0.742991-0.798636 |
| SimpleTuner v3 | 154,736,064 | 0.770259 | 0.019274 | 0.741585-0.800492 |
| SimpleTuner v4 | 169,008,576 | 0.874796 | 0.015662 | 0.845350-0.893839 |
| True-code control | - | 0.999907 | 0.000150 | 0.999821-0.999950 |
V4 adds 0.104537 mean cosine over v3. Its 5th-percentile track exceeds the best v3 track in this holdout. The depth decoder therefore improves code-tuple compatibility even though exact agreement with the sampled tokens declines slightly.
This test stops before diffusion and DAV decode. It is not an STFT, waveform, lyric-identity, or listening score.
Data: combined-aggregate.json, provenance.json, and raw per-record metrics.
Primary discussion: MiniMaxAI/MiniMax-Music3 discussion #10.
Attribution covers public discussion, measurements, datasets, and independent experiments. It does not imply shared authorship.
bghira: SimpleTuner experiments, trace extraction, teacher distributions, alignment records, corpus publication, and training runs.marduk191: WAV/code samples, early mel encoder proof, corpus-scale observations, and encoder experiments.scragnog: SimpleTuner calibration, relative-weight analysis, caption-cache and rollout-seam findings, and GGML interoperability tests.Serveurperso: independent encoder, corpus generator, replay evaluation, and stitched-timeline findings.dernet: RVQ supervision, internal-alignment, and tokenizer reverse-engineering analysis.Related artifacts:
SimpleTuner/open-rvq-encoder-minimax-music3-41m-v1SimpleTuner/open-rvq-encoder-minimax-music3-155m-v2SimpleTuner/open-rvq-encoder-minimax-music3-155m-v3marduk191/Minmax_music3_experimentsServeurpersoCom/minimaxmusic.cpp proof commitExact-alignment holdout: 130 tracks, 2,768 windows.
| Selection | Checkpoint | Step | Loss | Semantic top-1 | Semantic top-5 | Acoustic top-1 | Acoustic top-5 |
|---|---|---|---|---|---|---|---|
| lowest loss; best semantic top-1; final | final |
17,660 | 3.987436 | 0.4317 | 0.8051 | 0.0729 | 0.1988 |
| best acoustic top-1 | checkpoint-17500 |
17,500 | 3.988227 | 0.4316 | 0.8051 | 0.0730 | 0.1988 |
Top-k accuracy measures exact token inclusion. It does not measure perceptual code equivalence.
Full data: checkpoint-metrics.csv, evaluation-metrics.json, and comparison-metrics.json.
有文件?提交种子。
发布种子best/checkpoint-1000/rvq_encoder.safetensors 676 MBbest/checkpoint-10000/rvq_encoder.safetensors 676 MBbest/checkpoint-10500/rvq_encoder.safetensors 676 MBbest/checkpoint-11000/rvq_encoder.safetensors 676 MBbest/checkpoint-11500/rvq_encoder.safetensors 676 MBbest/checkpoint-12000/rvq_encoder.safetensors 676 MBbest/checkpoint-12500/rvq_encoder.safetensors 676 MBbest/checkpoint-13000/rvq_encoder.safetensors 676 MBbest/checkpoint-13500/rvq_encoder.safetensors 676 MBbest/checkpoint-14000/rvq_encoder.safetensors 676 MBbest/checkpoint-14500/rvq_encoder.safetensors 676 MBbest/checkpoint-1500/rvq_encoder.safetensors 676 MBbest/checkpoint-15000/rvq_encoder.safetensors 676 MBbest/checkpoint-15500/rvq_encoder.safetensors 676 MBbest/checkpoint-16000/rvq_encoder.safetensors 676 MBbest/checkpoint-16500/rvq_encoder.safetensors 676 MBbest/checkpoint-17000/rvq_encoder.safetensors 676 MBbest/checkpoint-17500/rvq_encoder.safetensors 676 MBbest/checkpoint-2000/rvq_encoder.safetensors 676 MBbest/checkpoint-2500/rvq_encoder.safetensors 676 MBbest/checkpoint-3000/rvq_encoder.safetensors 676 MBbest/checkpoint-3500/rvq_encoder.safetensors 676 MBbest/checkpoint-4000/rvq_encoder.safetensors 676 MBbest/checkpoint-4500/rvq_encoder.safetensors 676 MBbest/checkpoint-500/rvq_encoder.safetensors 676 MBbest/checkpoint-5000/rvq_encoder.safetensors 676 MBbest/checkpoint-5500/rvq_encoder.safetensors 676 MBbest/checkpoint-6000/rvq_encoder.safetensors 676 MBbest/checkpoint-6500/rvq_encoder.safetensors 676 MBbest/checkpoint-7000/rvq_encoder.safetensors 676 MBbest/checkpoint-7500/rvq_encoder.safetensors 676 MBbest/checkpoint-8000/rvq_encoder.safetensors 676 MBbest/checkpoint-8500/rvq_encoder.safetensors 676 MBbest/checkpoint-9000/rvq_encoder.safetensors 676 MBbest/checkpoint-9500/rvq_encoder.safetensors 676 MBcheckpoint-1000/rvq_encoder.safetensors 676 MBcheckpoint-10000/rvq_encoder.safetensors 676 MBcheckpoint-10500/rvq_encoder.safetensors 676 MBcheckpoint-11000/rvq_encoder.safetensors 676 MBcheckpoint-11500/rvq_encoder.safetensors 676 MBcheckpoint-12000/rvq_encoder.safetensors 676 MBcheckpoint-12500/rvq_encoder.safetensors 676 MBcheckpoint-13000/rvq_encoder.safetensors 676 MBcheckpoint-13500/rvq_encoder.safetensors 676 MBcheckpoint-14000/rvq_encoder.safetensors 676 MBcheckpoint-14500/rvq_encoder.safetensors 676 MBcheckpoint-1500/rvq_encoder.safetensors 676 MBcheckpoint-15000/rvq_encoder.safetensors 676 MBcheckpoint-15500/rvq_encoder.safetensors 676 MBcheckpoint-16000/rvq_encoder.safetensors 676 MBcheckpoint-16500/rvq_encoder.safetensors 676 MBcheckpoint-17000/rvq_encoder.safetensors 676 MBcheckpoint-17500/rvq_encoder.safetensors 676 MBcheckpoint-2000/rvq_encoder.safetensors 676 MBcheckpoint-2500/rvq_encoder.safetensors 676 MBcheckpoint-3000/rvq_encoder.safetensors 676 MBcheckpoint-3500/rvq_encoder.safetensors 676 MBcheckpoint-4000/rvq_encoder.safetensors 676 MBcheckpoint-4500/rvq_encoder.safetensors 676 MBcheckpoint-500/rvq_encoder.safetensors 676 MBcheckpoint-5000/rvq_encoder.safetensors 676 MBcheckpoint-5500/rvq_encoder.safetensors 676 MBcheckpoint-6000/rvq_encoder.safetensors 676 MBcheckpoint-6500/rvq_encoder.safetensors 676 MBcheckpoint-7000/rvq_encoder.safetensors 676 MBcheckpoint-7500/rvq_encoder.safetensors 676 MBcheckpoint-8000/rvq_encoder.safetensors 676 MBcheckpoint-8500/rvq_encoder.safetensors 676 MBcheckpoint-9000/rvq_encoder.safetensors 676 MBcheckpoint-9500/rvq_encoder.safetensors 676 MBfinal/rvq_encoder.safetensors 676 MB