Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

nari-labs
/
Dia2-1B

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

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

  • Libraries
  • Dia2

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

    from dia2 import Dia2, GenerationConfig, SamplingConfig
    
    dia = Dia2.from_repo("nari-labs/Dia2-1B", 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-1B
4.31 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 14 commits
NariLabs's picture
NariLabs
Steveeeeeeen's picture
Steveeeeeeen HF Staff
Update library tag for better download tracking and code snippets! (#1)
0004262 verified 6 months ago
  • .gitattributes
    1.52 kB
    initial commit 7 months ago
  • README.md
    4.5 kB
    Update library tag for better download tracking and code snippets! (#1) 6 months ago
  • added_tokens.json
    1.16 kB
    Add Dia2-1B inference bundle 7 months ago
  • config.json
    1.76 kB
    Fix runtime weights schedule for Dia2-1B 6 months ago
  • dia2_assets.json
    125 Bytes
    Upload dia2_assets.json with huggingface_hub 7 months ago
  • merges.txt
    466 kB
    Add Dia2-1B inference bundle 7 months ago
  • model.safetensors
    4.31 GB
    xet
    Add Dia2-1B inference bundle 7 months ago
  • special_tokens_map.json
    7.92 kB
    Add Dia2-1B inference bundle 7 months ago
  • tokenizer.json
    3.53 MB
    Add Dia2-1B inference bundle 7 months ago
  • tokenizer_config.json
    13.3 kB
    Add Dia2-1B inference bundle 7 months ago
  • vocab.json
    801 kB
    Add Dia2-1B inference bundle 7 months ago