Buckets:

|
download
raw
2.28 kB

kernel-builder skills add

Use kernel-builder skills add to install the skills for AI coding assistants like Claude, Codex, and OpenCode. Supported skills include:

  • cuda-kernels (default)
  • rocm-kernels
  • xpu-kernels
  • cpu-kernels

Skill files are downloaded from the huggingface/kernels directory in this repository.

Skills instruct agents how to deal with hardware-specific optimizations, integrate with libraries like diffusers and transformers, and benchmark kernel performance in consistent ways.

When are CPU kernels actually helpful? Two main cases:

  • Better performance on Intel Xeon — custom AVX2/AVX512 kernels (and AMX via brgemm for quantized GEMM) outperform generic PyTorch ops for element-wise and quantized workloads, especially in CPU-only or latency-sensitive serving.
  • Enabling functionality that otherwise can't run — some kernels are a hard requirement, e.g. megablocks MoE on CPU, where without the kernel you simply cannot run MXFP4.

Example CPU kernels built with this skill (available on the Hub under kernels-community):

Examples:

<CopyLLMTxtMenu containerStyle="float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"></CopyLLMTxtMenu>

# install for Claude in the current project
kernel-builder skills add --claude

# install ROCm kernels skill for Codex
kernel-builder skills add --skill rocm-kernels --codex

# install globally for Codex
kernel-builder skills add --codex --global

# install for multiple assistants
kernel-builder skills add --claude --codex --opencode

# install to a custom destination and overwrite if already present
kernel-builder skills add --dest ~/my-skills --force

Xet Storage Details

Size:
2.28 kB
·
Xet hash:
874b5101fb3b3808df753be8fc513479a31ae9f6d421f678852c3a99b4270d6a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.