PurpleMusic 500k
This repository contains the final synthesized EMA inference weights for jamendo_music_rewritten_repa02_beta02_ft_500k. The model was initialized from the original-caption PurpleMusic checkpoint at optimizer step 390,900, then fine-tuned on rewritten Jamendo music captions through step 500,000 (109,100 additional steps). The final test samples were generated using this EMA artifact.
Artifact
ema_final.pth: PyTorch state dict for the final synthesized EMA model (post-hoc EMA sigma 0.05).
The full optimizer checkpoint is not included. This is a custom FluxAudio-L/RoPE model, so loading the state dict requires the matching PurpleMusic model code and conditioning pipeline; it is not directly loadable with transformers.pipeline.
Generate a sample in the existing PurpleMusic checkout
These commands assume you are in the PurpleMusic project directory on the machine where the rewritten feature cache and encoder weights are available. The Hugging Face account used for downloading must have access to this private model repository.
hf auth login # only if this machine is not already signed in
hf download hhhhaura/purplemusic-500k ema_final.pth --local-dir weights/checkpoints
hf download hhhhaura/purplemusic-500k infer_rewritten_final.yaml --local-dir config
.venv/bin/python infer.py --config-path config --config-name infer_rewritten_final.yaml
The example writes a WAV under output/rewritten-final/. Edit generation.prompt and generation.seed in config/infer_rewritten_final.yaml to generate another sample, then run the last command again. infer.py reads its settings from YAML, not command-line overrides. The example uses 25 Euler sampling steps, CFG 4.5, and a 9.975-second target duration.
The example YAML points to the completed rewritten cache at .cache/jamendo_music_rewritten/1c06a48fa8c713bb3a3e5605e38e5ebee26aff2560409e70e63c9950135ca036/. That cache supplies encoders.yaml, latent_mean.pt, latent_std.pt, and empty-condition embeddings. encoders.yaml also references the FLAN-T5 Large model, music-only LAION CLAP checkpoint, and ACE-Step Oobleck codec. On another machine, copy or regenerate those assets and update the paths in the YAML and encoders.yaml before inference. The model weights alone cannot encode text or decode audio.
Configuration
- Architecture: FluxAudio-L with RoPE and REPA, approximately 450.5 million parameters; latent dimension 64, hidden dimension 896, depth 12, fused depth 10, 7 attention heads, 250 latent frames for a 10-second clip.
- Audio codec: ACE-Step Oobleck; generated audio uses 48 kHz output.
- Text conditioning: FLAN-T5 Large sequence embeddings and music-only LAION CLAP global embeddings.
- REPA alpha 2.0, gamma/repa weight 0.2; Beta timestep lambda 0.2. These settings were preserved during fine-tuning.
- Validation loss at step 499,999: 1.01604. No final CLAP score or FAD is claimed here.
Training used Jamendo music audio with rewritten captions. Check dataset terms and music rights before downstream redistribution or commercial use.