Skip to content

Commit f048af0

Browse files
committed
ggml : sync alibi fix from ggml repo
1 parent ac0cd25 commit f048af0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -8553,7 +8553,7 @@ static void ggml_compute_forward_alibi_f32(
85538553
m_k = powf(m1, 2 * (k - n_heads_log2_floor) + 1);
85548554
}
85558555

8556-
pdst[0] = (j+1) * m_k + src[0];
8556+
pdst[0] = i * m_k + src[0];
85578557
}
85588558
}
85598559
}
@@ -8615,7 +8615,7 @@ static void ggml_compute_forward_alibi_f16(
86158615
}
86168616

86178617
// we return F32
8618-
pdst[0] = (j+1) * m_k + GGML_FP16_TO_FP32(src[0]);
8618+
pdst[0] = i * m_k + GGML_FP16_TO_FP32(src[0]);
86198619
}
86208620
}
86218621
}

0 commit comments

Comments
 (0)