AI SeedbankHelp preserve open and free AI for humanity's future

← All models

nari-labs_Dia2-2B

nari-labs · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: apache-2.0 language:

  • en pipeline_tag: text-to-speech library_name: dia2

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

  • We thank the TPU Research Cloud program for providing compute for training.
  • Our work was heavily inspired by KyutaiTTS and Sesame

Questions? Join our Discord or open an issue.

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:6c61b8f97cd00d0c4431e4df58c36373b3678761&dn=nari-labs_Dia2-2B

Open magnet in torrent client · infohash 6c61b8f97cd00d0c4431e4df58c36373b3678761

Files & hashes

PathSizesha1sha256
README.md4.6 KB (4,714 B)65c703363e977c40ee9f6934d84adc2ea9179ec666b5af5cd6df12f6850692fb6859a5ade137f612cbd9914c37de072ec3381037
added_tokens.json1.1 KB (1,156 B)46d1e96aeed686e8981c0c98f157f6ecc4d3302ce6407562f41f7ca0948082446ef6439c0bb2b2c46a314df17f067ecdc0c8c160
config.json1.4 KB (1,439 B)f574d0f2fee6a6318b7222b584214ebf808f33a2d59c6899abcbfeb54b954c6bfe95285822a39446456f0a4faabd7dc262de135a
dia2_assets.json125 B (125 B)291c14e474b87ec544101b34b794eaa83cb61e5987416e14135885d83257388b5b02174062ec34ef24edf1c32d18618fa85dc3bc
example_1.wav495.0 KB (506,924 B)11f5a368980063b892681dca6ff56bcaf48b5d1e105a36923d4ba608173c7c0ed6c6b02879d81dae79bf9fbdc7d6be6dd123b844
example_2.wav427.5 KB (437,804 B)15fea8d06e9d26fd71a7c6f4cba39de3a938f364265dd47eda99fe34c916a0445275d43945ebbc2104a81966219334c1c144f241
merges.txt455.5 KB (466,391 B)69503b13f727ba3812b6803e97442a6de05ef5eb0b54e8aa4e53d5383e2e4bc635a56b43f9647f7b13832d5d9ecd8f82dac4f510
model.safetensors7.15 GB (7,678,277,416 B)58e3e9e2ec8f48463045ba696e631f1d317b1799b3eb6b4758beaae97dcfa87d430706ede0d78306cc3afb1eaf4397f216abd1db
special_tokens_map.json7.7 KB (7,923 B)c1f701441b7d66942288a94a8fc45b5639504f31c1fd3b95eeae0a8d7e6f5d4f893d6a657a32eef6a6a6b5d941c742e844df70af
tokenizer.json3.4 MB (3,532,285 B)5c2e9026a2567ed14799ce5997d1946bf5eef4957931199d153b72035a0b3acf7bfd276266248a0b6c5e9a5a25d233ca1424846c
tokenizer_config.json13.0 KB (13,337 B)0b7762c8d26f6b0d4e0aeb4d63e7b8536c32501102b56f0084d1192d2402abb2885f509db5cfe93a855fc05816ea5e2d4ff27171
vocab.json781.9 KB (800,662 B)0ad5ecc2035b7031b88afb544ee95e2d49baa48482b84012e3add4d01d12ba14442026e49b8cbbaead1f79ecf3d919784f82dc79

Cite this release

Canonical URL
https://aiseedbank.org/models/nari-labs_Dia2-2B/
Slug
nari-labs_Dia2-2B
Infohash
6c61b8f97cd00d0c4431e4df58c36373b3678761
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: nari-labs_Dia2-2B.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorynari-labs/Dia2-2B
Revision (pinned)7abae125471a73b0fc6b9d413cb15f4ae1e771d8
Fetched at2026-09-04T03:16:44Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T03:17:59Z

apache-2.07.16 GB (7,684,050,176 bytes)dia2safetensorstext-to-speech1 language (en)