Views
No views yet
spas_sage_attn-0.1.0+cu130torch2.11.0andhigher-cp39-abi3-linux_x86_64.whl| Component | Version |
|---|---|
| GPU | NVIDIA RTX 50 series (sm_120 Blackwell) |
| OS | Linux x86_64 |
| Python | 3.9+ (ABI3 stable — compatible with Python 3.9 or higher) |
| PyTorch | 2.11.0 or higher |
| CUDA | 13.0 or higher |
| Triton | compatible with your PyTorch version |
| SageAttention | 2.2.0 (install SA2 wheel first) |
1# Install SA2 first (dependency)
2pip install sageattention-2.2.0+cu130torch2.11.0andhigher-cp39-abi3-linux_x86_64.whl --no-deps
3
4# Install SpargeAttn
5pip install spas_sage_attn-0.1.0+cu130torch2.11.0andhigher-cp39-abi3-linux_x86_64.whl --no-depsImportant: Always use--no-depsto prevent pip from overwriting your PyTorch installation.
1from spas_sage_attn import spas_sage2_attn_meansim_cuda
2print("SpargeAttn OK")1from spas_sage_attn import spas_sage2_attn_meansim_cuda
2
3# q, k, v: (batch, heads, seq_len, head_dim) in fp16/bf16
4output = spas_sage2_attn_meansim_cuda(
5 q, k, v,
6 is_causal=False,
7 smooth_k=True,
8 tensor_layout="HND",
9 output_dtype=q.dtype
10)