We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 07b5782 + 830161b commit 36a374eCopy full SHA for 36a374e
labml_nn/transformers/alibi/__init__.py
@@ -19,7 +19,7 @@
19
20
\begin{align}
21
\mathbf{a}_i
22
-&= \text{softmax} \bigg( \mathbf{q}_i \mathbf{K}^\top + m \cdot \big[-(i-1), \dots, 1, 0 \big] \bigg) \\
+&= \text{softmax} \bigg( \mathbf{q}_i \mathbf{K}^\top + m \cdot \big[-(i-1), \dots, -1, 0 \big] \bigg) \\
23
&= \text{softmax} \bigg( \mathbf{q}_i \mathbf{K}^\top + m \cdot \big[0, 1, \dots, (i - 1) \big] \bigg)
24
\end{align}
25
0 commit comments