Josh Yan 9 月之前
父节点
当前提交
dfc62648f3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      llm/llm.go

+ 1 - 1
llm/llm.go

@@ -47,7 +47,7 @@ func Quantize(infile, outfile string, ftype fileType, fn func(resp api.ProgressR
     *(*C.float)(store) = 0.0
     *(*C.float)(store) = 0.0
 
 
 	params.quantize_callback_data = store
 	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 () {
 	go func () {
 		for {
 		for {