Instructions to use kernels-community/activation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use kernels-community/activation with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("kernels-community/activation") - Notebooks
- Google Colab
- Kaggle
Download build/torch210-cxx11-cu128-aarch64-linux/_ops.py from kernels-community/activation: direct link, hf CLI and curl.
- Browser
- Download file 231 Bytes
-
https://huggingface.co/kernels-community/activation/resolve/0d7d8c79752c16ddb068d4dbf7790358c016635e/build/torch210-cxx11-cu128-aarch64-linux/_ops.py
- Command line
-
hf download hf://kernels-community/activation@0d7d8c79752c16ddb068d4dbf7790358c016635e/build/torch210-cxx11-cu128-aarch64-linux/_ops.py
-
curl -L -o _ops.py https://huggingface.co/kernels-community/activation/resolve/0d7d8c79752c16ddb068d4dbf7790358c016635e/build/torch210-cxx11-cu128-aarch64-linux/_ops.py
231 Bytes
| import torch | |
| from . import _activation_cuda_5c4052d | |
| ops = torch.ops._activation_cuda_5c4052d | |
| def add_op_namespace_prefix(op_name: str): | |
| """ | |
| Prefix op by namespace. | |
| """ | |
| return f"_activation_cuda_5c4052d::{op_name}" | |