Provides 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.
$npx -y skills add huggingface/kernels --skill xpu-kernelsInstalls into the current project.
Run `npx skills use "https://github.com/huggingface/kernels" --skill "huggingface/kernels/xpu-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.