nari-labs / Dia2-2B

huggingface.co
Total runs: 2.7K
24-hour runs: 0
7-day runs: -195
30-day runs: -225
Model's Last Updated: December 01 2025
text-to-speech

Introduction of Dia2-2B

Model Details of Dia2-2B

Dia2-2B

Dia2 is a streaming dialogue TTS model created by Nari Labs.

The model does not need the entire text to produce the audio, and can start generating as the first few words are given as input. You can condition the output on audio, enabling natural conversations in realtime.

We provide model checkpoints (1B, 2B) and inference code to accelerate research. The model only supports up to 2 minutes of generation in English.

Upcoming
  • Dia2 TTS Server: Real streaming support
  • Sori: Dia2-powered speech-to-speech engine written in Rust
Examples

Quickstart

Requirement — install uv and use CUDA 12.8+ drivers. All commands below run through uv run … as a rule.

  1. Install dependencies (one-time):
    uv sync
    
  2. Prepare a script: edit input.txt using [S1] / [S2] speaker tags.
  3. Generate audio:
    uv run -m dia2.cli \
      --hf nari-labs/Dia2-2B \
      --input input.txt \
      --cfg 2.0 --temperature 0.8 \
      --cuda-graph --verbose \
      output.wav
    
    The first run downloads weights/tokenizer/Mimi. The CLI auto-selects CUDA when available (otherwise CPU) and defaults to bfloat16 precision—override with --device / --dtype if needed.
  4. Conditional Generation (optional):
    uv run -m dia2.cli \
      --hf nari-labs/Dia2-2B \
      --input input.txt \
      --prefix-speaker-1 prefix_speaker1.wav \
      --prefix-speaker-2 prefix_speaker2.wav \
      --cuda-graph --verbose \
      output_conditioned.wav
    
    Condition the generation on previous conversational context in order to generate natural output for your speech-to-speech system. For example, place the voice of your assistant as prefix speaker 1, place user's audio input as prefix speaker 2, and generate the response to user's input.
  5. Gradio for Easy Usage
    uv run gradio_app.py
    
Programmatic Usage
from dia2 import Dia2, GenerationConfig, SamplingConfig

dia = Dia2.from_repo("nari-labs/Dia2-2B", device="cuda", dtype="bfloat16")
config = GenerationConfig(
    cfg_scale=2.0,
    audio=SamplingConfig(temperature=0.8, top_k=50),
    use_cuda_graph=True,
)
result = dia.generate("[S1] Hello Dia2!", config=config, output_wav="hello.wav", verbose=True)

Generation runs until the runtime config's max_context_steps (1500, 2 minutes) or until EOS is detected. GenerationResult includes audio tokens, waveform tensor, and word timestamps relative to Mimi’s ~12.5 Hz frame rate.

Hugging Face
Variant Repo
Dia2-1B nari-labs/Dia2-1B
Dia2-2B nari-labs/Dia2-2B
License & Attribution

Licensed under Apache 2.0 . All third-party assets (Kyutai Mimi codec, etc.) retain their original licenses.

Disclaimer

This project offers a high-fidelity speech generation model intended for research and educational use. The following uses are strictly forbidden :

  • Identity Misuse : Do not produce audio resembling real individuals without permission.
  • Deceptive Content : Do not use this model to generate misleading content (e.g. fake news)
  • Illegal or Malicious Use : Do not use this model for activities that are illegal or intended to cause harm.

By using this model, you agree to uphold relevant legal standards and ethical responsibilities. We are not responsible for any misuse and firmly oppose any unethical usage of this technology.

Acknowledgements

Questions? Join our Discord or open an issue.

Runs of nari-labs Dia2-2B on huggingface.co

2.7K
Total runs
0
24-hour runs
8
3-day runs
-195
7-day runs
-225
30-day runs

More Information About Dia2-2B huggingface.co Model

More Dia2-2B license Visit here:

https://choosealicense.com/licenses/apache-2.0

Dia2-2B huggingface.co

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

nari-labs Dia2-2B online free

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

nari-labs Dia2-2B online free url in huggingface.co:

https://huggingface.co/nari-labs/Dia2-2B

Dia2-2B install

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

Dia2-2B install url in huggingface.co:

https://huggingface.co/nari-labs/Dia2-2B

Url of Dia2-2B

Provider of Dia2-2B huggingface.co

nari-labs
ORGANIZATIONS

Other API from nari-labs

huggingface.co

Total runs: 22.2K
Run Growth: -5.9K
Growth Rate: -25.85%
Updated:June 01 2025
huggingface.co

Total runs: 2.1K
Run Growth: -399
Growth Rate: -19.17%
Updated:December 03 2025