nvidia-cudnn-frontend
NVIDIA cuDNN Frontend — Python and C++ Graph API with SOTA attention (SDPA / Flash Attention), MoE grouped GEMM fusions, and FP8/MXFP8 kernels for Hopper and Blackwell GPUs.
What it is and what it does
nvidia-cudnn-frontend is NVIDIA's modern entry point to cuDNN, offering both a header-only C++ API and Python bindings that abstract the complexity of the cuDNN Graph API. It exposes state-of-the-art GPU kernels including scaled dot-product attention (SDPA/Flash Attention), grouped GEMM fusions for mixture-of-experts training, fused normalization and activation operations, and quantized matrix multiplication in FP8 and MXFP8 precision. The package targets NVIDIA's latest GPU architectures—Hopper (H100/H200) and Blackwell (B200/GB200/GB300)—and includes native PyTorch integration with torch.compile support.
The package ships with open-source kernel implementations (FROST GEMM engine, block-sparse attention, native sparse attention, and fused RMSNorm+SiLU) that developers can inspect, modify, and contribute to. Installation is simple via pip, though it requires NVIDIA driver, CUDA Toolkit, and cuDNN 8.5.0 or later on the system. The library is actively maintained with prebuilt wheels for modern Python versions and multiple architectures.
Use it for:
- Accelerate transformer attention mechanisms in large language models using SDPA kernels optimized for Hopper and Blackwell GPUs.
- Train mixture-of-experts models efficiently with fused grouped GEMM operations that reduce memory bandwidth and kernel launch overhead.
- Deploy quantized deep learning models using FP8 and MXFP8 precision kernels for reduced memory footprint and faster inference.
- Build custom GPU kernels by inspecting and modifying open-source implementations like FROST GEMM and block-sparse attention.
- Integrate cuDNN-accelerated operations into PyTorch models with automatic differentiation and torch.compile support.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python and C++ APIs to NVIDIA's cuDNN library, exposing high-performance GPU kernels for scaled dot-product attention, grouped matrix multiplication for mixture-of-experts training, and fused operations optimized for Hopper and Blackwell GPUs.
Yes. The package is actively maintained, dual-licensed under permissive terms, has no known vulnerabilities, and provides essential optimized kernels for modern GPU workloads. Install it if you are training or deploying deep learning models on NVIDIA Hopper or Blackwell GPUs and need high-performance attention, grouped GEMM, or quantized operations. The requirement for CUDA Toolkit and cuDNN 8.5.0+ is a prerequisite, not a drawback—it reflects the package's tight integration with NVIDIA's GPU stack.
Install
nvidia-cudnn-frontend on PyPI
pip
pip install nvidia-cudnn-frontenduv
uv add nvidia-cudnn-frontendpoetry
poetry add nvidia-cudnn-frontendInstalling nvidia-cudnn-frontend
Before you install
Installation is straightforward via pip with prebuilt wheels for Python 3.10–3.14 on Linux (x86_64 and aarch64) and Windows. The package is actively maintained with a recent release (8 days old) and no known vulnerabilities. Medium install friction reflects the requirement for NVIDIA driver, CUDA Toolkit, and cuDNN 8.5.0 or later to be present on the system.
License in practice
Dual-licensed under Apache-2.0 and MIT, both permissive licenses. You are free to use, modify, and distribute the package in commercial and private projects with minimal restrictions.
Quickstart
pip install nvidia-cudnn-frontend
import cudnn
# Create a graph for scaled dot-product attention
graph = cudnn.pygraph.Graph()
# Configure and execute attention operations on Hopper/Blackwell GPUs
Requires NVIDIA driver, CUDA Toolkit, and cuDNN 8.5.0 or later installed on the system; Python 3.9 or later.
Verify before relying
- Whether the package's autotuning mechanism requires additional configuration or warm-up time for production workloads.
- Performance characteristics and memory overhead of the open-source FROST GEMM engine relative to backend-native plans.
- Compatibility and integration effort with existing PyTorch models beyond the stated torch.compile support.
Package facts
| License | Apache-2.0 AND MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 8 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,479,592/month — #2,292 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: nvidia_cudnn_frontend-1.27.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; nvidia_cudnn_frontend-1.27.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; nvidia_cudnn_frontend-1.27.0-cp310-cp310-win_amd64.whl; nvidia_cudnn_frontend-1.27.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; nvidia_cudnn_frontend-1.27.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; nvidia_cudnn_frontend-1.27.0-cp311-cp311-win_amd64.whl; nvidia_cudnn_frontend-1.27.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; nvidia_cudnn_frontend-1.27.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; nvidia_cudnn_frontend-1.27.0-cp312-cp312-win_amd64.whl; nvidia_cudnn_frontend-1.27.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; nvidia_cudnn_frontend-1.27.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; nvidia_cudnn_frontend-1.27.0-cp313-cp313-win_amd64.whl; nvidia_cudnn_frontend-1.27.0-cp313-cp313-win_arm64.whl; nvidia_cudnn_frontend-1.27.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; nvidia_cudnn_frontend-1.27.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; nvidia_cudnn_frontend-1.27.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; nvidia_cudnn_frontend-1.27.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; nvidia_cudnn_frontend-1.27.0-cp314-cp314t-win_amd64.whl; nvidia_cudnn_frontend-1.27.0-cp314-cp314t-win_arm64.whl; nvidia_cudnn_frontend-1.27.0-cp314-cp314-win_amd64.whl
Keywords: cudnn, cuda, gpu, nvidia, deep-learning, attention, sdpa, flash-attention, transformer, moe, mixture-of-experts, grouped-gemm, fp8, mxfp8, blackwell, hopper, pytorch, kernel, graph-api
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
fa3-fwdProvides a lightweight Flash-Attention-3…
permissive · top 15,000 on PyPI
transformer-engine-cu12Accelerates Transformer model training and…
unclear · top 15,000 on PyPI
tokenspeed-mlaProvides optimized MLA (Multi-head Latent…
permissive · top 5,000 on PyPI
humming-kernelsHumming is a JIT-compiled GEMM kernel library…
unclear · top 5,000 on PyPI
gram-newton-schulzImplements a hardware-aware Gram Newton-Schulz…
permissive · top 15,000 on PyPI
causal-conv1dImplements a CUDA-optimized causal depthwise 1D…
permissive · top 15,000 on PyPI
flash-attn-4GPU-accelerated attention mechanism…
permissive · top 5,000 on PyPI
flashinfer-cubinProvides pre-compiled GPU kernel binaries…
permissive · top 5,000 on PyPI
comfy-kitchenComfy Kitchen provides optimized GPU kernels…
permissive · top 5,000 on PyPI
nvidia-cutlass-dsl-libs-baseProvides Python interfaces for writing…
unclear · top 5,000 on PyPI