Repository navigation
Releases
Release Notes: MagiCompiler v1.1.0 ⚡
We are thrilled to announce the release of MagiCompiler v1.1.0!
Following our v1.1.0 milestone, this cycle focuses heavily on practical performance acceleration and developer experience. We have pushed the boundaries of model optimization and fusion capabilities, while also introducing a much more intuitive API for custom operators and ready-to-use training recipes.
A massive thank you to everyone who contributed to this release! 🚀
🌟 What's New
⚡ Performance Acceleration
-
🔥 Massive VAE Inference Acceleration: We achieved highly optimized decoding speeds for VAE inference via dynamic Conv layout rearrangement. This substantially reduces decoding overhead and memory bottlenecks, yielding a significant 1.87x speedup. We have also provided ready-to-use examples so you can easily reproduce these high-performance results out of the box!
-
Matmul Epilogue Fusion: Unlocked aggressive new fusion patterns to directly boost compute throughput. Supported fusions now include chain fusion for
Matmul + element-wise ops, as well asMatmul + swiglu_fwd. -
Robust Artifact Caching: Overhauled our caching system. The new load/save mechanism robustly reuses the compilation cache, drastically reducing recompilation times and warmup overhead across runs.
-
AutoRecompute & Frontend Fixes: Deeply refactored the AutoRecompute mechanism for training to lay a cleaner foundation for maximizing throughput, and resolved underlying capture speed issues for a much faster full-graph capturing experience.
🤝 Community & Ecosystem
-
Enhanced Custom Op API (
magi_register_custom_op): Integrating your own operators is now more intuitive than ever! The API elegantly supports custom dataclasses and can auto-infer output metadata, stripping away the boilerplate previously required for custom op registration. -
New Training Examples: To help developers hit the ground running, we've added comprehensive Llama-3 training recipes, demonstrating how to seamlessly weave MagiCompiler into standard LLM training loops.
New Contributors
- @cennn made their first contribution in #1
- @wtr0504 made their first contribution in #2
- @jiahy0825 made their first contribution in #5
- @songh11 made their first contribution in #12
- @ooooo-create made their first contribution in #19
- @themistbeforedawn made their first contribution in #20
- @Young-Leo made their first contribution in #37
Full Changelog: v1.0.0...v1.1.0
MagiCompiler v1.0.0: Break the Boundaries of Local Compilation
We are excited to announce the official release of MagiCompiler v1.0.0! 🎉
MagiCompiler is an advanced compiler and runtime augmentation framework built on top of torch.compile, designed specifically for large-scale Transformer-like models. Going beyond local operator optimization, it brings system-level optimization to both multi-modal inference and large-model training.
Release Highlights
- Whole-graph compilation for multi-modal inference across Transformer boundaries.
- FSDP-aware whole-layer compilation for large-model training with transparent parameter sharding.
- Plug-and-play integration with minimal code intrusion.
- Smart asynchronous offloading and heuristic activation recomputation to perfectly balance compute efficiency and memory footprint.
- Better interpretability through human-readable graph and kernel artifacts dumps.
About This Release
v1.0.0 marks our first official open-source release and the starting point of our Compiler as Manager vision: reimagining the compiler not just as a kernel generator, but as a system-level manager orchestrating execution, dataflow, and memory.
We welcome feedback, issues, and contributions from the community.