Instructions to use kernels-community/liger-kernels with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use kernels-community/liger-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("kernels-community/liger-kernels", version=1) - Notebooks
- Google Colab
- Kaggle
Download build/torch-rocm/__init__.py from kernels-community/liger-kernels: direct link, hf CLI and curl.
- Browser
- Download file 150 Bytes
-
https://huggingface.co/kernels-community/liger-kernels/resolve/main/build/torch-rocm/__init__.py
- Command line
-
hf download hf://kernels-community/liger-kernels/build/torch-rocm/__init__.py
-
curl -L -o __init__.py https://huggingface.co/kernels-community/liger-kernels/resolve/main/build/torch-rocm/__init__.py
150 Bytes
| from . import layers | |
| from .layers import CrossEntropyOutput, LigerForCausalLMLoss | |
| __all__ = ["layers", "LigerForCausalLMLoss", "CrossEntropyOutput"] | |