How multimodal-art-projection/yue works
YuE2 is a local music-generation runtime and agent skill: users provide lyrics and style, receive an editable symbolic plan, then generate and decode audio. Covers start from a transcribed score; the instrumental skill prepares or adapts scores before generation. The graph reflects README-documented stages and indexed source references; unsampled implementation details and editing internals are not expanded into speculative call paths.
Main entry points: pipeline.py Generation Pipeline · instrumental.py Instrumental Workflow · cli.py Python CLI · yue2-music Music Agent Skill
Components 22
User Interfaces
- Python CLI
src/yue2/cli.py - Music Agent Skill
skills/yue2-music
Composition Workflows
- Instrumental Workflow
skills/yue2-music/instrumental/scripts/instrumental.py - Cover Transcription
skills/yue2-music/instrumental/scripts/transcribe_cover.py - Event Compiler
skills/yue2-music/instrumental/scripts/compile_score.py
Generation Runtime
- Generation Pipeline
src/yue2/pipeline.py - Request Protocol
src/yue2/protocol.py - Token Sampling
src/yue2/sampling.py - Acoustic Synthesis
src/yue2/nar.py - Device Selection
src/yue2/devices.py - Model Placement
src/yue2/placement.py - Progress Reporting
src/yue2/progress.py - YuE2 Tokenizer
src/yue2/tokenization_yue2.py
Models and Acceleration
- AR-NAR Transformer
src/yue2/modeling_yue2.py - Audio VAE
src/yue2/modeling_vae.py - Optional vLLM Worker
src/yue2/fast.py - CUDA Graph Support
src/yue2/cuda_graph.py
Artifacts and Scores
- ABC Score Tools
skills/yue2-music/scripts/abc_tools.py - Model and Result Storage
src/yue2/storage.py - Editable ABC Score
skills/yue2-music/scripts/abc_tools.py - Generated Audio
Other components
- Creator or Agent
Connections 23
- Creator or Agent → Python CLI: submits request
README.md - Creator or Agent → Music Agent Skill: requests music
README.md - Python CLI → Generation Pipeline: invokes generation
src/yue2/cli.py - Generation Pipeline → Request Protocol: validates request
src/yue2/pipeline.py - Generation Pipeline → Token Sampling: configures sampling
src/yue2/pipeline.py - Generation Pipeline → YuE2 Tokenizer: encodes prompts
src/yue2/pipeline.py - Generation Pipeline → AR-NAR Transformer: plans and generates
README.md - Generation Pipeline → Acoustic Synthesis: synthesizes latents
README.md - Generation Pipeline → Audio VAE: decodes latents
README.md - Generation Pipeline → Device Selection: selects device
src/yue2/pipeline.py - Generation Pipeline → Model Placement: places models
src/yue2/pipeline.py - Generation Pipeline → Progress Reporting: reports progress
src/yue2/pipeline.py - Generation Pipeline → Model and Result Storage: loads and saves
src/yue2/pipeline.py - Token Sampling → CUDA Graph Support: may use graphs
src/yue2/sampling.py - Generation Pipeline → Optional vLLM Worker: may select backend
src/yue2/pipeline.py - Generation Pipeline → Generated Audio: returns audio
README.md - Generation Pipeline → Editable ABC Score: produces plan
README.md - Music Agent Skill → Instrumental Workflow: runs workflow
README.md - Instrumental Workflow → Cover Transcription: transcribes references
skills/yue2-music/instrumental/scripts/instrumental.py - Instrumental Workflow → Event Compiler: compiles events
skills/yue2-music/instrumental/scripts/instrumental.py - Instrumental Workflow → ABC Score Tools: validates score
skills/yue2-music/instrumental/scripts/instrumental.py - Event Compiler → ABC Score Tools: checks chord symbols
skills/yue2-music/instrumental/scripts/compile_score.py - Instrumental Workflow → Python CLI: submits generation