port-to-torch-stable-abi
Port a Python package's compiled C++/CUDA/ROCm extension to the PyTorch stable ABI (torch::stable, STABLE_TORCH_LIBRARY, TORCH_TARGET_VERSION) so one wheel works across Torch versions, then assess Python abi3 (Py_LIMITED_API). Use when a project ships a Torch extension that is version-locked to a single Torch release, or when asked to adopt the stable ABI / torch::stable / stop rebuilding per Torch version.
Pinned to revision 0c51c24122b3, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/port-to-torch-stable-abi/SKILL.md
- skills/port-to-torch-stable-abi/AGENTS.md
- skills/port-to-torch-stable-abi/README.md
- skills/port-to-torch-stable-abi/reference/background.md
- skills/port-to-torch-stable-abi/reference/ports.md
- skills/port-to-torch-stable-abi/reference/substitutions.md
- skills/port-to-torch-stable-abi/reference/torch-compile.md
- skills/port-to-torch-stable-abi/scripts/torch_target_version.py
Every link opens the file at its source, pinned to the revision this page describes.