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")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("declare-lab/tango2", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| {"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} |