# 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.

[Open the bench](https://yueai.net/run-yue-online#bench)

## From the repository to a run here

1. **Bring your files**: Load the genre.txt and lyrics.txt you would pass to infer.py, or type them into the bench.
2. **Set the arguments**: --run_n_segments, --max_new_tokens, --seed and the stage-1 precision, checked before you pay.
3. **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.

| Setup | GPU memory | What to expect |
| --- | --- | --- |
| Short tests | 24 GB or less | Up to 2 segments; a consumer card with quantisation, slow. |
| Full songs (4+ segments) | 80 GB | An A100 or H100 class GPU. |
| Software | CUDA GPU, Linux | Python, PyTorch with CUDA, FlashAttention 2 recommended, plus the xcodec_mini_infer checkout. |
| Here | None on your side | A100 80 GB on our side; a 2 × Short run took 7–8 minutes in our timings. |

Checked 2026-12-05 against https://github.com/multimodal-art-projection/YuE/tree/YuE-v1

## Running YuE from GitHub yourself

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

1. **Clone the repository**: Clone the YuE repository on its YuE-v1 branch and the xcodec_mini_infer checkpoint into inference/.
2. **Install the environment**: Create a Python environment with PyTorch for your CUDA version and install the requirements; FlashAttention 2 saves memory.
3. **Write genre.txt and lyrics.txt**: Space-separated tags in genre.txt; lyrics with [verse] / [chorus] segments separated by blank lines.
4. **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.

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.

| Aspect | Your GPU | YueAI.net |
| --- | --- | --- |
| Hardware | 24–80 GB GPU | A browser |
| Setup | Python, CUDA, checkpoints | None |
| Cost | Your power and time | 692 credits a run, refunded on failure |
| Settings | Every infer.py argument | Segments, token budget, precision, seed |
| Moving a run | Copy the files by hand | Export ZIP back to local |
| Languages | All YuE models | English 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.

[Pricing](https://yueai.net/pricing)

---

Source: https://yueai.net/run-yue-online · Site index for AI agents: https://yueai.net/llms.txt · Full content: https://yueai.net/llms-full.txt
