Skip to content

kog-ai/ACE-Step

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ACE-Step

A Step Towards Music Generation Foundation Model

Project | Hugging Face | ModelScope | Space Demo | Discord

StepFun Logo

Table of Contents

๐Ÿ“ Abstract

We introduce ACE-Step, a novel open-source foundation model for music generation that overcomes key limitations of existing approaches and achieves state-of-the-art performance through a holistic architectural design. Current methods face inherent trade-offs between generation speed, musical coherence, and controllability. For instance, LLM-based models (e.g., Yue, SongGen) excel at lyric alignment but suffer from slow inference and structural artifacts. Diffusion models (e.g., DiffRhythm), on the other hand, enable faster synthesis but often lack long-range structural coherence.

ACE-Step bridges this gap by integrating diffusion-based generation with Sanaโ€™s Deep Compression AutoEncoder (DCAE) and a lightweight linear transformer. It further leverages MERT and m-hubert to align semantic representations (REPA) during training, enabling rapid convergence. As a result, our model synthesizes up to 4 minutes of music in just 20 seconds on an A100 GPUโ€”15ร— faster than LLM-based baselinesโ€”while achieving superior musical coherence and lyric alignment across melody, harmony, and rhythm metrics. Moreover, ACE-Step preserves fine-grained acoustic details, enabling advanced control mechanisms such as voice cloning, lyric editing, remixing, and track generation (e.g., lyric2vocal, singing2accompaniment).

Rather than building yet another end-to-end text-to-music pipeline, our vision is to establish a foundation model for music AI: a fast, general-purpose, efficient yet flexible architecture that makes it easy to train sub-tasks on top of it. This paves the way for developing powerful tools that seamlessly integrate into the creative workflows of music artists, producers, and content creators. In short, we aim to build the Stable Diffusion moment for music.

๐Ÿ“ข News and Updates

  • ๐ŸŽฎ 2025.05.14: Add Stable Audio Open Small sampler pingpong. Use SDE to achieve better music consistency and quality, including lyric alignment and style alignment. Use a better method to re-implement Audio2Audio

  • ๐ŸŽค 2025.05.12: Release RapMachine and fix lora training issues

RapMachine Demo Train Demo

  • ๐Ÿ”ฅ 2025.05.10: Memory Optimization Update
    • Reduced Max VRAM to 8GB, making it more compatible with consumer devices
    • Recommended launch options:
      acestep --torch_compile true --cpu_offload true --overlapped_decode true
      Windows need to install triton:
      pip install triton-windows
      

image

Audio2Audio Demo Audio2Audio ComfyUI

  • ๐Ÿš€ 2025.05.08: ComfyUI_ACE-Step node is now available! Explore the power of ACE-Step within ComfyUI. ๐ŸŽ‰ image

  • ๐Ÿš€ 2025.05.06: Open source demo code and model

โœจ Features

ACE-Step Framework

๐ŸŽฏ Baseline Quality

๐ŸŒˆ Diverse Styles & Genres

  • ๐ŸŽธ Supports all mainstream music styles with various description formats including short tags, descriptive text, or use-case scenarios
  • ๐ŸŽท Capable of generating music across different genres with appropriate instrumentation and style

๐ŸŒ Multiple Languages

  • ๐Ÿ—ฃ๏ธ Supports 19 languages with top 10 well-performing languages including:
    • ๐Ÿ‡บ๐Ÿ‡ธ English, ๐Ÿ‡จ๐Ÿ‡ณ Chinese, ๐Ÿ‡ท๐Ÿ‡บ Russian, ๐Ÿ‡ช๐Ÿ‡ธ Spanish, ๐Ÿ‡ฏ๐Ÿ‡ต Japanese, ๐Ÿ‡ฉ๐Ÿ‡ช German, ๐Ÿ‡ซ๐Ÿ‡ท French, ๐Ÿ‡ต๐Ÿ‡น Portuguese, ๐Ÿ‡ฎ๐Ÿ‡น Italian, ๐Ÿ‡ฐ๐Ÿ‡ท Korean
  • โš ๏ธ Due to data imbalance, less common languages may underperform

