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 0967eda

Browse filesBrowse files
committed
Better variable name
1 parent ca5d1a4 commit 0967eda
Copy full SHA for 0967eda

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎llama_cpp/llama_cache.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_cache.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def reload_from_cache_state(
326326
# pylint: disable=protected-access
327327

328328
# Check if model needs logits (draft model, log probs required, etc.)
329-
need_to_reload_without_scores = (
329+
model_needs_scores_to_reload = (
330330
# May be overly pessimistic if don't want embeddings for prompt tokens.
331331
model.context_params.embeddings
332332
or model.context_params.logits_all
@@ -336,7 +336,7 @@ def reload_from_cache_state(
336336
or model.draft_model is not None
337337
)
338338

339-
if need_to_reload_without_scores:
339+
if model_needs_scores_to_reload:
340340
if state.scores is None:
341341
raise StateReloadError(
342342
"Model requires logits to be reloaded, but static cache does not store logits"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.