huggingfacehuggingfaceOfficialยท5 Agent Skills Included

kernels

Build, optimize, and load fast GPU and CPU compute kernels

Loads pre-compiled compute kernels directly from the Hugging Face Hub into any Python project. Guides AI agents to write and optimize CUDA, Triton, ROCm, Intel XPU, and CPU SIMD kernels for models like LLaMA and Stable Diffusion. Removes manual compilation, version conflicts, and slow default PyTorch operations with tested benchmarks and ready-made templates.
npx skills add huggingface/kernels --all -g -y

All Skills in This Repository (5)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install kernels?โ–ผ

Run `npx skills add huggingface/kernels --all -g -y` in your terminal to install all kernel skills globally.

What does the Hugging Face kernels project do?โ–ผ

It lets Python apps download and load pre-compiled GPU and CPU kernels from the Hugging Face Hub, so you get fast compute operations without compiling anything locally.

How to write a custom CUDA kernel for PyTorch?โ–ผ

The cuda-kernels skill gives your AI agent strict build rules, binding templates, and benchmark scripts to produce compliant kernels for H100, A100, and T4 GPUs.

Can I optimize kernels for AMD or Intel GPUs?โ–ผ

Yes. Dedicated skills cover Triton kernels for AMD ROCm GPUs and Intel XPU, including autotuning, profiling, and end-to-end model benchmarks.

Do I need kernel programming experience to use this?โ–ผ

No. Your AI agent follows the step-by-step workflows in each skill to write, test, and benchmark kernels from your plain-English request.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’