This commit is contained in:
Michael Yang 2023-07-14 10:47:18 -07:00
parent 77dc1a6d74
commit 5fefaa5d4d

View file

@ -57,7 +57,7 @@ func (r *GenerateResponse) Summary() {
}
if r.EvalDuration > 0 {
fmt.Fprintf(os.Stderr, "eval duraiton: %s\n", r.EvalDuration)
fmt.Fprintf(os.Stderr, "eval duration: %s\n", r.EvalDuration)
fmt.Fprintf(os.Stderr, "eval rate: %.2f tokens/s\n", float64(r.EvalCount)/r.EvalDuration.Seconds())
}
}