# YuE2 — card for AI agents

3B song generator that turns lyrics and a style prompt into full songs, with an editable melody and chord score.

Category: AI music and sound generators · maker HKUST / M-A-P · checked 2026-10-25

## Price
- Price: Free
- Free tier: Open weights, free to download; self-hosted (24 GB NVIDIA GPU).

## License
Weights CC BY-NC 4.0 with individual-creator permission; code Apache-2.0 — https://github.com/multimodal-art-projection/YuE/blob/main/MODEL_LICENSE

- commercial: **conditions** (Commercial use with conditions)
  > The individual creator permission does not authorize commercial use of the model weights by companies.
  (https://github.com/multimodal-art-projection/YuE/blob/main/MODEL_LICENSE)
- attribution: **varies** (Credit depends on the item)
  > This recommendation does not waive the attribution requirements for sharing model weights or adapted weights.
  (https://github.com/multimodal-art-projection/YuE/blob/main/MODEL_LICENSE)
- in app: **no** (Cannot ship inside an app)
  > The individual creator permission does not authorize commercial use of the model weights by companies.
  (https://github.com/multimodal-art-projection/YuE/blob/main/MODEL_LICENSE)
- youtube: **yes** (OK in monetized YouTube videos)
  > to publish, distribute, sell, license or otherwise monetize those outputs, subject to the responsible-use conditions below.
  (https://github.com/multimodal-art-projection/YuE/blob/main/MODEL_LICENSE)

## Rules to follow
- Individual creators may sell and monetize outputs with no fees; companies need a separate commercial license.
- Academic use is free for non-commercial research and education.
- No illegal, harmful, deceptive or impersonating use; credit on outputs is optional, attribution needed when sharing weights.

## How to connect
- Download only
- Repository: https://github.com/multimodal-art-projection/YuE
- Website: https://huggingface.co/m-a-p/YuE2-3B

## Notes
Released Sept 2026 with YuE2-Vae and an inference wheel on GitHub releases. Hugging Face API, Oct 25, 2026 (YuE2-3B): 25022 downloads, 1198 likes; GitHub multimodal-art-projection/YuE: 12705 stars.

## Numbers (AgentGid data)
- Gid Score: 37
- GitHub stars: 13,747

## Lines to paste into your prompt or AGENTS.md

```
- YuE2 (AI music and sound generators). 3B song generator that turns lyrics and a style prompt into full songs, with an editable melody and chord score. Price: free; commercial use with conditions; credit depends on the item; cannot ship inside an app.
  Connect: download from https://huggingface.co/m-a-p/YuE2-3B (no API).
  Rule: Individual creators may sell and monetize outputs with no fees; companies need a separate commercial license.
  Rule: Academic use is free for non-commercial research and education.
  Rule: No illegal, harmful, deceptive or impersonating use; credit on outputs is optional, attribution needed when sharing weights.
  License: https://github.com/multimodal-art-projection/YuE/blob/main/MODEL_LICENSE (checked 2026-10-25; details: https://agentgid.com/assets/yue2/)
```

Not verified: in_app is 'no' for companies under the public license; an individual's own app is not explicitly addressed. GitHub stars are for the shared repo (YuE v1 and YuE2).

## Links
- AgentGid page: https://agentgid.com/assets/yue2/
- Is it free for commercial use? https://agentgid.com/assets/yue2/commercial-use/
- Source: https://huggingface.co/m-a-p/YuE2-3B
- Source: https://github.com/multimodal-art-projection/YuE
- Source: https://github.com/multimodal-art-projection/YuE/blob/main/MODEL_LICENSE
- Source: https://huggingface.co/api/models/m-a-p/YuE2-3B


## YuE2: songs from lyrics with an editable melody

YuE2 is a free AI music model that turns lyrics and a short style description into a full song with vocals and backing music. It first writes a melody and chord plan you can read and change, then sings it. Individual creators may sell the songs; companies need a separate license.

### Where to use it
- A finished song from your lyrics: Give it your lyrics and a style such as "English, jazz-funk, warm lead vocal", and get a stereo song file.
- Change the tune before it is sung: Open the written melody and chords, change the harmony, tempo or form yourself or with an AI helper, and render a new version.
- A cover in a new style: Turn a recording you have rights to into a melody score, then sing it again in another style with new or the same lyrics.
- Instrumental music without vocals: Ask for calm piano music for reading or similar background tracks; the melody moves to an instrument instead of a voice.
- Songs for your own channel: As a solo creator, make songs for your videos or releases and earn money from them, with no fees to the model makers.
- Quick song sketches for a pitch: Try several styles of the same lyrics, such as pop and jazz, to agree on a direction before a musician records the real track. (idea, not from the official pages)

### How to start
- Use Linux, Python 3.12 and an NVIDIA graphics card with 24 GB of memory. Install the project into a virtual environment.

```
git clone https://github.com/multimodal-art-projection/YuE.git
cd YuE
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install .
```

- Make a first song from the included example; the model files download from Hugging Face on first use.

```
python examples/generate.py --output outputs/first-song
```

- No GPU at hand? The project links a free online demo hosted by a partner.

### License
The code is Apache 2.0, but the model is CC BY-NC 4.0 with an extra permission. Individual creators may sell the songs they make, research use is free, and companies must ask for a commercial license.

### Good to know
- A company product, such as a song feature in your startup's app, is not covered by the free permission. Contact the team for a license first.
- You may not sell or pass on the model files themselves commercially; the free permission covers the songs you make.
- Fraud, harassment and pretending to be a real singer are not allowed. You are responsible for rights in anything you feed in, such as covered songs.
- It needs a 24 GB NVIDIA graphics card and as much free computer memory. One song at a time takes about a minute on a fast card.
- The original YuE v1, which is Apache 2.0 for any use, stays in the same project on its own branch.

Checked 2026-11-10 against: https://github.com/multimodal-art-projection/YuE, https://github.com/multimodal-art-projection/YuE/blob/main/README.md, https://github.com/multimodal-art-projection/YuE/blob/main/MODEL_LICENSE, https://github.com/multimodal-art-projection/YuE/blob/main/LICENSE, https://huggingface.co/m-a-p/YuE2-3B, https://huggingface.co/m-a-p/YuE2-3B/raw/main/README.md, https://huggingface.co/api/models/m-a-p/YuE2-3B

### Mistakes to avoid
- Don't: Following the old YuE v1 commands (infer.py, --stage1_model) on the main branch → Do: Use YuE2Pipeline or examples/generate.py from main; v1 commands live on the YuE-v1 branch (The main branch now holds YuE2; the original YuE is kept on its own branch.)
- Don't: Using cot="full" and a score with chord symbols for a cover → Do: For covers, pass cot="melody" and a melody score without chords (Without chords the accompaniment can adapt to the new style.)
- Don't: Expecting an edited score to change only part of the existing recording → Do: Treat every edit as a new full render, and keep the earlier file (Editing makes a new complete recording.)
- Don't: Building a song feature for a company app on the free license → Do: Get a commercial license for the weights first, or use the Apache 2.0 YuE v1 (The individual creator permission excludes companies.)

### Questions
- Can I put YuE2 songs on YouTube or streaming services and earn money? Yes, as an individual creator, with no fees or royalties to the model makers, as long as you follow the responsible-use conditions.
- Can my company build a product on YuE2? Not under the public license. Companies need a separate commercial license for the model weights.
- Do I have to credit YuE2 on my songs? No. Credit on songs is optional, though the makers ask for "YuE2" or #YuE2. Sharing the model files themselves does require attribution.
- What do I get besides the audio? The output folder also keeps the score, intermediate tokens, generation settings and model names, so a song can be edited and made again.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
