Orpheus Music Transformer (medium) - ONNX export for MidiEditor AI
An ONNX conversion of the base model of Orpheus Music Transformer by Project Los Angeles / Tegridy Code (asigalov61). It lets the MidiCreator of MidiEditor AI continue, compose and re-pitch MIDI inside the editor with ONNX Runtime, without Python.
All credit for the model belongs to its author. For the original checkpoints, the training code, the user guide and the Space see:
- Original model: https://huggingface.co/asigalov61/Orpheus-Music-Transformer
- Space: https://huggingface.co/spaces/asigalov61/Orpheus-Music-Transformer
- Collection: https://huggingface.co/collections/asigalov61/orpheus-music-transformer
What was changed
Original checkpoint:
Orpheus_Music_Transformer_Trained_Model_128497_steps_0.6934_loss_0.7927_acc.pth
(8 layers, 32 heads). The model was not retrained or fine-tuned. Changes made for this
export:
- The network was rebuilt as one ONNX graph from the checkpoint. Attention uses ONNX
Runtime's
GroupQueryAttentionoperator (domaincom.microsoft) with the rotary embedding inside and one key/value buffer per layer (float16), so the file needs ONNX Runtime and does not load in other ONNX runtimes. - The weights of the matrix multiplications are quantised to 4 bits (block-wise,
MatMulNBits, one scale per 32 weights). This makes the file much smaller than the checkpoint and usable on a CPU; the output is close to, but not identical with, the original model's.
Files
| File | Size | What |
|---|---|---|
orpheus.onnx |
411 MB | the model |
orpheus.json |
1 KB | sizes and token ids |
Use
In MidiEditor AI: MidiCreator > "Models...". To use the model elsewhere, keep both files in one folder.
License
Apache-2.0, as the original model. The conversion is provided as is, without any warranty.
Credit
Orpheus Music Transformer - Project Los Angeles, Tegridy Code 2026: https://huggingface.co/asigalov61/Orpheus-Music-Transformer
Model tree for happytunesai/orpheus-medium-onnx
Base model
asigalov61/Orpheus-Music-Transformer