Kernels documentation
Build variants
Get started
Use kernels
QuickstartUse layersLock kernel versionsEnvironment variablesProjects using kernelsMigrate from older versionsKernels securityFAQ
Python API
kernels CLI
Overviewkernels infokernels variantskernels versions (deprecated)kernels lockkernels downloadkernels benchmarkkernels verify-signature
Build kernels
Write kernelsBuild with NixDevelop locallySet up your IDESet up for Metal kernelsDevelop kernels with agentsSecure your kernelsGitHub Actions & HF Jobs
kernel-builder CLI
Advanced practices
Kernel specifications
Concepts & design
Resources
You are viewing main version, which requires installation from source. If you'd like
regular pip install, checkout the latest stable version (v0.17.2).
Build variants
A kernel can be compliant for a specific compute framework (e.g. CUDA) or architecture (e.g. x86_64). For compliance with a compute framework and architecture combination, all the build variants listed below must be available. This list will be updated as new PyTorch versions are released.
CPU aarch64-darwin
torch213-cpu-aarch64-darwintorch214-cpu-aarch64-darwin
Metal aarch64-darwin
torch210-metal-aarch64-darwintorch211-metal-aarch64-darwintorch212-metal-aarch64-darwintorch213-metal-aarch64-darwintorch214-metal-aarch64-darwin
CPU aarch64-linux
torch213-cpu-aarch64-linuxtorch214-cpu-aarch64-linux
CUDA aarch64-linux
torch213-cu126-aarch64-linuxtorch213-cu130-aarch64-linuxtorch213-cu132-aarch64-linuxtorch214-cu126-aarch64-linuxtorch214-cu130-aarch64-linuxtorch214-cu132-aarch64-linux
CPU x86_64-linux
torch213-cpu-x86_64-linuxtorch214-cpu-x86_64-linux
CUDA x86_64-linux
torch213-cu126-x86_64-linuxtorch213-cu130-x86_64-linuxtorch213-cu132-x86_64-linuxtorch214-cu126-x86_64-linuxtorch214-cu130-x86_64-linuxtorch214-cu132-x86_64-linux
ROCm x86_64-linux
torch213-rocm71-x86_64-linuxtorch213-rocm72-x86_64-linuxtorch214-rocm714-x86_64-linuxtorch214-rocm72-x86_64-linux
XPU x86_64-linux
torch210-xpu20253-x86_64-linuxtorch211-xpu20253-x86_64-linuxtorch212-xpu20253-x86_64-linuxtorch213-xpu20260-x86_64-linuxtorch214-xpu20261-x86_64-linux
Python-only kernels
Kernels that are in pure Python (e.g. Triton kernels) only need to provide one or more of the following variants:
torch-cputorch-cudatorch-metaltorch-rocmtorch-xpu