Skip to content

[Bugfix] Restore Cache Reuse Mechanism#20

Merged
cennn merged 10 commits into
SandAI-org:mainfrom
themistbeforedawn:main
Apr 14, 2026
Merged

[Bugfix] Restore Cache Reuse Mechanism#20
cennn merged 10 commits into
SandAI-org:mainfrom
themistbeforedawn:main

Conversation

@themistbeforedawn
Copy link
Copy Markdown
Collaborator

🗂️ PR Category

  • ✨ New Feature
  • 🚀 Optimization (performance, memory, etc.)
  • 💥 Breaking Change
  • 🐛 Bug Fix
  • 🛠️ Development / Refactoring
  • 📚 Documentation
  • 🧹 Chore (Dependencies, CI/CD, Configuration, etc.)
  • 🧪 Testing

📝 Description

This PR refactors the MagiCompiler cache system for improved modularity and restores the native TorchInductor cache reuse mechanism, significantly reducing redundant compilation overhead and ensuring long-term stability through a new unit test covering cache hit/miss scenarios.

Comment thread magi_compiler/magi_backend/piecewise_compiler.py Outdated
Comment thread magi_compiler/config.py Outdated
Comment thread tests/feature_tests/test_restart_analysis_cache.py Outdated
Copy link
Copy Markdown
Collaborator

@cennn cennn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cennn cennn merged commit a841c53 into SandAI-org:main Apr 14, 2026
1 check 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.

3 participants