YuE from GitHub, run online without the GPU

The YuE repository on GitHub asks for a big GPU. Here the same model runs in the cloud with the same arguments, and every run exports as genre.txt, lyrics.txt and a run.sh for the day you have the hardware.

Independent platform, not affiliated with HKUST or M-A-P. YuE is a trademark of its owner.

ACE-Step is preselected: an ACE-Step run costs 92 credits, which the sign-up credits cover. Pick YuE when you have the credits for a YuE run.

space-separated tags

Genre, instrument, mood, voice gender and timbre, e.g. folk acoustic male warm vocal.

0/3000
Segments (--run_n_segments)

How many lyric segments to render, counted from the top. One segment is one [verse], [chorus], [bridge] or [outro] block.

Token budget (--max_new_tokens)

Stage-1 tokens per segment, about 100 a second of music. More tokens, longer segments and a longer wait.

Stage-1 precision

bf16 is the repository default. int8 is the low-VRAM path people use at home; on our GPUs it runs slower, so it is priced as a full run.

Leave empty for a random seed (0–2147483647); the run records the seed it used, so you can repeat it.

token load 2 × 1500 = 3,000≈ 30 s of music92 credits

Your run shows here: the stages as they happen, then the trace and the player.

Recipe preview

Fill in genre and lyrics to see the recipe this run would use.

From the repository to a run here

  1. 01

    Bring your files

    Load the genre.txt and lyrics.txt you would pass to infer.py, or type them into the bench.

  2. 02

    Set the arguments

    --run_n_segments, --max_new_tokens, --seed and the stage-1 precision, checked before you pay.

  3. 03

    Run, then export

    Listen, re-run or fork; the ZIP repeats the run on your own GPU with the same seed.

What the repository asks for

From the YuE README (YuE-v1 branch). Memory is GPU memory; times grow with the token load.

SetupGPU memoryWhat to expect
Short tests24 GB or lessUp to 2 segments; a consumer card with quantisation, slow.
Full songs (4+ segments)80 GBAn A100 or H100 class GPU.
SoftwareCUDA GPU, LinuxPython, PyTorch with CUDA, FlashAttention 2 recommended, plus the xcodec_mini_infer checkout.
HereNone on your sideA100 80 GB on our side; a 2 × Short run took 7–8 minutes in our timings.

Checked 2026-12-05 against github.com/multimodal-art-projection/YuE

Running YuE from GitHub yourself

The steps the README describes, in short, so you know what the exported run.sh does.

  1. 01

    Clone the repository

    Clone the YuE repository on its YuE-v1 branch and the xcodec_mini_infer checkpoint into inference/.

  2. 02

    Install the environment

    Create a Python environment with PyTorch for your CUDA version and install the requirements; FlashAttention 2 saves memory.

  3. 03

    Write genre.txt and lyrics.txt

    Space-separated tags in genre.txt; lyrics with [verse] / [chorus] segments separated by blank lines.

  4. 04

    Run infer.py

    Pass the stage-1 and stage-2 models, both text files, the segments, the token budget and the seed. Weights download on first run.

Arguments the export writes

  • --stage1_model m-a-p/YuE-s1-7B-anneal-en-cot
  • --stage2_model m-a-p/YuE-s2-1B-general
  • --genre_txt genre.txt · --lyrics_txt lyrics.txt
  • --run_n_segments 1–4
  • --max_new_tokens 1500 / 2000 / 3000
  • --seed · --repetition_penalty 1.1

Argument names checked against inference/infer.py on 2026-12-05. We quote names only, not the repository's code.

YuE in ComfyUI vs in the cloud

Community ComfyUI nodes wrap the same model. They suit people already living in ComfyUI; they need the same GPU.

  • Same weights

    The nodes load the same YuE stage-1 and stage-2 models; the results depend on the same settings.

  • Same memory wall

    Low-VRAM node presets quantise or offload, which is slower and can lower audio quality.

  • Settings travel

    Our recipe JSON lists every value a node asks for: tags, lyrics, segments, tokens, seed.

  • No graph to keep

    Here there is nothing to install or update; the bench is the whole workflow.

Local, or run here

Both run the same model. The difference is who owns the GPU.

AspectYour GPUYueAI.net
Hardware24–80 GB GPUA browser
SetupPython, CUDA, checkpointsNone
CostYour power and time692 credits a run, refunded on failure
SettingsEvery infer.py argumentSegments, token budget, precision, seed
Moving a runCopy the files by handExport ZIP back to local
LanguagesAll YuE modelsEnglish CoT model at launch

Common errors running it locally

What usually goes wrong, and what to check first.

  • CUDA out of memory

    Lower --run_n_segments or --max_new_tokens, or use a quantised stage 1. Full songs need an 80 GB card.

  • Missing xcodec_mini_infer

    The decoder checkpoint lives in its own repository and must sit inside inference/.

  • Silence or noise at the end

    Usually more segments requested than the lyrics have, or a budget too short for long segments.

  • FlashAttention build fails

    Install a wheel that matches your PyTorch and CUDA versions, or run without it at a memory cost.

Questions

Can I run YuE without a GPU?

Not on your own machine at a useful speed. Here it runs on our A100s; you only need a browser.

What do segments and max_new_tokens do?

Segments is how many lyric blocks are rendered from the top; max_new_tokens is the stage-1 budget per segment, about 100 tokens a second of music.

Does the export really run on my machine?

run.sh clones the public repository on its YuE-v1 branch and calls inference/infer.py with the recipe's arguments. You still need the GPU and the environment.

Why only the English model?

We launched with YuE s1-7B (English CoT). The Chinese and Japanese-Korean models are not offered yet.

Is YueAI.net part of the YuE project?

No. It is an independent platform, not affiliated with HKUST or M-A-P. YuE and YuE2 are trademarks of their owners.

How long does a run take?

In our timings a 2 × Short run took 7–8 minutes and a 3 × Standard run about 12–13. It runs in the background; you can close the tab.

Try it on the bench

Your genre tags and lyrics, YuE's real settings, a recipe you keep.

Open the bench

Last updated: