Views
No views yet

| PyTorch | CUDA | Architecture | ABI |
|---|---|---|---|
| 2.9 | 13.0 | sm_75, sm_80, sm_86, sm_89, sm_90 | cxx11, manylinux_2_28 |
| 2.10 | 12.6 | sm_75, sm_80, sm_86, sm_89, sm_90 | cxx11, manylinux_2_28 |
1import torch
2from kernels import get_kernel
3
4kernel = get_kernel(
5 "kernels-community/attention-int8",
6 version=1
7)1from attention_int8 import int8_attention_forward
2
3output = int8_attention_forward(
4 Q, # [B, H, N, D]
5 K, # [B, kv_H, N, D]
6 V, # [B, kv_H, N, D]
7 timestep_scales, # [T] float32 or None
8 timestep=0,
9 causal=False
10)