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
Upload 2 files
Browse files- .gitattributes +2 -0
- example_1.wav +3 -0
- example_2.wav +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
example_1.wav filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
example_2.wav filter=lfs diff=lfs merge=lfs -text
|
example_1.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:105a36923d4ba608173c7c0ed6c6b02879d81dae79bf9fbdc7d6be6dd123b844
|
| 3 |
+
size 506924
|
example_2.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:265dd47eda99fe34c916a0445275d43945ebbc2104a81966219334c1c144f241
|
| 3 |
+
size 437804
|