skillfed

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.

nvidia-cudnn-frontend v1.27.0 4.5M downloads/30d#2,292 on PyPI904
Permissive license Apache-2.0 AND MIT Active released

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-frontend

uv

uv add nvidia-cudnn-frontend

poetry

poetry add nvidia-cudnn-frontend

Installing 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

Development Status :: 5 - Production/StableEnvironment :: GPU :: NVIDIA CUDAIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseLicense :: OSI Approved :: MIT LicenseOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: C++Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Software Development :: Libraries :: Python Modules

Tags

cudnn python bindingsgpu attention kernelsflash attention implementationmixture of experts gemmnvidia cuda deep learningfp8 matrix multiplicationhopper blackwell gpu kernels
gpu-accelerationtransformer-kernelsquantization

More Python Modules packages

Further reading