You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,35 @@
4
4
5
5
Implementation of the sparse attention pattern proposed by the Deepseek team in their [Native Sparse Attention](https://arxiv.org/abs/2502.11089) paper
6
6
7
+
## Install
8
+
9
+
```bash
10
+
$ pip install native-sparse-attention-pytorch
11
+
```
12
+
13
+
## Usage
14
+
15
+
```python
16
+
import torch
17
+
from native_sparse_attention_pytorch import SparseAttention
0 commit comments