nixl
NIXL Python API meta package for CUDA variants
What it is and what it does
nixl is a meta package that bundles both CUDA 12 and CUDA 13 backends for PyTorch. When you install it via pip, you get both backends included, and the package automatically detects your system's CUDA version at runtime to select the correct one. This eliminates the need to manually choose and install the right CUDA variant yourself. The package is actively maintained and released recently, with low installation friction since it distributes as a pure Python wheel.
The design is particularly useful for environments where CUDA versions might vary or where you want to distribute a single package that works across different CUDA setups. The `nixl[cu12]` and `nixl[cu13]` extras are supported for backward compatibility but don't change the behavior—the automatic selection still occurs at runtime.
Use it for:
- Deploying PyTorch applications across systems with different CUDA versions without rebuilding or maintaining separate packages
- Simplifying dependency management in containerized environments where CUDA version detection is needed at runtime
- Building Python packages that depend on nixl and need to work with multiple CUDA backends transparently
- Testing PyTorch code against both CUDA 12 and CUDA 13 without manual backend switching
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
nixl is a meta package that automatically selects and installs the correct CUDA 12 or CUDA 13 backend for PyTorch at runtime based on your system's CUDA version.
Yes, if you use PyTorch with CUDA and want to avoid manual backend selection. The package is actively maintained, has no known vulnerabilities, uses permissive licensing, and installs with low friction. Install it when you need transparent CUDA version detection; skip it if you manually manage CUDA backends or use CPU-only PyTorch.
Install
nixl on PyPI
pip
pip install nixluv
uv add nixlpoetry
poetry add nixlInstalling nixl
Before you install
Active maintenance with a recent release. Low install friction as a pure Python wheel. Requires Python 3.10 or later.
License in practice
Licensed under MIT AND Apache-2.0 (permissive dual licensing), allowing use in most commercial and open-source projects without restriction.
Quickstart
pip install nixl
import nixl
# Backend selection happens automatically at import time based on system CUDA version
Requires Python 3.10 or later and a PyTorch installation with CUDA support already configured on your system.
Verify before relying
- Whether the automatic CUDA backend selection works correctly across all PyTorch versions and CUDA driver configurations
- Performance characteristics or overhead of the runtime backend selection mechanism
- Compatibility with non-PyTorch CUDA applications or mixed CUDA environments
Package facts
| License | MIT AND Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — nixl-cu12, nixl-cu13 |
| Maintenance | actively maintained — 0 days since the last release |
| First released | |
| Downloads | 500,426/month — #6,320 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: nixl-1.4.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
nixl-cu13NIXL provides Python bindings to accelerate…
permissive · top 15,000 on PyPI
nixl-cu12NIXL provides Python bindings to accelerate…
permissive · top 15,000 on PyPI
cuda-toolkitA meta-package that installs NVIDIA CUDA…
unclear · top 1,000 on PyPI
nvidia-cusparse-cu12Provides NVIDIA CUSPARSE native runtime…
unclear · top 1,000 on PyPI
nvidia-cudnn-cu13Provides cuDNN runtime libraries for…
unclear · top 1,000 on PyPI
nccl4pynccl4py provides Python bindings to NVIDIA's…
permissive · top 15,000 on PyPI
slangtorchslangtorch lets you write PyTorch kernels in…
permissive · top 15,000 on PyPI
cuequivariance-torchPyTorch bindings for NVIDIA's CUDA-accelerated…
permissive · top 15,000 on PyPI
cuda-coreProvides Pythonic APIs to access CUDA core…
permissive · top 5,000 on PyPI
flash-attn-4GPU-accelerated attention mechanism…
permissive · top 5,000 on PyPI