Instructions to use marcsun13/ggml-norm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use marcsun13/ggml-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("marcsun13/ggml-norm", version=1) - Notebooks
- Google Colab
- Kaggle
Download torch-ext/torch_binding.cpp from marcsun13/ggml-norm: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/marcsun13/ggml-norm/resolve/main/torch-ext/torch_binding.cpp
- Command line
-
hf download hf://marcsun13/ggml-norm/torch-ext/torch_binding.cpp
-
curl -L -o torch_binding.cpp https://huggingface.co/marcsun13/ggml-norm/resolve/main/torch-ext/torch_binding.cpp
407 Bytes
| TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) { | |
| ops.def("rms_norm(Tensor x, Tensor weight, float eps) -> Tensor"); | |
| // The schema is the same for every backend; only the implementation differs. | |
| ops.impl("rms_norm", torch::kMPS, &rms_norm); | |
| } | |
| REGISTER_EXTENSION(TORCH_EXTENSION_NAME) | |