SandAI-orgSandAI-orgOfficialยท1 Agent Skills Included

MagiCompiler

Full-graph compilation and strict PR code review for PyTorch

Accelerates large Transformer training and inference with full-graph compilation built on torch.compile. Eliminates memory bottlenecks, manual checkpoint tuning, and scattered compile decorators with two simple decorators. Includes a strict code review skill that inspects PR diffs, flags bugs by severity, and saves structured markdown reports.
npx skills add SandAI-org/MagiCompiler --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install MagiCompiler?โ–ผ

Run `npx skills add SandAI-org/MagiCompiler --all -g -y` in your terminal to install all skills in this repository globally.

What does MagiCompiler do?โ–ผ

It is a compiler framework built on torch.compile that speeds up large Transformer training and inference through full-graph capture, smart offloading, and automatic activation recomputation.

How to speed up PyTorch model training?โ–ผ

Decorate your core Transformer block once with @magi_compile to get FSDP-aware layer-wise compilation and up to 20% extra speedup with no model refactoring.

How to review a PR with the code-review skill?โ–ผ

Ask your agent to review a PR or branch, and it fetches only the ahead-of-base diff, applies a strict P0-P4 severity framework, and saves a markdown report in the repo.

Does MagiCompiler require code changes?โ–ผ

Almost none. Two decorators deliver the acceleration out of the box, and it integrates into existing multi-modality frameworks with minimal intrusion.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’