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
Documents
- _config.pydocs/source/_config.py
- _toctree.ymldocs/source/_toctree.yml
- QuickstartHere is how you would use the activation kernels from the Hugging Face Hub:docs/source/basic-usage.md
- Blog postsThis page lists blog posts on the Kernels project. See the full list tagged kernels on the Hugging Face blog:docs/source/blog.md
- CLI reference for kernel-builderThis document contains the help content for the kernel-builder command-line program.docs/source/builder-cli.md
- kernels benchmarkUse kernels benchmark to run benchmark scripts shipped with a kernel repository.docs/source/cli-benchmark.md
- kernels cache lsList kernel versions stored in the local Hugging Face cache. The command runs locally and does not download or load kernel code.docs/source/cli-cache.md
- kernels describe-apiUse kernels describe-api to list a kernel's public functions and layers from the symbols.json generated at build time.docs/source/cli-describe-api.md
- kernels downloadUse kernels download to download kernels that have been locked in a project's kernels.lock file.docs/source/cli-download.md
- kernels infoUse kernels info to describe a kernel from a Hub repo ID or a local path. It prints the kernel metadata (name, version, license, upstream/source repositories, and supported backends), along with the…docs/source/cli-info.md
- kernels lockUse kernels lock to generate a kernels.lock file that pins kernel dependencies to specific revisions.docs/source/cli-lock.md
- Install agent skillsUse kernel-builder skills add to install the skills for AI coding assistants like Claude, Codex, and OpenCode. Supported skills include:docs/source/cli-skills.md
- kernels variantsUse kernels variants to list the build variants of the latest kernel version on the Hub, together with compatibility decisions for your current system. Accepted variants are marked as compatible, the…docs/source/cli-variants.md
- kernels verify-signatureUse kernels verify-signature to verify the metadata signature and check that kernel files match the digest embedded in the metadata.docs/source/cli-verify-signature.md
- kernels versionsUse kernels versions to list all available versions of a kernel on the Hub and marks compatible versions.docs/source/cli-versions.md
- OverviewThe kernels CLI provides commands for managing compute kernels.docs/source/cli.md
- Environment variablesThe directory to use as the local kernel cache. If not set, the cache of the huggingface_hub package is used.docs/source/env.md
- FAQIn earlier versions of kernels, a layer's forward method was replaced by [~kernels.use_kernel_forward_from_hub] and [~kernels.replace_kernel_forward_from_hub]. The new forward would dispatch to a ker…docs/source/faq.md
- KernelsThe Kernel Hub allows Python libraries and applications to load compute kernels directly from the Hub. Kernels are a first-class repository type on the Hub, with dedicated pages that surface supporte…docs/source/index.md
- InstallationInstall the kernels package with pip (requires torch>=2.5 and CUDA):docs/source/installation.md
- Projects using kernelsThis page shows how different projects use kernels.docs/source/integrating-kernels.md
- Kernel requirementsKernels on the Hub must fulfill the requirements outlined on this page. By ensuring kernels are compliant, they can be used on a wide range of Linux systems and Torch builds.docs/source/kernel-requirements.md
- Use layersA kernel can provide layers in addition to kernel functions. A layer from the Hub can replace the forward method of an existing layer for a certain device type. This makes it possible to provide more…docs/source/layers.md
- Lock kernel versionsProjects that use setuptools can lock the kernel versions that should be used. First specify the accepted versions in pyproject.toml and make sure that kernels is a build dependency:docs/source/locking.md
- Migrate from older versionsBefore kernels 0.12, kernels could be pulled from a repository without specifying a version. This is deprecated in kernels 0.12 and is an error in kernels 0.15. Instead, use of a kernel should always…docs/source/migration.md
- Kernels securitykernels downloads and loads remote code, so you need clear trust boundaries. We aim to address the following attack vectors:docs/source/security.md
- TalksThis page lists talks on the Kernels project, delivered at different events:docs/source/talks.md
- Why kernels?Our goal with the kernels package is manifold:docs/source/why_kernels.md
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)