diff --git a/llama/llama.go b/llama/llama.go index 15e719798..c11d53411 100644 --- a/llama/llama.go +++ b/llama/llama.go @@ -89,6 +89,7 @@ import ( _ "embed" "errors" "fmt" + "os" "runtime" "runtime/cgo" "slices" @@ -131,7 +132,7 @@ func llamaLog(level int32, text *C.char, _ unsafe.Pointer) { return } - fmt.Print(C.GoString(text)) + fmt.Fprint(os.Stderr, C.GoString(text)) } func GetModelArch(modelPath string) (string, error) {