Instructions to use replicate/layer-norm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/layer-norm with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("replicate/layer-norm") - Notebooks
- Google Colab
- Kaggle
Download benchmarks/benchmark.py from replicate/layer-norm: direct link, hf CLI and curl.
- Browser
- Download file 160 Bytes
-
https://huggingface.co/replicate/layer-norm/resolve/main/benchmarks/benchmark.py
- Command line
-
hf download hf://replicate/layer-norm/benchmarks/benchmark.py
-
curl -L -o benchmark.py https://huggingface.co/replicate/layer-norm/resolve/main/benchmarks/benchmark.py
160 Bytes
| from kernels.benchmarks import LayerNormBenchmark, RMSNormBenchmark | |
| class LayerNorm(LayerNormBenchmark): | |
| pass | |
| class RMSNorm(RMSNormBenchmark): | |
| pass | |