YuE #03: Hardware Requirements and Local GPU Setup
What YuE actually demands from a machine, how to pick a card that fits your budget, and the right order to set it up and run it locally.
YuE runs locally, which makes the first honest question something other than how good the output is. It is whether your machine can finish a song without falling over. Hardware decides that, and the gap between a setup that works and one that grinds is usually a single missing piece: memory, driver version, or a checkpoint you forgot to fetch. Here is the practical order.
What YuE Needs From Your Machine
Three things matter. GPU memory has to hold both the weights and the working state for a long sequence of frames at the same time. System memory matters mostly during loading, while weights are read before they are handed over. Disk speed matters more than people expect, because a slow drive turns every start into a wait. If you are on a laptop, check thermal behaviour as well: a card that throttles after two minutes will generate far slower than the specification sheet suggests, and you will spend the whole session wondering why.
Picking A Card Tier That Actually Fits
Think in three tiers. A modest card with limited memory can run smaller configurations but struggles with long songs at higher detail settings. A mid-range card with generous memory is the comfortable spot for full-length output with room to experiment. A top-tier card only pays off if you generate constantly. Rather than memorising numbers, read the model card for the exact checkpoint you intend to use and take its stated minimum seriously, then add margin. The difference between a run that finishes and one that dies near the end is often a small margin, and guessing is the expensive way to find it.
Setting Up The Environment Step By Step
Work inside a clean Python environment first; mixing packages into a global install is the most common source of breakage. Install the deep learning framework in the version that matches your driver, then the attention extension the repository recommends, then the remaining dependencies from the provided file. Clone the repository, read its instructions end to end once, and place the checkpoints in the directory the scripts expect rather than somewhere convenient. Before any real run, execute the smallest sample the project ships and confirm it completes without error.
Running The First Song Locally
Use short lyrics with a simple structure for the first attempt. Long inputs make failures ambiguous: you cannot tell whether the problem is the text, the memory, or the settings. Keep the defaults, generate, listen to the whole result, and only then start changing one variable at a time. Save the exact command you used. Reproducing a good run later is frequently harder than getting it once.
When Generation Runs Out Of Room
The classic failure is a memory error halfway through. Reduce the input length first, then lower any detail setting the configuration exposes, then check whether something else on the machine is still holding memory. Closing an idle browser window or a forgotten training job frees more than it sounds like. If the error only appears near the end of long songs, that is a strong sign the limit is cumulative rather than a bad setting.
Cloud GPUs As A Fallback
Renting is honest about the trade. You pay by the hour, you get hardware you do not own, and you spend time copying files back and forth. It makes sense for occasional heavy jobs or for validating a configuration before buying anything. It makes much less sense if every session needs the same setup, at which point a local card pays for itself in time alone.
— Nam Hoai (Nam Hoài Đất Mỏ)