Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

nari-labs
/
Dia2-2B

Text-to-Speech
Dia2
Safetensors
English
Model card Files Files and versions
xet
Community
2

Instructions to use nari-labs/Dia2-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Dia2

    How to use nari-labs/Dia2-2B with Dia2:

    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)
    
  • Notebooks
  • Google Colab
  • Kaggle
Dia2-2B
Ctrl+K
Ctrl+K
  • 2 contributors
History: 22 commits
Steveeeeeeen's picture
Steveeeeeeen HF Staff
Update library tag for better download tracking and code snippets!
47cde31 verified 5 months ago
  • .gitattributes
    1.62 kB
    Upload 2 files 6 months ago
  • README.md
    4.71 kB
    Update library tag for better download tracking and code snippets! 5 months ago
  • added_tokens.json
    1.16 kB
    Add Dia2-2B inference bundle 6 months ago
  • config.json
    1.44 kB
    Trim config to runtime essentials 6 months ago
  • dia2_assets.json
    125 Bytes
    Upload dia2_assets.json with huggingface_hub 6 months ago
  • example_1.wav
    507 kB
    xet
    Upload 2 files 6 months ago
  • example_2.wav
    438 kB
    xet
    Upload 2 files 6 months ago
  • merges.txt
    466 kB
    Add Dia2-2B inference bundle 6 months ago
  • model.safetensors
    7.68 GB
    xet
    Add Dia2-2B inference bundle 6 months ago
  • special_tokens_map.json
    7.92 kB
    Add Dia2-2B inference bundle 6 months ago
  • tokenizer.json
    3.53 MB
    Add Dia2-2B inference bundle 6 months ago
  • tokenizer_config.json
    13.3 kB
    Add Dia2-2B inference bundle 6 months ago
  • vocab.json
    801 kB
    Add Dia2-2B inference bundle 6 months ago