Skip to content

Commit 1ee09e5

Browse files
small change
1 parent 4b272bf commit 1ee09e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml-cuda.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ static __device__ __forceinline__ float vec_dot_q2_K_q8_1(
14091409
const float dmin = bq2_K->dmin;
14101410

14111411
for (int i = 0; i < 4; ++i) {
1412-
const int sc = bq2_K->scales[(iqs < 8 ? 0 : 8) + (((iqs%8) < 4) ? 0 : 1) + 2*i];
1412+
const int sc = bq2_K->scales[iqs - iqs%8 + (iqs%8) / 4 + 2*i];
14131413
const float dl = d * (sc & 0xF);
14141414
const float ml = dmin * (sc >> 4);
14151415

0 commit comments

Comments
 (0)