Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9bab46f

Browse filesBrowse files
lsorberabetlen
andauthored
fix: only print 'cache saved' in verbose mode (abetlen#1668)
Co-authored-by: Andrei <abetlen@gmail.com>
1 parent 95a1533 commit 9bab46f
Copy full SHA for 9bab46f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎llama_cpp/llama.py

Copy file name to clipboardExpand all lines: llama_cpp/llama.py
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.