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 tests/test_core.py from replicate/sage_attention: direct link, hf CLI and curl.
- Browser
- Download file 0 Bytes
-
https://huggingface.co/replicate/sage_attention/resolve/main/tests/test_core.py
- Command line
-
hf download hf://replicate/sage_attention/tests/test_core.py
-
curl -L -o test_core.py https://huggingface.co/replicate/sage_attention/resolve/main/tests/test_core.py
0 Bytes