Instructions to use declare-lab/tango2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use declare-lab/tango2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-audio", model="declare-lab/tango2")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("declare-lab/tango2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download main_config.json from declare-lab/tango2: direct link, hf CLI and curl.
- Browser
- Download file 209 Bytes
-
https://huggingface.co/declare-lab/tango2/resolve/main/main_config.json
- Command line
-
hf download hf://declare-lab/tango2/main_config.json
-
curl -L -o main_config.json https://huggingface.co/declare-lab/tango2/resolve/main/main_config.json
209 Bytes
| {"text_encoder_name": "google/flan-t5-large", "scheduler_name": "sd2-community/stable-diffusion-2-1", "unet_model_name": null, "unet_model_config_path": "configs/diffusion_model_config.json", "snr_gamma": 5.0} |