Uploaded using `kernel-builder`.
Browse files
README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: kernels
|
| 3 |
+
license: bsd-3-clause
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
This is the repository card of kernels-community/layer-norm 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/layer-norm")
|
| 15 |
+
layers = kernel_module.layers
|
| 16 |
+
|
| 17 |
+
layers(...)
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
## Available functions
|
| 21 |
+
- `layers`
|
| 22 |
+
- `dropout_add_ln_fwd`
|
| 23 |
+
- `dropout_add_ln_bwd`
|
| 24 |
+
- `dropout_add_ln_parallel_residual_fwd`
|
| 25 |
+
- `dropout_add_ln_parallel_residual_bwd`
|
| 26 |
+
|
| 27 |
+
## Benchmarks
|
| 28 |
+
|
| 29 |
+
Benchmarking script is available for this kernel. Run `kernels benchmark kernels-community/layer-norm`.
|