Run this model with HF Jobs
Run replicate/layer-norm on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/replicate/layer-norm. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/replicate/layer-norm on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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 # a version (or an explicit revision) is required; see the "Files and versions" tab for the available ones kernel = get_kernel("replicate/layer-norm", version=1) - Notebooks
- Google Colab
- Kaggle
Uploaded using `kernel-builder`.
Browse filesFiles changed (16)
- .gitattributes+7
- build/torch210-cxx11-cu126-aarch64-linux/_layer_norm_cuda_143103b.abi3.so → build/torch210-cxx11-cu126-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soRenamed+1-1
- build/torch210-cxx11-cu126-aarch64-linux/_ops.py+3-3
- build/torch210-cxx11-cu128-aarch64-linux/_layer_norm_cuda_143103b.abi3.so → build/torch210-cxx11-cu128-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soRenamed+1-1
- build/torch210-cxx11-cu128-aarch64-linux/_ops.py+3-3
- build/torch210-cxx11-cu130-aarch64-linux/_layer_norm_cuda_143103b.abi3.so → build/torch210-cxx11-cu130-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soRenamed+2-2
- build/torch210-cxx11-cu130-aarch64-linux/_ops.py+3-3
- build/torch211-cxx11-cu126-aarch64-linux/_layer_norm_cuda_143103b.abi3.so → build/torch211-cxx11-cu126-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soRenamed+1-1
- build/torch211-cxx11-cu126-aarch64-linux/_ops.py+3-3
- build/torch211-cxx11-cu128-aarch64-linux/_layer_norm_cuda_143103b.abi3.so → build/torch211-cxx11-cu128-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soRenamed+1-1
- build/torch211-cxx11-cu128-aarch64-linux/_ops.py+3-3
- build/torch211-cxx11-cu130-aarch64-linux/_layer_norm_cuda_143103b.abi3.soDeleted-3
- build/torch211-cxx11-cu130-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soAdded+3
- build/torch211-cxx11-cu130-aarch64-linux/_ops.py+3-3
- build/torch29-cxx11-cu129-aarch64-linux/_layer_norm_cuda_143103b.abi3.so → build/torch29-cxx11-cu129-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soRenamed+1-1
- build/torch29-cxx11-cu129-aarch64-linux/_ops.py+3-3
46 unmodified lines47484946 unmodified linesbuild/torch211-cxx11-cu128-x86_64-linux/_layer_norm_cuda_143103b.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch211-cxx11-cu130-x86_64-linux/_layer_norm_cuda_143103b.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch29-cxx11-cu129-x86_64-linux/_layer_norm_cuda_143103b.abi3.so filter=lfs diff=lfs merge=lfs -text46 unmodified lines4748495051525354555646 unmodified linesbuild/torch211-cxx11-cu128-x86_64-linux/_layer_norm_cuda_143103b.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch211-cxx11-cu130-x86_64-linux/_layer_norm_cuda_143103b.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch29-cxx11-cu129-x86_64-linux/_layer_norm_cuda_143103b.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch210-cxx11-cu126-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch210-cxx11-cu128-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch210-cxx11-cu130-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch211-cxx11-cu126-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch211-cxx11-cu128-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch211-cxx11-cu130-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch29-cxx11-cu129-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.so filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:e4ad4d5e8dee889d696c0b60ac2aa7c24586412b5605a33722f45a13a077b88dsize 711710472123version https://git-lfs.github.com/spec/v1oid sha256:82d0bf36caa157481aa443a8348a12a85a2f858396d529033c8e18f0029a96d2size 711710472
123456789import torchfrom . import _layer_norm_cuda_143103bops = torch.ops._layer_norm_cuda_143103bdef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_143103b::{op_name}"123456789import torchfrom . import _layer_norm_cuda_d3db3a4ops = torch.ops._layer_norm_cuda_d3db3a4def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_d3db3a4::{op_name}"
123version https://git-lfs.github.com/spec/v1oid sha256:af5417fb89bb13567875514abfde1d4a087bb0295de1f53aaaf20edb0eb562c1size 1231083200123version https://git-lfs.github.com/spec/v1oid sha256:4a83f68560f54381aa28f1a09192e102e901de0e59739af72866a76f169fd135size 1231083200
123456789import torchfrom . import _layer_norm_cuda_143103bops = torch.ops._layer_norm_cuda_143103bdef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_143103b::{op_name}"123456789import torchfrom . import _layer_norm_cuda_d3db3a4ops = torch.ops._layer_norm_cuda_d3db3a4def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_d3db3a4::{op_name}"
123version https://git-lfs.github.com/spec/v1oid sha256:c61421662fd4b22a3eb3d75fa5d9fcd3775ad8d8bbcf9c638b89e427111927b3size 1235993064123version https://git-lfs.github.com/spec/v1oid sha256:818bd87ff18081abb645bd0a4668241cf5942e821eefcd638c7e7fe2fe23dfa9size 1235994200
123456789import torchfrom . import _layer_norm_cuda_143103bops = torch.ops._layer_norm_cuda_143103bdef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_143103b::{op_name}"123456789import torchfrom . import _layer_norm_cuda_d3db3a4ops = torch.ops._layer_norm_cuda_d3db3a4def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_d3db3a4::{op_name}"
123version https://git-lfs.github.com/spec/v1oid sha256:1d1b35f4d42743357fe2fbd9feb0ce20d28506154325e0745c97aa99d829bda8size 711706784123version https://git-lfs.github.com/spec/v1oid sha256:82c2e1807c676928bbb6ba96a8bf2ebea0de43414d12ef59157307f75f24b7d1size 711706784
123456789import torchfrom . import _layer_norm_cuda_143103bops = torch.ops._layer_norm_cuda_143103bdef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_143103b::{op_name}"123456789import torchfrom . import _layer_norm_cuda_d3db3a4ops = torch.ops._layer_norm_cuda_d3db3a4def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_d3db3a4::{op_name}"
123version https://git-lfs.github.com/spec/v1oid sha256:b5e69e28fd3ca606b2519b7d64c292a8008db36f8b049d2bde0bf22c2fee0849size 1231079512123version https://git-lfs.github.com/spec/v1oid sha256:9b644f4ea445b31f7df7cf274ad4490b0b103d090dd7c66db22af7719223d8f6size 1231079512
123456789import torchfrom . import _layer_norm_cuda_143103bops = torch.ops._layer_norm_cuda_143103bdef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_143103b::{op_name}"123456789import torchfrom . import _layer_norm_cuda_d3db3a4ops = torch.ops._layer_norm_cuda_d3db3a4def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_d3db3a4::{op_name}"
123version https://git-lfs.github.com/spec/v1oid sha256:3147d8b7ea6ae20c72894191e79992c1825505e22b12b9fdf6df9d666504ab82size 1235989376123version https://git-lfs.github.com/spec/v1oid sha256:1fdb095ec29e90970185518f87470b2dc6cd7b759b5b6fafca1b3d68d652ecfasize 1235990520123456789import torchfrom . import _layer_norm_cuda_143103bops = torch.ops._layer_norm_cuda_143103bdef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_143103b::{op_name}"123456789import torchfrom . import _layer_norm_cuda_d3db3a4ops = torch.ops._layer_norm_cuda_d3db3a4def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_d3db3a4::{op_name}"
123version https://git-lfs.github.com/spec/v1oid sha256:5edebe8b0f52b1c169e80f3502abb83cfc4cf2438b5771387e8dfd9254eef1a8size 1282721000123version https://git-lfs.github.com/spec/v1oid sha256:5652320b57acb1f3b75177fb68b15c1d603bfddc83b93e4ad683383c37d2b76asize 1282721000
123456789import torchfrom . import _layer_norm_cuda_143103bops = torch.ops._layer_norm_cuda_143103bdef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_143103b::{op_name}"123456789import torchfrom . import _layer_norm_cuda_d3db3a4ops = torch.ops._layer_norm_cuda_d3db3a4def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_layer_norm_cuda_d3db3a4::{op_name}"
.gitattributes+7
build/torch210-cxx11-cu126-aarch64-linux/_layer_norm_cuda_143103b.abi3.so → build/torch210-cxx11-cu126-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soRenamed+1-1
build/torch210-cxx11-cu126-aarch64-linux/_ops.py+3-3
build/torch210-cxx11-cu128-aarch64-linux/_layer_norm_cuda_143103b.abi3.so → build/torch210-cxx11-cu128-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soRenamed+1-1
build/torch210-cxx11-cu128-aarch64-linux/_ops.py+3-3
build/torch210-cxx11-cu130-aarch64-linux/_layer_norm_cuda_143103b.abi3.so → build/torch210-cxx11-cu130-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soRenamed+2-2
build/torch210-cxx11-cu130-aarch64-linux/_ops.py+3-3
build/torch211-cxx11-cu126-aarch64-linux/_layer_norm_cuda_143103b.abi3.so → build/torch211-cxx11-cu126-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soRenamed+1-1
build/torch211-cxx11-cu126-aarch64-linux/_ops.py+3-3
build/torch211-cxx11-cu128-aarch64-linux/_layer_norm_cuda_143103b.abi3.so → build/torch211-cxx11-cu128-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soRenamed+1-1
build/torch211-cxx11-cu128-aarch64-linux/_ops.py+3-3
build/torch211-cxx11-cu130-aarch64-linux/_layer_norm_cuda_143103b.abi3.soDeleted-3
build/torch211-cxx11-cu130-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soAdded+3
build/torch211-cxx11-cu130-aarch64-linux/_ops.py+3-3
build/torch29-cxx11-cu129-aarch64-linux/_layer_norm_cuda_143103b.abi3.so → build/torch29-cxx11-cu129-aarch64-linux/_layer_norm_cuda_d3db3a4.abi3.soRenamed+1-1
build/torch29-cxx11-cu129-aarch64-linux/_ops.py+3-3