๐ŸŽป Instrumental Styles

  • ๐ŸŽน Supports various instrumental music generation across different genres and styles
  • ๐ŸŽบ Capable of producing realistic instrumental tracks with appropriate timbre and expression for each instrument
  • ๐ŸŽผ Can generate complex arrangements with multiple instruments while maintaining musical coherence

๐ŸŽค Vocal Techniques

  • ๐ŸŽ™๏ธ Capable of rendering various vocal styles and techniques with good quality
  • ๐Ÿ—ฃ๏ธ Supports different vocal expressions including various singing techniques and styles

๐ŸŽ›๏ธ Controllability

๐Ÿ”„ Variations Generation

  • โš™๏ธ Implemented using training-free, inference-time optimization techniques
  • ๐ŸŒŠ Flow-matching model generates initial noise, then uses trigFlow's noise formula to add additional Gaussian noise
  • ๐ŸŽš๏ธ Adjustable mixing ratio between original initial noise and new Gaussian noise to control variation degree

๐ŸŽจ Repainting

  • ๐Ÿ–Œ๏ธ Implemented by adding noise to the target audio input and applying mask constraints during the ODE process
  • ๐Ÿ” When input conditions change from the original generation, only specific aspects can be modified while preserving the rest
  • ๐Ÿ”€ Can be combined with Variations Generation techniques to create localized variations in style, lyrics, or vocals

โœ๏ธ Lyric Editing

  • ๐Ÿ’ก Innovatively applies flow-edit technology to enable localized lyric modifications while preserving melody, vocals, and accompaniment
  • ๐Ÿ”„ Works with both generated content and uploaded audio, greatly enhancing creative possibilities
  • โ„น๏ธ Current limitation: can only modify small segments of lyrics at once to avoid distortion, but multiple edits can be applied sequentially

๐Ÿš€ Applications

๐ŸŽค Lyric2Vocal (LoRA)

  • ๐Ÿ”Š Based on a LoRA fine-tuned on pure vocal data, allowing direct generation of vocal samples from lyrics
  • ๐Ÿ› ๏ธ Offers numerous practical applications such as vocal demos, guide tracks, songwriting assistance, and vocal arrangement experimentation
  • โฑ๏ธ Provides a quick way to test how lyrics might sound when sung, helping songwriters iterate faster

๐Ÿ“ Text2Samples (LoRA)

  • ๐ŸŽ›๏ธ Similar to Lyric2Vocal, but fine-tuned on pure instrumental and sample data
  • ๐ŸŽต Capable of generating conceptual music production samples from text descriptions
  • ๐Ÿงฐ Useful for quickly creating instrument loops, sound effects, and musical elements for production

๐Ÿ”ฎ Coming Soon

๐ŸŽค RapMachine

  • ๐Ÿ”ฅ Fine-tuned on pure rap data to create an AI system specialized in rap generation
  • ๐Ÿ† Expected capabilities include AI rap battles and narrative expression through rap
  • ๐Ÿ“š Rap has exceptional storytelling and expressive capabilities, offering extraordinary application potential

๐ŸŽ›๏ธ StemGen

  • ๐ŸŽš๏ธ A controlnet-lora trained on multi-track data to generate individual instrument stems
  • ๐ŸŽฏ Takes a reference track and specified instrument (or instrument reference audio) as input
  • ๐ŸŽน Outputs an instrument stem that complements the reference track, such as creating a piano accompaniment for a flute melody or adding jazz drums to a lead guitar

๐ŸŽค Singing2Accompaniment

  • ๐Ÿ”„ The reverse process of StemGen, generating a mixed master track from a single vocal track
  • ๐ŸŽต Takes a vocal track and specified style as input to produce a complete vocal accompaniment
  • ๐ŸŽธ Creates full instrumental backing that complements the input vocals, making it easy to add professional-sounding accompaniment to any vocal recording

๐Ÿ“‹ Roadmap

  • Release training code ๐Ÿ”ฅ
  • Release LoRA training code ๐Ÿ”ฅ
  • Release RapMachine LoRA ๐ŸŽค
  • Train and Release ACE-Step V1.5
  • Release ControlNet training code ๐Ÿ”ฅ
  • Release Singing2Accompaniment ControlNet ๐ŸŽฎ
  • Release evaluation performance and technical report ๐Ÿ“„

