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 benchmarks/benchmark.py from kernels-community/activation: direct link, hf CLI and curl.
- Browser
- Download file 104 Bytes
-
https://huggingface.co/kernels-community/activation/resolve/9f885f7299bb03b280e27468fc25f5963df83532/benchmarks/benchmark.py
- Command line
-
hf download hf://kernels-community/activation@9f885f7299bb03b280e27468fc25f5963df83532/benchmarks/benchmark.py
-
curl -L -o benchmark.py https://huggingface.co/kernels-community/activation/resolve/9f885f7299bb03b280e27468fc25f5963df83532/benchmarks/benchmark.py
104 Bytes
| from kernels.benchmarks import SiluAndMulBenchmark | |
| class SiluWorkloads(SiluAndMulBenchmark): | |
| pass | |