aoti-debug
A skill kept in the PyTorch repository for debugging AOTInductor, PyTorch's ahead-of-time compiler, when compiled models crash or fail: segfaults, device mismatches, constant-loading errors and CUDA illegal memory accesses.
What the skill teaches
A skill kept in the PyTorch repository for debugging AOTInductor, PyTorch's ahead-of-time compiler, when compiled models crash or fail: segfaults, device mismatches, constant-loading errors and CUDA illegal memory accesses. It starts with three checks (same device type at compile and load time, inputs on the right device, input shapes matching the compiled constraints), then gives a step-by-step route for memory errors: turn on input and NaN checks, make failures reproducible by disabling the caching allocator and forcing synchronous launches, and print kernels as they run to find the culprit. It lists the relevant environment variables and notes that the older aot_compile and aot_load functions are deprecated.
Capabilities
- Check device and shape mismatches in AOTInductor models
- Narrow down CUDA illegal memory access errors
- Print kernels at run time to find a failing one
- Pick the right debug environment variables
About
- Publisher
- PyTorch
- Tool
- Debugging
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
What's inside
- triton-index-out-of-bounds.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Debugging | |
| Publisher | PyTorch | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | NOASSERTION | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 2026105,390 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
More from PyTorch
16 skills
- ci-metrics (Skill)
- fix-issue (Skill)
- ghstack-ci (Skill)
- deprecate-feature (Skill)
- metal-kernel (Skill)
- pr-review (Skill)
Also listed under: Debugging
Sources
- Skill file (SKILL.md)github.com/pytorch/pytorch · Backs: Publisher, LicenceNov 10, 2026
- GitHub repositorygithub.com/pytorch/pytorch · Backs: ActivityNov 11, 2026
- Folder in the repository (aoti-debug)github.com/pytorch/pytorch · Backs: Includes scriptsNov 10, 2026