From 8bd47a8bda3cb44cb5f3e15cdc533345e6ea3528 Mon Sep 17 00:00:00 2001 From: slaren <2141330+slaren@users.noreply.github.com> Date: Tue, 18 Apr 2023 19:19:01 +0200 Subject: [PATCH] Update ggml.c Co-authored-by: Georgi Gerganov --- ggml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml.c b/ggml.c index fc63cda64..77fc5ed12 100644 --- a/ggml.c +++ b/ggml.c @@ -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]);