Update ggml.c

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
slaren 2023-04-18 19:19:01 +02:00 committed by Slaren
parent 0f8b1df18f
commit 8bd47a8bda

2
ggml.c
View file

@ -5875,7 +5875,7 @@ static void ggml_compute_forward_dup_f16(
}
} else if (ggml_is_quantized(dst->type)) {
quantize_row_q_t const quantize_row_q = quantize_fns[dst->type].quantize_row_q;
float * src0_f32 = (float *) params->wdata + ne00 * ith;
float * src0_f32 = (float *) params->wdata + (ne00 + CACHE_LINE_SIZE_F32) * ith;
size_t id = 0;
size_t rs = nb0 * (ne00 / GGML_BLCK_SIZE[dst->type]);