Instructions to use replicate/aiter-kernels with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/aiter-kernels 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("replicate/aiter-kernels", version=1) - Notebooks
- Google Colab
- Kaggle
Download build/torch-rocm/utils/core.py from replicate/aiter-kernels: direct link, hf CLI and curl.
- Browser
- Download file 194 Bytes
-
https://huggingface.co/replicate/aiter-kernels/resolve/main/build/torch-rocm/utils/core.py
- Command line
-
hf download hf://replicate/aiter-kernels/build/torch-rocm/utils/core.py
-
curl -L -o core.py https://huggingface.co/replicate/aiter-kernels/resolve/main/build/torch-rocm/utils/core.py
194 Bytes
| import os | |
| this_dir = os.path.dirname(os.path.abspath(__file__)) | |
| AITER_TRITON_OPS_PATH = os.path.abspath(f"{this_dir}/../") | |
| AITER_TRITON_CONFIGS_PATH = os.path.abspath(f"{this_dir}/../configs") | |