← all repositories
NVIDIA/apex

NVIDIA’s PyTorch staging ground for the impatient

A holding pen for PyTorch performance utilities waiting to graduate upstream.

9k stars Python ML Frameworks
apex
Not currently ranked — collecting fresh signals.
star history

What it does Apex bundles NVIDIA-maintained utilities to streamline mixed precision and distributed training in PyTorch. It acts as an early-access channel: the README states that some code will eventually move into upstream PyTorch, but ships here first for users who want up-to-date optimizations without waiting for core releases. The library spans fused optimizers, custom normalization layers, fast attention kernels, and distributed data-parallel helpers.

The interesting bit The project is essentially a build-your-own-adventure of compiled CUDA extensions. The README lists dozens of optional modules—from fused_conv_bias_relu to fast_multihead_attn—each gated behind its own environment variable, and warns that many apex.contrib pieces may only compile against PyTorch nightlies. A Python-only build exists, but the README notes it deliberately omits the fused kernels that provide the actual speedups.

Key highlights

  • Explicitly designed as a pre-upstream proving ground for PyTorch performance features
  • Dozens of optional C++/CUDA extensions covering optimizers, normalization, attention, and convolutions
  • NVIDIA NGC containers ship with all custom extensions pre-built
  • Experimental Windows support; Linux with full CUDA extensions is the recommended target
  • apex.contrib modules may require PyTorch nightly builds and are not guaranteed against stable releases

Caveats

  • Windows support is explicitly experimental, and a full CUDA build there requires having already built PyTorch from source
  • Many apex.contrib modules target PyTorch nightlies, so stable-release users may hit compatibility issues
  • The Python-only build drops most performance-critical fused kernels, leaving slower fallback paths

Verdict Useful if you are training large PyTorch models on NVIDIA hardware and need bleeding-edge fused kernels or distributed helpers that have not yet reached PyTorch core. Avoid if you expect frictionless installation, native Windows support, or guaranteed stability against PyTorch stable releases.

Frequently asked

What is NVIDIA/apex?
A holding pen for PyTorch performance utilities waiting to graduate upstream.
Is apex open source?
Yes — NVIDIA/apex is open source, released under the BSD-3-Clause license.
What language is apex written in?
NVIDIA/apex is primarily written in Python.
How popular is apex?
NVIDIA/apex has 9k stars on GitHub.
Where can I find apex?
NVIDIA/apex is on GitHub at https://github.com/NVIDIA/apex.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.