A variant-enabled build of uv
read at source ↗ astral.sh
A variant-enabled build of uv
Source: Astral Date: 2025-08-13 URL: https://astral.sh/blog/wheel-variants
Summary
Astral shipped an experimental variant-enabled uv build, developed with PyTorch, NVIDIA, and Quansight, that automatically selects the correct wheel for the detected hardware — CUDA 12.8, ROCm, XPU, or CPU-only — when running uv pip install torch. The mechanism is a generalized wheel variants framework (hardware queries via vendor provider plugins) applicable beyond GPUs to CPU instruction sets and SIMD. A formal PEP submission via the WheelNext project is planned before year-end.
Implications
uv becoming the mandatory installer for ML/GPU Python. The PyTorch ecosystem has historically required manual index juggling (--extra-index-url https://download.pytorch.org/whl/cu128) — a persistent friction point that keeps ML engineers on manual install scripts or conda. Auto-variant selection removes that friction at the installer level. The WheelNext PEP is Astral co-authoring a Python packaging standard with NVIDIA and PyTorch, which is a significant standards capture move. If the PEP lands, pip would need to implement variants to remain viable in ML contexts — or cede that market to uv.