Instructions to use kernels-community/rotary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use kernels-community/rotary 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("kernels-community/rotary", version=1) - Notebooks
- Google Colab
- Kaggle
Download build.toml from kernels-community/rotary: direct link, hf CLI and curl.
- Browser
- Download file 181 Bytes
-
https://huggingface.co/kernels-community/rotary/resolve/refs%2Fpr%2F2/build.toml
- Command line
-
hf download hf://kernels-community/rotary@refs/pr/2/build.toml
-
curl -L -o build.toml https://huggingface.co/kernels-community/rotary/resolve/refs%2Fpr%2F2/build.toml
181 Bytes
| [general] | |
| name = "rotary" | |
| universal = false | |
| [torch] | |
| src = ["torch-ext/torch_binding.cpp"] | |
| [kernel.activation] | |
| backend = "cuda" | |
| depends = ["torch"] | |
| src = ["rotary/rotary_cuda.cu"] | |