whatisgithub

What is stable-audio-tools?

stability-ai/stable-audio-tools — explained in plain English

Analysis updated 2026-07-03

3,699PythonAudience · researcherComplexity · 4/5LicenseSetup · hard

In one sentence

Stability AI's Python library for training and running AI audio generation models, includes a browser interface to generate audio from text prompts using pre-trained models from Hugging Face.

Mindmap

mindmap
  root((stable-audio-tools))
    What it does
      Text-to-audio generation
      Model training
      Fine-tuning
    Interfaces
      Gradio browser UI
      CLI training scripts
    Tech stack
      Python 3.10+
      PyTorch 2.5+
      PyTorch Lightning
      Hugging Face
    Training features
      Multi-GPU support
      S3 dataset loading
      Weights and Biases logging
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run the Gradio web interface to generate audio from text prompts using the stable-audio-open-1.0 pre-trained model locally.

USE CASE 2

Fine-tune an existing Stability AI audio model on your own audio dataset using multi-GPU training with PyTorch Lightning.

USE CASE 3

Train a new audio generation model from scratch by writing a JSON config file that defines the model architecture and dataset.

USE CASE 4

Strip training-only data from a saved model checkpoint to create a smaller file ready for deployment or sharing.

What is it built with?

PythonPyTorchPyTorch LightningGradioHugging Face

How does it compare?

stability-ai/stable-audio-toolsfacebookresearch/reagentopengeos/leafmap
Stars3,6993,6993,699
LanguagePythonPythonPython
Setup difficultyhardmoderateeasy
Complexity4/54/52/5
Audienceresearcherresearcherdata

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires Python 3.10, PyTorch 2.5+, a Hugging Face account with license acceptance, and a Weights and Biases account for training runs.

Pre-trained models require accepting a separate license on Hugging Face before downloading, code license terms are in the repository.

So what is it?

Stable Audio Tools is a Python library from Stability AI that contains the training and inference code for their audio generation models. These are AI models that take a text description or other input and produce audio output. The repository is the technical foundation behind Stable Audio, their publicly released audio generation product. For someone who just wants to try out a pre-trained model without training anything themselves, the README describes a web-based interface built with a tool called Gradio. You run a single command pointing it at a model hosted on Hugging Face and get a local interface in your browser where you can type prompts and hear the generated audio. The pre-trained model it uses as an example is called stable-audio-open-1.0, which requires accepting a license agreement on Hugging Face before downloading. For people who want to train their own models or fine-tune an existing one, the library uses a framework called PyTorch Lightning to handle multi-GPU and multi-node training. Training is configured through JSON files that define the model architecture, the audio format (sample rate, mono vs stereo, clip length), and the training dataset. Datasets can come from a local folder of audio files or from cloud storage on Amazon S3. Training progress is logged to Weights and Biases, a service for tracking machine learning experiments, so an account there is required. One practical detail the README explains is the difference between "wrapped" and "unwrapped" model checkpoints. During training, the saved files include optimizer state and other training-only data that bloat the file size. The repository includes a script to strip all of that out and save a smaller file suitable for inference or fine-tuning. The library requires Python 3.10 and PyTorch 2.5 or later.

Copy-paste prompts

Prompt 1
I want to generate audio from a text prompt using stability-ai/stable-audio-tools. Walk me through downloading the stable-audio-open-1.0 model from Hugging Face and launching the Gradio interface.
Prompt 2
How do I fine-tune a Stability AI audio model on my own folder of audio files? Show me what the JSON training config needs to contain.
Prompt 3
I trained a model with stable-audio-tools and now I want to strip the optimizer state from the checkpoint for deployment. How do I use the unwrapping script?
Prompt 4
Explain how stable-audio-tools handles multi-GPU training with PyTorch Lightning, what config options control the number of GPUs and nodes?
Prompt 5
How do I connect stable-audio-tools training to Weights and Biases for experiment tracking? What do I need to set up before starting a training run?

Frequently asked questions

What is stable-audio-tools?

Stability AI's Python library for training and running AI audio generation models, includes a browser interface to generate audio from text prompts using pre-trained models from Hugging Face.

What language is stable-audio-tools written in?

Mainly Python. The stack also includes Python, PyTorch, PyTorch Lightning.

What license does stable-audio-tools use?

Pre-trained models require accepting a separate license on Hugging Face before downloading, code license terms are in the repository.

How hard is stable-audio-tools to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is stable-audio-tools for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.