Instructions to use tinytrashlabs/dia2-2b-mlx-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use tinytrashlabs/dia2-2b-mlx-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download tinytrashlabs/dia2-2b-mlx-8bit --local-dir dia2-2b-mlx-8bit
- Dia2
How to use tinytrashlabs/dia2-2b-mlx-8bit with Dia2:
from dia2 import Dia2, GenerationConfig, SamplingConfig dia = Dia2.from_repo("tinytrashlabs/dia2-2b-mlx-8bit", 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
- Local Apps Settings
- LM Studio
- Atomic Chat
Download tokenizer.json from tinytrashlabs/dia2-2b-mlx-8bit: direct link, hf CLI and curl.
- Browser
- Download file 3.53 MB
-
https://huggingface.co/tinytrashlabs/dia2-2b-mlx-8bit/resolve/main/tokenizer.json
- Command line
-
hf download hf://tinytrashlabs/dia2-2b-mlx-8bit/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/tinytrashlabs/dia2-2b-mlx-8bit/resolve/main/tokenizer.json
3.53 MB
File too large to display, you can check the raw version instead.