Text-to-Audio
Transformers
Safetensors
yue2
text-generation
music
music-generation
text-to-music
lora
custom_code
Instructions to use OpenModel-Labs/OpenBeats-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenModel-Labs/OpenBeats-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-audio", model="OpenModel-Labs/OpenBeats-1", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("OpenModel-Labs/OpenBeats-1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from OpenModel-Labs/OpenBeats-1: direct link, hf CLI and curl.
- Browser
- Download file 204 Bytes
-
https://huggingface.co/OpenModel-Labs/OpenBeats-1/resolve/main/generation_config.json
- Command line
-
hf download hf://OpenModel-Labs/OpenBeats-1/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/OpenModel-Labs/OpenBeats-1/resolve/main/generation_config.json
204 Bytes
| { | |
| "bos_token_id": 151643, | |
| "eos_token_id": 151852, | |
| "pad_token_id": 151643, | |
| "do_sample": true, | |
| "temperature": 1.0, | |
| "top_p": 0.95, | |
| "top_k": 100, | |
| "max_new_tokens": 9000, | |
| "use_cache": true | |
| } | |