Instructions to use declare-lab/tango with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use declare-lab/tango with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-audio", model="declare-lab/tango")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("declare-lab/tango", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download main_config.json from declare-lab/tango: direct link, hf CLI and curl.
- Browser
- Download file 209 Bytes
-
https://huggingface.co/declare-lab/tango/resolve/main/main_config.json
- Command line
-
hf download hf://declare-lab/tango/main_config.json
-
curl -L -o main_config.json https://huggingface.co/declare-lab/tango/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} |