Instructions to use yetter-ai/sage-attention with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use yetter-ai/sage-attention with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("yetter-ai/sage-attention") - Notebooks
- Google Colab
- Kaggle
This is the repository card of yetter-ai/sage-attention that has been pushed on the Hub. It was built to be used with the kernels library.
Build source: https://github.com/thu-ml/SageAttention Upstream commit: d1a57a546c3d395b1ffcbeecc66d81db76f3b4b5
How to use
# make sure `kernels` is installed: `pip install -U kernels`
from kernels import get_kernel
kernel_module = get_kernel("yetter-ai/sage-attention")
sageattn = kernel_module.sageattn
sageattn(...)
Available functions
per_block_int8per_warp_int8sub_meanper_channel_fp8sageattnsageattn_varlensageattn_qk_int8_pv_fp16_tritonsageattn_qk_int8_pv_fp16_cudasageattn_qk_int8_pv_fp8_cudasageattn_qk_int8_pv_fp8_cuda_sm90sageattn3_blackwell
Benchmarks
No benchmark available yet.
- Downloads last month
- 27
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
# !pip install kernels from kernels import get_kernel kernel = get_kernel("yetter-ai/sage-attention")