muzic
Route Microsoft Muzic research workflows for music understanding, retrieval, symbolic generation, songwriting, and MusicAgent orchestration.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- muzic
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Route Microsoft Muzic research workflows for music understanding, retrieval, symbolic generation, songwriting, and MusicAgent orchestration.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/project-map.md6.5 KB
- 参考文档references/repo-provenance.md3.3 KB
- 参考文档references/repo-routing-metadata.json493 B
- 参考文档references/setup-and-environments.md4.3 KB
- 参考文档references/troubleshooting.md4.9 KB
- 脚本scripts/check_muzic_workspace.py4.8 KB
03 SKILL.md 正文
Muzic Repo Skill
Use this skill when a task names Muzic or asks for AI-music workflows that match the Muzic research projects: symbolic music understanding, cross-modal music retrieval, lyrics transcription augmentation, lyric-to-melody songwriting, symbolic music generation, structure/form/emotion control, or MusicAgent orchestration.
Muzic is a research monorepo, not a single pip-installable Python package. Most workflows are project-specific scripts with old dependency stacks, external datasets, checkpoints, or credentials. Start by routing to the right sub-skill, then validate inputs and runtime prerequisites before running heavyweight model code.
Quick routing
| User intent | Read |
|---|---|
| MusicBERT OctupleMIDI, symbolic music understanding, pretraining/fine-tuning/evaluation, PDAugment speech/MIDI augmentation, or CLaMP semantic search/zero-shot classification | sub-skills/music-understanding-retrieval/SKILL.md |
| DeepRapper rap lyrics, SongMASS lyric-to-melody or melody-to-lyric, TeleMelody, ReLyMe, ROC, lyric/chord templates, songwriting metrics | sub-skills/lyric-melody-songwriting/SKILL.md |
| GETMusic any-track generation/infilling, MuseCoco text-to-music, Museformer long structure, MeloForm form refinement, EmoGen emotion-controlled generation | sub-skills/symbolic-generation-structure/SKILL.md |
| MusicAgent installation, config, secrets, model/tool downloads, CLI or Gradio startup, plugin/tool selection | sub-skills/music-agent-workflows/SKILL.md |
| Repo-wide setup, dependency-family choices, old-stack caveats, and safe workspace checks | references/setup-and-environments.md and scripts/check_muzic_workspace.py |
| One-table map of Muzic subprojects, typical inputs, outputs, and owner sub-skill | references/project-map.md |
| Cross-cutting install, data, checkpoint, backend, and credential failures | references/troubleshooting.md |
First steps for any Muzic task
-
Identify the subproject and task family from references/project-map.md.
-
Check whether the request is only planning/validation or an actual model run. Model runs often need checkpoints, datasets, old Torch/Fairseq/TensorFlow versions, CUDA, Java, system audio packages, or API credentials.
-
If the user has a Muzic checkout or prepared workspace, run the safe checker before expensive commands:
python scripts/check_muzic_workspace.py --workspace /path/to/muzic --expect musicbert clamp getmusic musicagent -
Load the nearest sub-skill and its references. Use bundled validators/planners there before invoking original research scripts.
-
When giving commands, state the required working directory, input files, expected outputs, dependency family, and what is intentionally not verified.
Setup stance
- Do not install root
requirements.txtblindly. It pins old and conflicting ML stacks; choose the smallest per-project environment described in references/setup-and-environments.md. - Treat full training and inference as data/checkpoint/backend dependent unless a sub-skill explicitly identifies a CPU-only validation path.
- Do not assume Hugging Face, Google Drive, or dataset downloads are acceptable. Ask or plan explicitly before network-heavy downloads.
- Do not hardcode credentials, local cache paths, or
.envvalues in instructions or generated files. - Do not mutate system package managers, Conda base, or user environments without approval.
Safe bundled helpers
Root helper:
python scripts/check_muzic_workspace.py --help
Sub-skill helpers:
sub-skills/music-understanding-retrieval/scripts/validate_clamp_inputs.pysub-skills/music-understanding-retrieval/scripts/validate_pdaugment_layout.pysub-skills/lyric-melody-songwriting/scripts/plan_deeprapper_command.pysub-skills/lyric-melody-songwriting/scripts/check_songmass_telemelody_assets.pysub-skills/lyric-melody-songwriting/scripts/make_roc_input_template.pysub-skills/symbolic-generation-structure/scripts/validate_getmusic_request.pysub-skills/symbolic-generation-structure/scripts/plan_musecoco_pipeline.pysub-skills/music-agent-workflows/scripts/validate_musicagent_config.py
These helpers are self-contained planning or layout checks. They do not load Muzic model weights, contact remote services, run training, or import source checkout modules.
Provenance and routing metadata
- Source snapshot and evidence baseline: references/repo-provenance.md.
- Managed router metadata for repo-skill import tooling: references/repo-routing-metadata.json.
Non-goals
- This skill does not replace the Muzic research code, checkpoints, datasets, or external model assets.
- This skill does not certify that optional CUDA/Triton/Java/system-audio/API-key workflows run in the current environment.
- This skill does not export or import itself; import is intentionally disabled for this production run.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).