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 yue2_generation_config.json from OpenModel-Labs/OpenBeats-1: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/OpenModel-Labs/OpenBeats-1/resolve/main/yue2_generation_config.json
- Command line
-
hf download hf://OpenModel-Labs/OpenBeats-1/yue2_generation_config.json
-
curl -L -o yue2_generation_config.json https://huggingface.co/OpenModel-Labs/OpenBeats-1/resolve/main/yue2_generation_config.json
466 Bytes
| { | |
| "abc": { | |
| "temperature": 0.7, | |
| "top_p": 0.9, | |
| "top_k": 30, | |
| "repetition_penalty": 1.005, | |
| "penalty_window": 100, | |
| "min_tokens": 32, | |
| "max_tokens": 4096 | |
| }, | |
| "semantic": { | |
| "temperature": 1.0, | |
| "top_p": 0.95, | |
| "top_k": 100, | |
| "repetition_penalty": 1.2, | |
| "penalty_window": 50, | |
| "min_tokens": 200, | |
| "max_tokens": 9000 | |
| }, | |
| "ode_steps": 32, | |
| "ode_method": "midpoint", | |
| "context": 24576, | |
| "version": "yue2-native-v1" | |
| } | |