ACE-Step 1.5 XL turbo (4B) for music-gen (ONNX)
This is the ACE-Step 1.5 XL turbo model (the 4B DiT: 8 steps, no CFG) converted to ONNX: its condition encoder (FP32) and its DiT (BF16 inside, with FP32 inputs and output). It's made for music-gen, a local ACE-Step 1.5 text-to-music runner on ONNX Runtime and CUDA. A whole pipeline also needs:
music-gen-qwen3-embedding-0.6b-onnx, the caption and lyric encoders;music-gen-ace-step-v15-vae-onnx, the VAE and silence latent.
The source is ACE-Step/acestep-v15-xl-turbo at revision
d4a0b288b83ebb7e25a8c0b32c573c22e134e8ee, run with the modeling code shipped beside it.
Files
condition_xl_turbo.onnx (+ .data, 2.4 GB, FP32): XL's condition encoder, with the same
inputs, outputs and limits as the 2B's (see music-gen-ace-step-v15-turbo-onnx). XL's timbre
encoder prepends a CLS token; that's inside the graph.
dit_xl_turbo.onnx (+ .data, 8.3 GB, BF16 inside):
- Inputs:
hidden_states[1, T, 64],timestep[1],encoder_hidden_states[1, E, 2048],context_latents[1, T, 128]. - Output:
velocity[1, T, 64]. - Limits: T even, 16–15000; E 2–4096.
- Fits on a 24 GB GPU up to about 7 minutes (T 10500); see Memory.
SHA256SUMS lists every file's sha256. Sampling is the same as the 2B turbo's: the shift-3 turbo
schedule, Euler steps, and x0 at the last step.
Precision
- Why not FP16: XL overflows in FP16. Its residual stream passes 65504 in the first layer, in PyTorch too.
- Why not FP32: about 16 GB of weights would leave no room for a long piece's activations.
- So BF16, as upstream runs it on CUDA, with two exceptions:
- The attention scores and softmax run in FP32. Split into ONNX ops, BF16 scores made long sequences 2–3 times less accurate than upstream; upstream's fused kernel keeps them in FP32 inside.
- The two patch convolutions (
proj_in,proj_out) run in FP32, because ONNX'sConvtakes no BF16 at opset 18.
Accuracy
The FP32 condition encoder against PyTorch FP32: 9.7e-9 on unpadded inputs, 3.9–4.1e-7 with padding.
The BF16 DiT against PyTorch FP32, relative RMS error. Upstream's own BF16 is the yardstick, and our graph has to stay within 1.5 times it to pass:
| Case | This graph | Upstream's BF16 |
|---|---|---|
| T=200, E=86 | 4.5e-2 | 4.4e-2 |
| T=750, E=86 | 4.9e-2 | 4.5e-2 |
| T=750, E=300 | 6.4e-2 | 6.6e-2 |
| T=1500, E=40 | 4.6e-2 | 4.1e-2 |
Memory and speed (RTX 3090, 24 GB)
| Length | Time | Peak |
|---|---|---|
| 30 s | 8–9 s, loading included | 9.5–11.6 GB |
| 3 min | 13.5 s | 15.3 GB |
| 5 min | 20.5 s | 22.9 GB |
| 7 min | 29.5 s | 20.8 GB |
| 8 min | 33.5 s | 24.1 GB (at the limit) |
| 9 min | fails |
The FP32 attention scores grow as 32 heads × T²/4. For pieces longer than 7 minutes on a 24 GB GPU, use the 2B turbo, which goes to 10.
How it was made
The scripts are included in export/:
condition.pyis the same as for the 2B.dit.pyis run withbf16. It loads the checkpoint in BF16, registers an attention function with FP32 scores and softmax, and wraps the two convolutions in FP32. It exports withtorch.onnx.export(dynamo=True)at opset 18 and checks the result against PyTorch FP32 and BF16, each stage in its own process.
Packages: torch 2.10.0+cu128, transformers 4.57.6, accelerate 1.13.0, onnx 1.23.2, onnxscript 0.7.2, onnxruntime-gpu 1.24.4.
Licence and changes
MIT (LICENSE), as the original, copyright (c) 2026 ACEStep. Changed: converted from
safetensors to ONNX; the condition encoder and DiT were split out of the model and wrapped as
described above; the DiT's weights were cast to BF16, with attention scores and the two
convolutions in FP32. Nothing was retrained or quantised further.
@misc{gong2026acestep,
title={ACE-Step 1.5: Pushing the Boundaries of Open-Source Music Generation},
author={Junmin Gong, Yulin Song, Wenxiao Zhao, Sen Wang, Shengyuan Xu, Jing Guo},
howpublished={\url{https://github.com/ace-step/ACE-Step-1.5}},
year={2026},
note={GitHub repository}
}