๐Ÿ–ฅ๏ธ Hardware Performance

We have evaluated ACE-Step across different hardware setups, yielding the following throughput results:

Device RTF (27 steps) Time to render 1 min audio (27 steps) RTF (60 steps) Time to render 1 min audio (60 steps)
NVIDIA RTX 4090 34.48 ร— 1.74 s 15.63 ร— 3.84 s
NVIDIA A100 27.27 ร— 2.20 s 12.27 ร— 4.89 s
NVIDIA RTX 3090 12.76 ร— 4.70 s 6.48 ร— 9.26 s
MacBook M2 Max 2.27 ร— 26.43 s 1.03 ร— 58.25 s

We use RTF (Real-Time Factor) to measure the performance of ACE-Step. Higher values indicate faster generation speed. 27.27x means to generate 1 minute of music, it takes 2.2 seconds (60/27.27). The performance is measured on a single GPU with batch size 1 and 27 steps.

๐Ÿ“ฆ Installation

1. Clone the Repository

First, clone the ACE-Step repository to your local machine and navigate into the project directory:

git clone https://github.com/ace-step/ACE-Step.git
cd ACE-Step

2. Prerequisites

Ensure you have the following installed:

  • Python: Version 3.10 or later is recommended. You can download it from python.org.
  • Conda or venv: For creating a virtual environment (Conda is recommended).

3. Set Up a Virtual Environment

It is highly recommended to use a virtual environment to manage project dependencies and avoid conflicts. Choose one of the following methods:

Option A: Using Conda

  1. Create the environment named ace_step with Python 3.10:

    conda create -n ace_step python=3.10 -y
  2. Activate the environment:

    conda activate ace_step

Option B: Using venv

  1. Navigate to the cloned ACE-Step directory.

  2. Create the virtual environment (commonly named venv):

    python -m venv venv 
  3. Activate the environment:

    • On Windows (cmd.exe):
      venv\Scripts\activate.bat
    • On Windows (PowerShell):
      .\venv\Scripts\Activate.ps1 
      (If you encounter execution policy errors, you might need to run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process first)
    • On Linux / macOS (bash/zsh):
      source venv/bin/activate

4. Install Dependencies

Once your virtual environment is activated: a. (Windows Only) If you are on Windows and plan to use an NVIDIA GPU, install PyTorch with CUDA support first:

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126

(Adjust cu126 if you have a different CUDA version. For other PyTorch installation options, refer to the official PyTorch website).

b. Install ACE-Step and its core dependencies:

pip install -e .

The ACE-Step application is now installed. The GUI works on Windows, macOS, and Linux. For instructions on how to run it, please see the Usage section.

๐Ÿš€ Usage

Demo Interface

๐Ÿ” Basic Usage

acestep --port 7865

โš™๏ธ Advanced Usage

acestep --checkpoint_path /path/to/checkpoint --port 7865 --device_id 0 --share true --bf16 true
  • If --checkpoint_path is set and models exist at the path, load from checkpoint_path.
  • If --checkpoint_path is set but models do not exist at the path, auto download models to checkpoint_path.
  • If --checkpoint_path is not set, auto download models to the default path ~/.cache/ace-step/checkpoints.

If you are using macOS, please use --bf16 false to avoid errors.

๐Ÿ” API Usage

If you intend to integrate ACE-Step as a library into your own Python projects, you can install the latest version directly from GitHub using the following pip command.

Direct Installation via pip:

  1. Ensure Git is installed: This method requires Git to be installed on your system and accessible in your system's PATH.
  2. Execute the installation command:
    pip install git+https://github.com/ace-step/ACE-Step.git
    It's recommended to use this command within a virtual environment to avoid conflicts with other packages.

๐Ÿ› ๏ธ Command Line Arguments

  • --checkpoint_path: Path to the model checkpoint (default: downloads automatically)
  • --server_name: IP address or hostname for the Gradio server to bind to (default: '127.0.0.1'). Use '0.0.0.0' to make it accessible from other devices on the network.
  • --port: Port to run the Gradio server on (default: 7865)
  • --device_id: GPU device ID to use (default: 0)
  • --share: Enable Gradio sharing link (default: False)
  • --bf16: Use bfloat16 precision for faster inference (default: True)
  • --torch_compile: Use torch.compile() to optimize the model, speeding up inference (default: False).
    • Windows need to install triton:
      pip install triton-windows
      
  • --cpu_offload: Offload model weights to CPU to save GPU memory (default: False)
  • --overlapped_decode: Use overlapped decoding to speed up inference (default: False)

