8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac0cd25 commit f048af0Copy full SHA for f048af0
ggml.c
@@ -8553,7 +8553,7 @@ static void ggml_compute_forward_alibi_f32(
8553
m_k = powf(m1, 2 * (k - n_heads_log2_floor) + 1);
8554
}
8555
8556
- pdst[0] = (j+1) * m_k + src[0];
+ pdst[0] = i * m_k + src[0];
8557
8558
8559
@@ -8615,7 +8615,7 @@ static void ggml_compute_forward_alibi_f16(
8615
8616
8617
// we return F32
8618
- pdst[0] = (j+1) * m_k + GGML_FP16_TO_FP32(src[0]);
+ pdst[0] = i * m_k + GGML_FP16_TO_FP32(src[0]);
8619
8620
8621
0 commit comments