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 # a version (or an explicit revision) is required; see the "Files and versions" tab for the available ones kernel = get_kernel("kernels-community/activation", version=1) - Notebooks
- Google Colab
- Kaggle
Download build.toml from kernels-community/activation: direct link, hf CLI and curl.
- Browser
- Download file 402 Bytes
-
https://huggingface.co/kernels-community/activation/resolve/fd6842e88f1f23f198551d78a4541b8eb07e0538/build.toml
- Command line
-
hf download hf://kernels-community/activation@fd6842e88f1f23f198551d78a4541b8eb07e0538/build.toml
-
curl -L -o build.toml https://huggingface.co/kernels-community/activation/resolve/fd6842e88f1f23f198551d78a4541b8eb07e0538/build.toml
402 Bytes
| [general] | |
| name = "activation" | |
| [torch] | |
| src = [ | |
| "torch-ext/torch_binding.cpp", | |
| "torch-ext/torch_binding.h" | |
| ] | |
| [kernel.activation] | |
| #language = "cuda-hipify" | |
| #rocm-archs = [ "gfx906", "gfx908", "gfx90a", "gfx940", "gfx941", "gfx942", "gfx1030", "gfx1100", "gfx1101" ] | |
| src = [ | |
| "activation/activation_kernels.cu", | |
| "activation/cuda_compat.h", | |
| "activation/dispatch_utils.h", | |
| ] | |
| depends = [ "torch" ] | |