Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
✨
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
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.
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:
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.