Instructions to use batteryphil/ACE-Step-1.5-XL-Turbo-PRIME-Quant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use batteryphil/ACE-Step-1.5-XL-Turbo-PRIME-Quant with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("batteryphil/ACE-Step-1.5-XL-Turbo-PRIME-Quant", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
ACE-Step v1.5 XL Turbo β PRIME-Quant (100% V3_P4_0, Zero CPU Offload)
A 100% 4-bit Prime-Harmonic (V3_P4_0) quantization of ACE-Step/acestep-v15-xl-turbo-diffusers (4.17B Music DiT + ConditionEncoder + Qwen3-Embedding-0.6B, upstream MIT license) built with PRIME-Quant (@batteryphil).
Compresses the ~11.11 GB BF16 music generation stack down to 3.03 GB of compressed weights (3.31 GB total GPU-resident including the 48 kHz stereo AutoencoderOobleck VAE β 3.67Γ smaller), generating full 48 kHz stereo songs with vocals and lyrics completely GPU-resident with zero CPU offload on 8β16 GB AMD ROCm or NVIDIA CUDA GPUs.
Verified Benchmark Results (AMD RX 9060 XT 16 GB, ROCm 7.2)
All measurements freshly executed across 3 diverse 30-second 48 kHz stereo tracks (synthwave rock w/ vocals, acoustic ballad w/ female vocals, orchestral cinematic score), 8 turbo steps (benchmarks/acestep_xl_bf16_vs_prime_benchmark.json):
| Metric | BF16 Baseline (Model CPU Offload) | PRIME-Quant (100% V3_P4_0, Zero CPU Offload) |
|---|---|---|
| Compressed Weights on Disk | ~10.75 GB (11.11 GB w/ VAE) |
3.03 GB (335 MB Qwen3 + 344 MB CondEnc + 2.35 GB 4.17B DiT β 3.55Γ smaller) |
| Quantized Linear Coverage | 0 / 643 |
643 / 643 (100% of Linear/Embedding matrices) |
| Total GPU-Resident Footprint | Requires CPU offload on 16 GB* | 3,305.7 MB (3.31 GB) (all 4 components resident!) |
Peak PyTorch VRAM (30s @ 48 kHz) |
8,322.3 MB |
7,161.5 MB (zero CPU offload, loads in 3.33 s!) |
| Warm Time / 30s Stereo Song | 24.77 s (454.9 s cold #1) |
19.04 s (1.30Γ faster) (all 8 DiT steps finish in 1.56 s β 2.2Γ faster DiT!) |
| Audio Parity vs. BF16 (3-Song Mean) | Reference | Mel SSIM 0.9331, Mel PSNR 20.97 dB, STFT Cosine 0.8775, Pitch Chroma 0.8682 |
*Without CPU offload, 11.11 GB BF16 starves AutoencoderOobleck 1D-conv MIOpen workspace on 16 GB desktop GPUs.
Per-Track Audio Fidelity & Stereo Mel-Spectrogram Parity
| Track (30s @ 48 kHz Stereo) | Mel PSNR | Mel SSIM | STFT Mag Cos | Pitch Chroma Cos | Loudness RMS Ξ |
|---|---|---|---|---|---|
01_synthwave_rock_vocal (male vocal + drums + synths) |
24.59 dB |
0.9765 |
0.8985 |
0.9157 |
-0.15 dB |
02_acoustic_ballad_vocal (female vocal + guitar + cello) |
19.29 dB |
0.9031 |
0.8732 |
0.8243 |
-0.08 dB |
03_orchestral_cinematic (brass + strings + taiko) |
19.04 dB |
0.9196 |
0.8609 |
0.8646 |
+0.65 dB |
(Full 48 kHz stereo .wav pairs for every track are included in benchmarks/ for direct listening comparisons!)
Quantization Architecture Highlights
- Verified Exact Zero-Overhead GQA
H_128Walsh-Hadamard Rotations across All 3 Models:Qwen3-Embedding-0.6B(16Q/8KV):52.6 dBverified BF16 invariance (22.55 dBmean weight SNR).AceStepConditionEncoder(16Q/8KVacross 8 lyric + 4 timbre layers):46.0 dBverified invariance (22.57 dBmean SNR).4.17BAceStepTransformer1DModel(32Q/8KVacross all 32 self-attn + cross-attn blocks):48.4 dBverified invariance (22.45 dBmean /21.79 dBfloor weight SNR).
- Dual-Timestep & Cross-Modal
PRIMALConditioning:time_embed(t β [0,1]):43.86 dBSNR;time_embed_r(t - rwith 1,024 exact0.0anchor samples):32.14 dBSNR.- Co-Adapted
condition_embedderPRIMAL: lifts end-to-end 4-bit text+lyric+timbre conditioning from10.57 dBβ11.88 dB.
Quickstart (Standalone β Zero Extra Repos Required)
pip install -r requirements.txt
TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1 \
python run_acestep_prime.py \
--prompt "Upbeat synthwave rock track with punchy analog drums, driving electric bass, shimmering neon arpeggios, male lead vocal" \
--lyrics "[verse]\nDriving through the neon rain tonight\n[chorus]\nTurning up the sound until the dawn" \
--duration 30 --bpm 120 --keyscale "A minor" --steps 8 --seed 42 \
--output synthwave_prime.wav
Licensing & Attribution
- PRIME-Quant checkpoints & standalone runtime (
prime_infer_runtime.py,run_acestep_prime.py): Copyright (c) 2026 Philip Bartsch (@batteryphil), licensed under the Bartsch Personal-Free & 5% Commercial Profit-Share License v1.0 (free for personal, research, academic, and non-profit use). - Upstream Base Model (
ACE-Step v1.5 XL Turbo): MIT License by the ACE-Step Team β see NOTICE.
- Downloads last month
- -
Model tree for batteryphil/ACE-Step-1.5-XL-Turbo-PRIME-Quant
Base model
ACE-Step/acestep-v15-xl-turbo
