Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,40 +7,53 @@ sdk: static
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
# Kernels Community
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
<img
|
| 11 |
+
src="https://github.com/user-attachments/assets/4b5175f3-1d60-455b-8664-43b2495ee1c3"
|
| 12 |
+
alt="Kernels Community"
|
| 13 |
+
width="200"
|
| 14 |
+
/>
|
| 15 |
+
|
| 16 |
# Kernels Community
|
| 17 |
+
|
| 18 |
+
The **Kernel Hub** allows Python libraries and applications to **load optimized compute kernels directly from the Hugging Face Hub**.
|
| 19 |
+
|
| 20 |
+
You can think of it as the Model Hub, but for low-level, high-performance code (kernels) that accelerate specific operations, often on GPUs.
|
| 21 |
+
|
| 22 |
+
Instead of manually managing complex dependencies, dealing with compilation flags, or building libraries like Triton or CUTLASS from source, the `kernels` library lets you fetch and run **pre-compiled, optimized kernels** on demand.
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## Repos
|
| 27 |
+
|
| 28 |
+
The Kernel Hub team maintains two core repos:
|
| 29 |
+
|
| 30 |
+
### `kernels`
|
| 31 |
+
|
| 32 |
+
The main repository containing:
|
| 33 |
+
- A deterministic kernel builder
|
| 34 |
+
- A Python library for loading and executing kernels
|
| 35 |
+
|
| 36 |
+
Documentation:
|
| 37 |
+
https://huggingface.co/docs/kernels/
|
| 38 |
+
|
| 39 |
+
### `kernels-community`
|
| 40 |
+
|
| 41 |
+
A repository that contains the source code for all of the kernels-community kernels
|
| 42 |
+
|
| 43 |
+
Source code:
|
| 44 |
+
https://github.com/huggingface/kernels-community
|
| 45 |
+
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
## Compliant Kernels
|
| 49 |
+
|
| 50 |
+
Kernels published on the Hub are designed to be:
|
| 51 |
+
|
| 52 |
+
- **Portable** — loadable from paths outside `PYTHONPATH`
|
| 53 |
+
- **Isolated** — multiple kernel versions can run in the same process
|
| 54 |
+
- **Compatible** — support different Python versions, PyTorch builds, and C++ ABIs
|
| 55 |
+
|
| 56 |
+
---
|
| 57 |
+
|
| 58 |
+
Learn more about the Kernel Hub and the `kernels` library by reading the docs:
|
| 59 |
+
https://huggingface.co/docs/kernels/index
|