Views
No views yet
spas_sage_attn-0.1.0+cu131torch2.12.blackwell-cp312-cp312-win_amd64.whl| Component | Version |
|---|---|
| GPU | NVIDIA RTX 50 series (sm_120 Blackwell) |
| OS | Windows 10/11 x64 |
| Python | 3.12 |
| PyTorch | 2.12.0 nightly cu128 |
| Triton | 3.6.0 |
| SageAttention | 2.2.0 (install SA2 wheel first) |
1# Install SA2 first (dependency)
2pip install sageattention-2.2.0+cu131torch2.12.blackwell-cp312-cp312-win_amd64.whl --no-deps
3
4# Install SpargeAttn
5pip install spas_sage_attn-0.1.0+cu131torch2.12.blackwell-cp312-cp312-win_amd64.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)