back to home

huggingface / kernels

Build compute kernels and load them from the Hub.

506 stars
54 forks
34 issues
PythonNixRust

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing huggingface/kernels in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/huggingface/kernels)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

kernels The Kernel Hub allows Python libraries and applications to load compute kernels directly from the Hub. To support this kind of dynamic loading, Hub kernels differ from traditional Python kernel packages in that they are made to be: • Portable: a kernel can be loaded from paths outside . • Unique: multiple versions of the same kernel can be loaded in the same Python process. • Compatible: kernels must support all recent versions of Python and the different PyTorch build configurations (various CUDA versions and C++ ABIs). Furthermore, older C library versions must be supported. Components • You can load kernels from the Hub using the Python package. • If you are a kernel author, you can build your kernels with kernel-builder. • Hugging Face maintains a set of kernels in kernels-community. 🚀 Quick Start Install the Python package with (requires and CUDA): Here is how you would use the activation kernels from the Hugging Face Hub: You can search for kernels on the Hub. 📚 Documentation Read the documentation of kernels and kernel-builder.