Skip to content

Commit

Permalink
fix perplexity for batch size > 32
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesGaessler committed Sep 5, 2023
1 parent 44acb8b commit 9331895
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ggml-cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -4040,7 +4040,9 @@ static __global__ void cpy_f32_q8_0(
src = &zero;
} else {
src = x;
memcpy(&dst[1 + iqs/8].qs[sizeof(float) * (iqs % 8)], src, sizeof(float));
if (i0 / QK8_0 == (i_blck_0 + ne00) / QK8_0) {
memcpy(&dst[1 + iqs/8].qs[sizeof(float) * (iqs % 8)], src, sizeof(float));
}
}

float val;
Expand Down

0 comments on commit 9331895

Please sign in to comment.