huggingface/kernels
Build compute kernels and load them from the Hub.
https://skillcdn.ai/gh/huggingface/kernelsConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
main - Commit
4ede10a - License
Apache-2.0 - Searchwords
Explore this repository
Searches the original text of skills and documents, and the translations of skills when you search in their language.
Folders
Skills
- cpu-kernelsProvides guidance for writing, optimizing, and benchmarking C++ CPU kernels with SIMD intrinsics (AVX2/AVX512) for the Hugging Face kernels ecosystem. Includes a two-phase workflow: Phase 1 correctness (generic → AVX2) and Phase 2 performance exploration (AVX512 with branching trial loop), runtime CPU dispatch, OpenMP threading, and brgemm integration for GEMM-heavy kernels.Apache-2.0
- cuda-kernelsProvides 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.Apache-2.0
- rocm-kernelsProvides 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.Apache-2.0
- xpu-kernelsProvides guidance for writing, optimizing, and benchmarking Triton kernels for Intel XPU GPUs (Battlemage/Arc Pro B50) using the Xe-Forge optimization framework. Includes an LLM-driven trial-loop workflow (analyze, validate, benchmark, profile, finalize), XPU-specific patterns (tensor descriptors, GRF mode, tile swizzling), KernelBench fused kernels, and Flash Attention.Apache-2.0
Skipped (8)
These manifests were not served. Fix them and push: the next commit is indexed again.
kernel-builder/skills/rocm-kernels/SKILL.mdlink_missing4 links name no file of the repository (references/skill-evaluation-methodology.md, references/kernel-agent-knowledge-base.md, scripts/sweep_num_warps.py, ...)kernel-builder/skills/triton-kernels/SKILL.mdmissing_front_matterSKILL.md must start with YAML front-matterdocs/source/builder/design-overview.mdlink_missinga link names no file of the repository (./design-nix-builder)docs/source/builder/security.mdlink_missinga link names no file of the repository (kernel-requirements.md)docs/source/builder/writing-kernels.mdlink_missinga link names no file of the repository (nix.md)docs/source/kernel-requirements.mdlink_missinga link names no file of the repository (builder/build-variants)kernel-builder/skills/cuda-kernels/references/diffusers-h100.mdlink_missing6 links name no file of the repository (references/diffusers-integration.md, references/troubleshooting.md, references/kernel-templates.md, ...)kernel-builder/skills/cuda-kernels/references/diffusers-integration.mdlink_missinga link names no file of the repository (ltx_kernel_injection_example.py)