Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

OzzyGT
/
YuE2-Modular

Text-to-Audio
Diffusers
English
Chinese
music-generation
yue2
modular-diffusers
Model card Files Files and versions
xet
Community

Instructions to use OzzyGT/YuE2-Modular with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use OzzyGT/YuE2-Modular with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("OzzyGT/YuE2-Modular", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
YuE2-Modular
63.2 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
OzzyGT's picture
OzzyGT HF Staff
initial commit
2577656 about 15 hours ago
  • .gitattributes
    1.52 kB
    initial commit about 15 hours ago
  • .gitignore
    13 Bytes
    initial commit about 15 hours ago
  • LICENSE
    11.4 kB
    initial commit about 15 hours ago
  • README.md
    2.22 kB
    initial commit about 15 hours ago
  • blocks.py
    20.4 kB
    initial commit about 15 hours ago
  • cuda_graph.py
    9.83 kB
    initial commit about 15 hours ago
  • guidance.py
    717 Bytes
    initial commit about 15 hours ago
  • modular_config.json
    195 Bytes
    initial commit about 15 hours ago
  • modular_model_index.json
    77 Bytes
    initial commit about 15 hours ago
  • nar.py
    3.91 kB
    initial commit about 15 hours ago
  • protocol.py
    4.39 kB
    initial commit about 15 hours ago
  • sampling.py
    8.61 kB
    initial commit about 15 hours ago