From c8b1f9e1a1595ea96bc61649bcbe10be513b563a Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Tue, 15 Jul 2025 15:37:57 -0700 Subject: [PATCH] fix quantization --- ml/backend/ggml/ggml/src/ggml.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ml/backend/ggml/ggml/src/ggml.go b/ml/backend/ggml/ggml/src/ggml.go index 91f1f1ada..7c636d0d7 100644 --- a/ml/backend/ggml/ggml/src/ggml.go +++ b/ml/backend/ggml/ggml/src/ggml.go @@ -5,6 +5,7 @@ package ggml // #cgo CPPFLAGS: -I${SRCDIR}/../include -I${SRCDIR}/ggml-cpu // #cgo windows CFLAGS: -Wno-dll-attribute-on-redeclaration // #cgo windows LDFLAGS: -lmsvcrt -static -static-libgcc -static-libstdc++ +// #cgo windows linux CPPFLAGS: -DGGML_FP16_TO_FP32=ggml_compute_fp16_to_fp32 // #include // #include "ggml-backend.h" // extern void sink(int level, char *text, void *user_data);