Link MidiGen training code on GitHub
Browse files16 unmodified lines17181920212255 unmodified lines787980818283841 unmodified line86878889909116 unmodified linesprompt as multitrack symbolic music. It generates notes for a MIDI file, whichcan be edited in a sequencer or played through a synthesizer.## Generate a MIDI fileUse Python 3.10 or newer; `requirements.txt` requires PyTorch 2.9 or newer.55 unmodified lines175,342,558 note events**, and its held-out split contains 1,391 songs and5,002,480 note events. Fine-tuning ran for three epochs with 0.1 dropout onembeddings, residual connections and feed-forward layers. Attention-weightdropout stayed at zero so that training could use PyTorch FlexAttention. The checkpoint with the lowest validation loss was saved at step 8,028.On the Guitar Pro held-out split, the released model's next-event validationloss is 0.7555, down from about 0.834 for the pretrained checkpoint. The loss1 unmodified linemeasures how well the model predicts held-out music, not how good its outputsounds.## Data and release termsThe [Creative Commons Attribution-NonCommercial 4.0 International licence](LICENSE)16 unmodified lines17181920212223242555 unmodified lines818283848586871 unmodified line8990919293949596979816 unmodified linesprompt as multitrack symbolic music. It generates notes for a MIDI file, whichcan be edited in a sequencer or played through a synthesizer.Training code, dataset builders and deployment scripts are on GitHub at[8mind/midigen](https://github.com/8mind/midigen).## Generate a MIDI fileUse Python 3.10 or newer; `requirements.txt` requires PyTorch 2.9 or newer.55 unmodified lines175,342,558 note events**, and its held-out split contains 1,391 songs and5,002,480 note events. Fine-tuning ran for three epochs with 0.1 dropout onembeddings, residual connections and feed-forward layers. Attention-weightdropout stayed at zero so that training could use PyTorch FlexAttention. The checkpoint with the lowest validation loss was saved at step 8,028 and is the released model.On the Guitar Pro held-out split, the released model's next-event validationloss is 0.7555, down from about 0.834 for the pretrained checkpoint. The loss1 unmodified linemeasures how well the model predicts held-out music, not how good its outputsounds.The training pipeline, including the GigaMIDI and Guitar Pro dataset buildersand the pretraining and fine-tuning wrappers, is in the[GitHub repository](https://github.com/8mind/midigen).## Data and release termsThe [Creative Commons Attribution-NonCommercial 4.0 International licence](LICENSE)
README.md+8-1