Instructions to use replicate/sage_attention with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/sage_attention 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/sage_attention", version=1) - Notebooks
- Google Colab
- Kaggle
|
Download README.md from replicate/sage_attention: direct link, hf CLI and curl.
- Browser
- Download file 648 Bytes
-
https://huggingface.co/replicate/sage_attention/resolve/main/README.md
- Command line
-
hf download hf://replicate/sage_attention/README.md
-
curl -L -o README.md https://huggingface.co/replicate/sage_attention/resolve/main/README.md
648 Bytes
| tags: | |
| - kernels | |
| - cuda | |
| > [!CAUTION] | |
| > 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. | |
| > [!WARNING] | |
| > This repository will soon be deleted as it's now deprecated. Please use [kernels-community/sage-attention](https://huggingface.co/kernels-community/sage-attention). | |
| # SageAttention | |
| This is a build of the [SageAttention](https://github.com/thu-ml/SageAttention) compatible with kernels library |