Provides guidance for writing and benchmarking optimized Triton kernels for AMD GPUs (MI355X, R9700) on ROCm, targeting HuggingFace diffusers (LTX-Video, SD3, FLUX) and transformers. Core kernels: RMSNorm, RoPE 3D, GEGLU, AdaLN. Includes XCD swizzle, autotune, diffusers integration patterns, and LTX-Video pipeline injection.
$npx -y skills add huggingface/kernels --skill rocm-kernelsInstalls into the current project.
Run `npx skills use "https://github.com/huggingface/kernels" --skill "huggingface/kernels/rocm-kernels"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/huggingface/kernels" that are relevant to the current task. Run `npx skills add "https://github.com/huggingface/kernels"` and select the relevant skills, then follow their instructions.