Cuda Kernels

Provides guidance for writing and benchmarking optimized CUDA kernels for NVIDIA GPUs (H100, A100, T4) targeting HuggingFace diffusers and transformers libraries. Kernels must be kernel-builder/ABI3-compliant: no pybind11, no setup.py, TORCH_LIBRARY_EXPAND bindings only. Supports models like LTX-Video, Stable Diffusion, LLaMA, Mistral, and Qwen. Includes integration with HuggingFace Kernels Hub (get_kernel) for loading pre-compiled kernels. Includes benchmarking scripts to compare kernel performance against baseline implementations.

Hugging Face bd349a2 16 files · 190.0 KB Updated 10.8k repo stars

File contents

huggingface/kernels/tree/main/kernel-builder/skills/cuda-kernels commit bd349a29d1

Frequently asked questions

npx skillmds@latest add huggingface/cuda-kernels