From dfc62648f3da0994cb4006a709ede84ac4348a43 Mon Sep 17 00:00:00 2001 From: Josh Yan Date: Tue, 9 Jul 2024 16:05:07 -0700 Subject: [PATCH] cast --- llm/llm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm/llm.go b/llm/llm.go index db20cedce..68ec6882e 100644 --- a/llm/llm.go +++ b/llm/llm.go @@ -47,7 +47,7 @@ func Quantize(infile, outfile string, ftype fileType, fn func(resp api.ProgressR *(*C.float)(store) = 0.0 params.quantize_callback_data = store - params.quantize_callback = C.update_quantize_progress + params.quantize_callback = (C.llama_progress_callback)(C.update_quantize_progress) go func () { for {