Skip to content

Commit 9bab46f

Browse files
lsorberabetlen
andauthored
fix: only print 'cache saved' in verbose mode (abetlen#1668)
Co-authored-by: Andrei <[email protected]>
1 parent 95a1533 commit 9bab46f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llama_cpp/llama.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,8 @@ def logit_bias_processor(
15231523
if self.verbose:
15241524
print("Llama._create_completion: cache save", file=sys.stderr)
15251525
self.cache[prompt_tokens + completion_tokens] = self.save_state()
1526-
print("Llama._create_completion: cache saved", file=sys.stderr)
1526+
if self.verbose:
1527+
print("Llama._create_completion: cache saved", file=sys.stderr)
15271528
return
15281529

15291530
if self.cache:

0 commit comments

Comments
 (0)