Instructions to use kernels-community/layer-norm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use kernels-community/layer-norm with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("kernels-community/layer-norm") - Notebooks
- Google Colab
- Kaggle
Benchmarks uploaded using `kernels`.
Browse files- benchmarks/benchmark.py +9 -0
benchmarks/benchmark.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from kernels.benchmarks import LayerNormBenchmark, RMSNormBenchmark
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
class LayerNorm(LayerNormBenchmark):
|
| 5 |
+
pass
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class RMSNorm(RMSNormBenchmark):
|
| 9 |
+
pass
|