Skip to content

Commit

Permalink
runner: switch logging back to stderr (ollama#8091)
Browse files Browse the repository at this point in the history
This puts the low-level runner logging back on stderr for consistency with prior releases
  • Loading branch information
dhiltgen authored Dec 13, 2024
1 parent e28f2d4 commit 60f7556
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llama/llama.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ import (
_ "embed"
"errors"
"fmt"
"os"
"runtime"
"runtime/cgo"
"slices"
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 60f7556

Please sign in to comment.