Instructions to use replicate/triton-layer-norm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/triton-layer-norm with Kernels:
# !pip install kernels from kernels import get_kernel # a version (or an explicit revision) is required; see the "Files and versions" tab for the available ones kernel = get_kernel("replicate/triton-layer-norm", version=1) - Notebooks
- Google Colab
- Kaggle
Download flake.nix from replicate/triton-layer-norm: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/replicate/triton-layer-norm/resolve/main/flake.nix
- Command line
-
hf download hf://replicate/triton-layer-norm/flake.nix
-
curl -L -o flake.nix https://huggingface.co/replicate/triton-layer-norm/resolve/main/flake.nix
457 Bytes
| { | |
| description = "Flake for Triton layer norm kernels"; | |
| inputs = { | |
| kernel-builder.url = "github:huggingface/kernel-builder"; | |
| }; | |
| outputs = | |
| { | |
| self, | |
| kernel-builder, | |
| }: | |
| kernel-builder.lib.genFlakeOutputs { | |
| path = ./.; | |
| rev = self.shortRev or self.dirtyShortRev or self.lastModifiedDate; | |
| # Import-time autotune. | |
| doGetKernelCheck = false; | |
| pythonCheckInputs = pkgs: with pkgs; [ einops ]; | |
| }; | |
| } | |