๐Ÿ“ฑ User Interface Guide

The ACE-Step interface provides several tabs for different music generation and editing tasks:

๐Ÿ“ Text2Music Tab

  1. ๐Ÿ“‹ Input Fields:

    • ๐Ÿท๏ธ Tags: Enter descriptive tags, genres, or scene descriptions separated by commas
    • ๐Ÿ“œ Lyrics: Enter lyrics with structure tags like [verse], [chorus], and [bridge]
    • โฑ๏ธ Audio Duration: Set the desired duration of the generated audio (-1 for random)
  2. โš™๏ธ Settings:

    • ๐Ÿ”ง Basic Settings: Adjust inference steps, guidance scale, and seeds
    • ๐Ÿ”ฌ Advanced Settings: Fine-tune scheduler type, CFG type, ERG settings, and more
  3. ๐Ÿš€ Generation: Click "Generate" to create music based on your inputs

๐Ÿ”„ Retake Tab

  • ๐ŸŽฒ Regenerate music with slight variations using different seeds
  • ๐ŸŽš๏ธ Adjust variance to control how much the retake differs from the original

๐ŸŽจ Repainting Tab

  • ๐Ÿ–Œ๏ธ Selectively regenerate specific sections of the music
  • โฑ๏ธ Specify start and end times for the section to repaint
  • ๐Ÿ” Choose the source audio (text2music output, last repaint, or upload)

โœ๏ธ Edit Tab

  • ๐Ÿ”„ Modify existing music by changing tags or lyrics
  • ๐ŸŽ›๏ธ Choose between "only_lyrics" mode (preserves melody) or "remix" mode (changes melody)
  • ๐ŸŽš๏ธ Adjust edit parameters to control how much of the original is preserved

๐Ÿ“ Extend Tab

  • โž• Add music to the beginning or end of an existing piece
  • ๐Ÿ“ Specify left and right extension lengths
  • ๐Ÿ” Choose the source audio to extend

๐Ÿ“‚ Examples

The examples/input_params directory contains sample input parameters that can be used as references for generating music.

๐Ÿ—๏ธ Architecture

ACE-Step Framework

๐Ÿ”จ Train

See TRAIN_INSTRUCTION.md for detailed training instructions.

๐Ÿ“œ License & Disclaimer

This project is licensed under Apache License 2.0

ACE-Step enables original music generation across diverse genres, with applications in creative production, education, and entertainment. While designed to support positive and artistic use cases, we acknowledge potential risks such as unintentional copyright infringement due to stylistic similarity, inappropriate blending of cultural elements, and misuse for generating harmful content. To ensure responsible use, we encourage users to verify the originality of generated works, clearly disclose AI involvement, and obtain appropriate permissions when adapting protected styles or materials. By using ACE-Step, you agree to uphold these principles and respect artistic integrity, cultural diversity, and legal compliance. The authors are not responsible for any misuse of the model, including but not limited to copyright violations, cultural insensitivity, or the generation of harmful content.

๐Ÿ”” Important Notice
The only official website for the ACE-Step project is our GitHub Pages site.
We do not operate any other websites.
๐Ÿšซ Fake domains include but are not limited to: ac**p.com, a**p.org, a***c.org
โš ๏ธ Please be cautious. Do not visit, trust, or make payments on any of those sites.

๐Ÿ™ Acknowledgements

This project is co-led by ACE Studio and StepFun.

๐Ÿ“– Citation

If you find this project useful for your research, please consider citing:

@misc{gong2025acestep,
	title={ACE-Step: A Step Towards Music Generation Foundation Model},
	author={Junmin Gong, Wenxiao Zhao, Sen Wang, Shengyuan Xu, Jing Guo}, 
	howpublished={\url{https://github.com/ace-step/ACE-Step}},
	year={2025},
	note={GitHub repository}
}

About

ACE-Step: A Step Towards Music Generation Foundation Model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.1%
  • Jupyter Notebook 0.9%