YuE
YuE2: frontier music generation with symbolic planning, zero-shot covers, and agentic music editing.
Learn how the YuE truncated flag in SymbolicPlan and SemanticResult signals token limits were reached during generation, preventing full musical sequence completion. Optimize your model's output.
How YuE2TextTokenizer Reuses qwen.tiktoken and Enforces Strict Vocabulary ConstraintsExplore how YuE2TextTokenizer leverages qwen.tiktoken for identical tokenization to Qwen models while enforcing strict vocabulary constraints and expanding for music-language tasks.
Why YuE2Pipeline.__call__ Raises InterruptedError on Cancellation Instead of Returning Partial ResultsUnderstand why YuE2Pipeline raises InterruptedError on cancellation instead of returning partial results. Learn about atomic contracts and efficient computation handling.
How `save_artifacts` Lays Out Output Files for Full Run Reproducibility in YuEUnderstand how save_artifacts in YuE serializes semantic plans, audio, and intermediate representations to a single directory for complete run reproducibility. Ensure your generations are always repeatable.
What Does the top_p Nucleus Filter’s Carve‑Out Guarantee for Top‑Rank Token Survival?Discover how the top_p nucleus filter's carve-out ensures the highest-probability token always survives, preserving the model's top prediction even beyond the nucleus threshold. Learn more about token survival.
How the `memory_budget_gib` Clamp Works with Per-Process Memory Fraction and Safety Reserve in YuELearn how YuE's memory_budget_gib clamp utilizes per-process memory fraction and safety reserve to prevent exceeding GPU memory limits and avoid negative values.
How YuE's `synthesize()` Moves the AR Transformer Off-Device During Flow Matching with `offload_ar=True`YuE's synthesize() with offload_ar=True moves the AR transformer off-device to CPU reducing VRAM needs. Learn how this benefits consumers by enabling flow matching on consumer hardware.
How model_identity and sha256_file Compose a Deterministic Request Hash in YuELearn how YuE uses model_identity and sha256_file to create a deterministic request hash for precise cache invalidation and full reproducibility. Understand runtime SHA inclusion.
What the legacy_off BF16-vs-FP32 Logits Branch Preserves from YuE1 DecodingDiscover how the legacy_off BF16-vs-FP32 logits branch maintains bitwise compatibility by preserving BF16-quantized logits from YuE1 decoding, avoiding FP32 conversion for precise token selection in YuE2.
How YuE2Pipeline.synthesize() Restores Unquantized AR Weights After FP8 DecodingDiscover how YuE2Pipeline.synthesize() restores unquantized AR weights after FP8 decoding and learn about the 14-15 GiB VRAM cost for the YuE2-3B model.
Why YuE's effective_config Emits a cfg_negative String and Who Consumes ItDiscover why YuE's effective_config emits cfg_negative. Learn how this flag ensures reproducibility and auditability for music generation, consumed by CLI, exporters, and tests.
How `generation_config` Discovery via `pipeline.json` Enables Overriding Default Pipeline Parameters in YuELearn how YuE pipeline.json enables generation_config discovery, overriding default parameters and customizing your art projection. Maximize control with effective_config merging.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →