h100-diffusers-kernels

Optimize CUDA kernels for diffusion models on NVIDIA H100 GPUs.

16|2|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/burtenshaw/kernel-skill --skill h100-diffusers-kernels
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: h100-diffusers-kernels
Source: https://github.com/burtenshaw/kernel-skill/tree/main/.claude/skills/h100-diffusers-kernels
Command: npx skills add https://github.com/burtenshaw/kernel-skill --skill h100-diffusers-kernels

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires torch, diffusers, ltx_kernels, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides patterns and guidance for writing optimized CUDA kernels on NVIDIA H100 GPUs (sm_90) to maximize performance of diffusion models using the HuggingFace diffusers library.

Core Features & Use Cases

  • Kernel templates and patterns for RMSNorm, RoPE (1D/3D), GEGLU, SwiGLU, and AdaLN tailored to H100.
  • Diffusers integration guidance for LTX-Video, Stable Diffusion, and DiT, including PyTorch bindings and example workflows.
  • Performance optimization guidance covering block sizes, shared memory usage, memory bandwidth considerations, and profiling commands.

Quick Start

Install the minimal working patch example, load the LTX-Video pipeline on CUDA, and run the kernel injection flow to apply the optimized kernels.

Frequently Asked Questions about h100-diffusers-kernels

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize CUDA kernels for diffusion models on H100 GPUs?

Optimize CUDA kernels for diffusion models on H100 GPUs by applying tailored kernel templates for RMSNorm, RoPE, and AdaLN, then injecting them into your PyTorch and Diffusers pipelines to maximize performance.

Can I use optimized CUDA kernels with the LTX-Video pipeline in Diffusers?

Yes, you can use optimized CUDA kernels with LTX-Video in Diffusers by loading the pipeline on CUDA and running the kernel injection flow to patch and verify the integrated RMSNorm and RoPE kernels.

What CUDA kernel patterns are needed for H100 diffusion model acceleration?

Accelerating diffusion models on H100 requires specific CUDA kernel patterns for RMSNorm, RoPE (1D/3D), GEGLU, SwiGLU, and AdaLN, focusing on block sizes, shared memory usage, and memory bandwidth considerations.

Do I need a specific CUDA toolchain to patch Diffusers kernels?

Yes, patching Diffusers kernels requires a CUDA toolchain, PyTorch and Diffusers bindings, and a reproducible injection workflow to successfully apply and verify the optimized H100 kernels.

How do I profile CUDA kernel performance for Stable Diffusion and DiT workflows?

Profile CUDA kernel performance for Stable Diffusion and DiT workflows using provided profiling commands to analyze block sizes, shared memory usage, and memory bandwidth bottlenecks on the H100 architecture.

Why does my RMSNorm kernel underperform when integrated into Diffusers?

An RMSNorm kernel underperforms in Diffusers when block sizes and shared memory usage are not tailored to the H100 architecture, requiring optimization guidance and a reproducible injection workflow to verify performance.