kernels-data
Kernels data structures (Python bindings)
What it is and what it does
kernels-data is a compiled Python package providing data structures and bindings for the Hugging Face kernels ecosystem. It enables dynamic loading of optimized compute kernels from the Hugging Face Hub, supporting portable, versioned kernel execution across different PyTorch and CUDA configurations. The package is built with Rust and distributed as platform-specific wheels covering CPython 3.8+ on Linux, macOS, and Windows architectures.
The package is designed as part of a larger kernel-loading system where kernels can be fetched from the Hub and executed without modifying PYTHONPATH or dealing with traditional Python packaging constraints. It abstracts away compatibility concerns across different build variants and older C library versions, making it a foundational piece for applications that need to run specialized compute kernels on GPUs.
Use it for:
- Load and execute optimized CUDA kernels from the Hugging Face Hub in GPU-accelerated applications.
- Build inference pipelines that dynamically fetch and run specialized compute kernels without recompilation.
- Support multiple kernel versions in the same Python process for testing or gradual migration of kernel implementations.
- Integrate with applications that rely on custom optimized kernels for performance-critical operations.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
kernels-data provides Python bindings for kernel data structures used by the Hugging Face kernels ecosystem, enabling dynamic loading and execution of optimized compute kernels from the Hub.
Yes, if you are building applications that use Hugging Face kernels or models requiring dynamic kernel loading from the Hub. The package is actively maintained, has no known vulnerabilities, and is widely used (top 5000 on PyPI with 975470 monthly downloads). However, verify the unclear license terms before use in proprietary projects, and confirm your environment meets the stated requirements.
Install
kernels-data on PyPI
pip
pip install kernels-datauv
uv add kernels-datapoetry
poetry add kernels-dataInstalling kernels-data
Before you install
Medium install friction due to platform-specific wheels and compiled bindings (Rust). Active maintenance with recent releases and no known vulnerabilities.
License in practice
License treatment is unclear—no SPDX identifier or raw license text provided. Verify the actual license before using in proprietary or restricted-license projects.
Quickstart
pip install kernels-data
from kernels import get_kernel
kernel = get_kernel("kernels-community/activation", version=1)
Requires torch>=2.5 and CUDA. Python >=3.8 required.
Verify before relying
- Exact license identifier and terms—license_treatment is marked unclear with no SPDX or raw text provided.
- Whether kernels-data is a standalone package or a data/binding component that requires additional packages for practical use.
- Compatibility matrix for specific PyTorch and CUDA versions beyond the stated torch>=2.5 requirement.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 49 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 975,470/month — #4,595 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: kernels_data-0.16.0-cp314-cp314t-macosx_10_12_x86_64.whl; kernels_data-0.16.0-cp314-cp314t-macosx_11_0_arm64.whl; kernels_data-0.16.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; kernels_data-0.16.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; kernels_data-0.16.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; kernels_data-0.16.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl; kernels_data-0.16.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; kernels_data-0.16.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl; kernels_data-0.16.0-cp314-cp314t-musllinux_1_2_aarch64.whl; kernels_data-0.16.0-cp314-cp314t-musllinux_1_2_armv7l.whl; kernels_data-0.16.0-cp314-cp314t-musllinux_1_2_i686.whl; kernels_data-0.16.0-cp314-cp314t-musllinux_1_2_x86_64.whl; kernels_data-0.16.0-cp314-cp314t-win32.whl; kernels_data-0.16.0-cp314-cp314t-win_amd64.whl; kernels_data-0.16.0-cp38-abi3-macosx_10_12_x86_64.whl; kernels_data-0.16.0-cp38-abi3-macosx_11_0_arm64.whl; kernels_data-0.16.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; kernels_data-0.16.0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; kernels_data-0.16.0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; kernels_data-0.16.0-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
kernelsLoads optimized compute kernels from Hugging…
permissive · top 5,000 on PyPI
ossdataProvides scalable datasets for software…
permissive · top 15,000 on PyPI
spacesProvides utilities for working with Hugging…
permissive · top 15,000 on PyPI
datasetsLoads and preprocesses datasets from the…
permissive · top 1,000 on PyPI
sgl-kernelsgl-kernel provides optimized CUDA compute…
permissive · top 15,000 on PyPI
sglang-kernelsglang-kernel provides optimized CUDA compute…
permissive · top 15,000 on PyPI
liger-kernelLiger Kernel provides optimized Triton kernels…
permissive · top 15,000 on PyPI
cpm-kernelsProvides CUDA kernels optimized for CPM,…
permissive · top 15,000 on PyPI
geoarrow-cgeoarrow-c provides low-level Python bindings…
permissive · top 15,000 on PyPI