Note: This model requires
tiktoken
and the example uses
soundfile
, install them with
pip install tiktoken soundfile
.
Licensing
The weights are CC BY-NC 4.0 (non-commercial), from
m-a-p
; see
WEIGHTS_LICENSE
. The code is Apache-2.0, adapted from
multimodal-art-projection/YuE
; see
LICENSE
.
Sample song
The song above was generated with the following code:
import soundfile as sf
import torch
from diffusers import ModularPipelineBlocks
blocks = ModularPipelineBlocks.from_pretrained( # load the blocks first to avoid warnings"OzzyGT/YuE2-Modular",
trust_remote_code=True,
components_repo="OzzyGT/YuE2-3B-Diffusers",
trust_components_code=True,
)
pipe = blocks.init_pipeline()
pipe.load_components(dtype={"transformer": torch.bfloat16, "vae": torch.float32})
pipe.to("cuda")
style = "English, warm piano pop, expressive female voice, acoustic piano, rounded bass and light drums, lyrical memorable melody, unhurried phrasing, 88 BPM"
lyrics = """[Verse]Neon fades along the laneFootsteps keep the time of rainFold the night and leave it hereMorning has a sky to clear[Chorus]Let the day come into viewEvery road begins with youHold a little room for lightWe will sing beyond the night"""
state = pipe(style=style, lyrics=lyrics, seed=831001, use_cuda_graph=True)
sf.write("song.flac", state.get("audios")[0].T.numpy(), state.get("sample_rate"), subtype="PCM_24")
Runs of OzzyGT YuE2-3B-Diffusers on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About YuE2-3B-Diffusers huggingface.co Model
YuE2-3B-Diffusers huggingface.co is an AI model on huggingface.co that provides YuE2-3B-Diffusers's model effect (), which can be used instantly with this OzzyGT YuE2-3B-Diffusers model. huggingface.co supports a free trial of the YuE2-3B-Diffusers model, and also provides paid use of the YuE2-3B-Diffusers. Support call YuE2-3B-Diffusers model through api, including Node.js, Python, http.
YuE2-3B-Diffusers huggingface.co is an online trial and call api platform, which integrates YuE2-3B-Diffusers's modeling effects, including api services, and provides a free online trial of YuE2-3B-Diffusers, you can try YuE2-3B-Diffusers online for free by clicking the link below.
OzzyGT YuE2-3B-Diffusers online free url in huggingface.co:
YuE2-3B-Diffusers is an open source model from GitHub that offers a free installation service, and any user can find YuE2-3B-Diffusers on GitHub to install. At the same time, huggingface.co provides the effect of YuE2-3B-Diffusers install, users can directly use YuE2-3B-Diffusers installed effect in huggingface.co for debugging and trial. It also supports api for free installation.