kernels-community/activation
1018k
1---2library_name: kernels3license: apache-2.04---5 6> [!CAUTION]7> Starting from September 13, 2026, we will be removing the "model" type repositories of kernels (e.g., kernels-community/flash-attn3). Make sure you're using a latest version of kernels. If you face any disruption, please report them here: https://github.com/huggingface/kernels/issues/new.8 9This is the repository card of kernels-community/activation that has been pushed on the Hub. It was built to be used with the [`kernels` library](https://github.com/huggingface/kernels). This card was automatically generated.10 11## How to use12 13```python14# make sure `kernels` is installed: `pip install -U kernels`15from kernels import get_kernel16 17kernel_module = get_kernel("kernels-community/activation")18silu_and_mul = kernel_module.silu_and_mul19 20silu_and_mul(...)21```22 23## Available functions24- `silu_and_mul`25- `mul_and_silu`26- `gelu_and_mul`27- `gelu_tanh_and_mul`28- `fatrelu_and_mul`29- `gelu_fast`30- `gelu_new`31- `gelu_quick`32- `gelu_tanh`33- `silu`34- `gelu`35 36## Benchmarks37 38Benchmarking script is available for this kernel. Run `kernels benchmark kernels-community/activation`.39 