Kernels:
Trusted publisher
Uploaded using `kernel-builder`.
Browse files
README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: kernels
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
This is the repository card of kernels-community/finegrained-kernels that has been pushed on the Hub. It was built to be used with the [`kernels` library](https://github.com/huggingface/kernels). This card was automatically generated.
|
| 7 |
+
|
| 8 |
+
## How to use
|
| 9 |
+
|
| 10 |
+
```python
|
| 11 |
+
# make sure `kernels` is installed: `pip install -U kernels`
|
| 12 |
+
from kernels import get_kernel
|
| 13 |
+
|
| 14 |
+
kernel_module = get_kernel("kernels-community/finegrained-kernels", version=0)
|
| 15 |
+
matmul_2d = kernel_module.matmul_2d
|
| 16 |
+
|
| 17 |
+
matmul_2d(...)
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
## Available functions
|
| 21 |
+
- `matmul_2d`
|
| 22 |
+
- `matmul_batched`
|
| 23 |
+
- `matmul_grouped`
|
| 24 |
+
- `moe_fused_batched`
|
| 25 |
+
- `moe_fused_grouped`
|
| 26 |
+
- `backward`
|
| 27 |
+
- `get_supported_act_fns`
|
| 28 |
+
- `swizzle_mx_scales`
|
| 29 |
+
- `unswizzle_mx_scales`
|
| 30 |
+
- `mxfp8_act_quant`
|
| 31 |
+
- `mxfp4_act_quant`
|
| 32 |
+
- `nvfp4_act_quant`
|
| 33 |
+
|
| 34 |
+
## Benchmarks
|
| 35 |
+
|
| 36 |
+
No benchmark available yet.
|