Skip to content

refactor(musa): migrate Slime bootstrap from musa_patch to musa_titan - #2489

Merged
zhuzilin merged 1 commit into
THUDM:mainfrom
ForAxel:dev/musa-titan-261021
Oct 22, 2026
Merged

zhuzilin merged 1 commit into
THUDM:mainfrom
ForAxel:dev/musa-titan-261021

Conversation

@ForAxel

@ForAxel ForAxel commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Replace the legacy musa_patch bootstrap with musa_titan while preserving
Slime's one-time accelerator initialization behavior.

Changes

  • Read MUSA_TITAN_PATH instead of MUSA_PATCH_PATH.
  • Import musa_titan and maintain its path in sys.path.
  • Prefer apply_rl_patch(), with patch_after_import_torch() as fallback.
  • Update MUSA environment detection, backend selection, and error messages.
  • Add tests for path injection, callback selection, fallback, and missing
    dependencies.

Compatibility

Breaking change: MUSA launchers must set MUSA_TITAN_PATH. MUSA_PATCH_PATH
is no longer read, and the legacy musa_patch checkout should be removed from
PYTHONPATH.

@zhuzilin
zhuzilin merged commit 18868a7 into THUDM:main Oct 22, 2026
113 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants