declare-lab / TangoFlux

huggingface.co
Total runs: 1.3K
24-hour runs: 6
7-day runs: 63
30-day runs: 464
Model's Last Updated: May 08 2025
text-to-audio

Introduction of TangoFlux

Model Details of TangoFlux

✨
TangoFlux: Super Fast and Faithful Text to Audio Generation with Flow Matching and Clap-Ranked Preference Optimization
✨✨✨

Model Overview

TangoFlux consists of FluxTransformer blocks which are Diffusion Transformer (DiT) and Multimodal Diffusion Transformer (MMDiT), conditioned on textual prompt and duration embedding to generate audio at 44.1kHz up to 30 seconds. TangoFlux learns a rectified flow trajectory from audio latent representation encoded by a variational autoencoder (VAE). The TangoFlux training pipeline consists of three stages: pre-training, fine-tuning, and preference optimization. TangoFlux is aligned via CRPO which iteratively generates new synthetic data and constructs preference pairs to perform preference optimization.

Getting Started

Download TangoFlux from our github https://github.com/declare-lab/TangoFlux The model will be automatically downloaded and saved in cache. Subsequent runs will load the model directly from cache.

The generate function uses 25 steps by default to sample from the flow model. We recommend using 50 steps for generating better quality audios. This comes at the cost of increased run-time.

import torchaudio
from tangoflux import TangoFluxInference
from IPython.display import Audio

model = TangoFluxInference(name='declare-lab/TangoFlux')
audio = model.generate('Hammer slowly hitting the wooden table', steps=50, duration=10)

Audio(data=audio, rate=44100)
Citation
@article{Hung2025TangoFlux,
  title = {TangoFlux: Super Fast and Faithful Text to Audio Generation with Flow Matching and Clap-Ranked Preference Optimization},
  author = {Chia-Yu Hung and Navonil Majumder and Zhifeng Kong and Ambuj Mehrish and Rafael Valle and Bryan Catanzaro and Soujanya Poria},
  year = {2025},
  url = {https://openreview.net/attachment?id=tpJPlFTyxd&name=pdf},
  note = {Available at OpenReview}
}

Runs of declare-lab TangoFlux on huggingface.co

1.3K
Total runs
6
24-hour runs
33
3-day runs
63
7-day runs
464
30-day runs

More Information About TangoFlux huggingface.co Model

More TangoFlux license Visit here:

https://choosealicense.com/licenses/mit

TangoFlux huggingface.co

TangoFlux huggingface.co is an AI model on huggingface.co that provides TangoFlux's model effect (), which can be used instantly with this declare-lab TangoFlux model. huggingface.co supports a free trial of the TangoFlux model, and also provides paid use of the TangoFlux. Support call TangoFlux model through api, including Node.js, Python, http.

declare-lab TangoFlux online free

TangoFlux huggingface.co is an online trial and call api platform, which integrates TangoFlux's modeling effects, including api services, and provides a free online trial of TangoFlux, you can try TangoFlux online for free by clicking the link below.

declare-lab TangoFlux online free url in huggingface.co:

https://huggingface.co/declare-lab/TangoFlux

TangoFlux install

TangoFlux is an open source model from GitHub that offers a free installation service, and any user can find TangoFlux on GitHub to install. At the same time, huggingface.co provides the effect of TangoFlux install, users can directly use TangoFlux installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

TangoFlux install url in huggingface.co:

https://huggingface.co/declare-lab/TangoFlux

Url of TangoFlux

Provider of TangoFlux huggingface.co

declare-lab
ORGANIZATIONS

Other API from declare-lab

huggingface.co

Total runs: 4.1K
Run Growth: 2.7K
Growth Rate: 64.99%
Updated:December 17 2023
huggingface.co

Total runs: 234
Run Growth: -323
Growth Rate: -138.03%
Updated:August 28 2025
huggingface.co

Total runs: 181
Run Growth: -194
Growth Rate: -107.18%
Updated:August 28 2025
huggingface.co

Total runs: 102
Run Growth: 47
Growth Rate: 46.08%
Updated:January 28 2025
huggingface.co

Total runs: 89
Run Growth: 27
Growth Rate: 30.34%
Updated:January 18 2026
huggingface.co

Total runs: 87
Run Growth: -13
Growth Rate: -14.94%
Updated:August 01 2025
huggingface.co

Total runs: 54
Run Growth: -4
Growth Rate: -7.41%
Updated:January 18 2026
huggingface.co

Total runs: 49
Run Growth: 0
Growth Rate: 0.00%
Updated:December 11 2025
huggingface.co

Total runs: 17
Run Growth: 2
Growth Rate: 11.76%
Updated:October 24 2022