DeepGEMM

DeepGEMM: clean and efficient FP8 GEMM kernels with fine-grained scaling

23 articles 6.6k View on GitHub ↗
23 articles
How to Optimize Memory Layout for BF16 vs FP8 Tensors in DeepGEMM

Optimize BF16 and FP8 tensor memory layouts in DeepGEMM. Learn techniques for row-major alignment and TMA-compatible access on NVIDIA GPUs to boost performance.

performance
Apr 19, 2026
Understanding the head_splits Parameter in fp8_gemm_nt_skip_head_mid for DeepGEMM

Learn how the head_splits parameter in DeepGEMM's FP8 kernel efficiently handles sparse attention by inserting zero-padding and skipping masked computations.

deep-dive
Apr 19, 2026
How to Use DeepGEMM Weight Gradient Kernels for Training Backward Passes

Learn how to use DeepGEMM weight gradient kernels for efficient backward passes in MoE training. Accelerate your deep learning with optimized GEMM operations.

how-to-guide
Apr 19, 2026
fp8_gemm vs fp8_fp4_gemm in DeepGEMM: Architecture, Features, and Migration Guide

Explore fp8_gemm vs fp8_fp4_gemm in DeepGEMM. Understand the core implementation supporting FP8 and FP4 formats on NVIDIA GPUs. Learn architecture, features, and migration.

architecture
Apr 19, 2026
How to Configure Block Size Multiples for Kernel Alignment in DeepGEMM

Configure block size multiples in DeepGEMM with set_block_size_multiple_of() to meet hardware alignment constraints and ensure optimal kernel performance.

how-to-guide
Apr 19, 2026
DeepGEMM Scaling Factor Transformation Utilities: A Complete Guide to FP8 and FP4 Quantization

Explore DeepGEMM's scaling factor transformation utilities for FP8 FP4 quantization. Learn how these helpers convert FP32 tensors into hardware-optimized low-precision formats with quantization metadata.

tutorial
Apr 19, 2026
DeepGEMM Recipe Parameter: How It Controls Kernel Selection and Tensor Layout

Discover how the DeepGEMM recipe parameter controls CUDA kernel selection and tensor layout for FP8/FP4 matrix multiplication. Optimize your deep learning performance.

internals
Apr 19, 2026
DeepGEMM CUDA Graph Compatibility for Masked Grouped GEMMs: Implementation Guide

Learn how DeepGEMM achieves CUDA Graph compatibility for masked grouped GEMMs. Discover its stateless Triton kernel implementation for efficient graph capture.

how-to-guide
Apr 19, 2026
What Is Programmatic Dependent Launch (PDL) in DeepGEMM and How to Enable It

Learn what Programmatic Dependent Launch PDL is in DeepGEMM and how to enable it. Dynamically compute launch parameters at Python runtime for enhanced kernel execution.

deep-dive
Apr 19, 2026
How to Handle NT/NN/TN/TT Transpose Conventions in DeepGEMM

Learn to handle NT NN TN TT transpose conventions in DeepGEMM GEMM APIs. DeepGEMM requires explicit transposition for non-default layouts optimize performance.

how-to-guide
Apr 19, 2026
Performance Implications of NVRTC vs NVCC Compilation in DeepGEMM

Discover NVRTC vs NVCC compilation performance in DeepGEMM. Understand latency differences and caching benefits for optimized deep learning.

performance
Apr 19, 2026
How to Set Up Symmetric Memory Buffers for Multi-Process Mega MoE Execution in DeepGEMM

Learn to set up symmetric memory buffers for multi-process Mega MoE execution in DeepGEMM. Use PyTorch's private API to allocate shared CUDA buffers and create input views for the fused kernel.

how-to-guide
Apr 19, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →