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 cb79171

Browse filesBrowse files
committed
fix: Always set logits_all = True when using speculative decoding
1 parent 153a004 commit cb79171
Copy full SHA for cb79171

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-1
lines changed

‎llama_cpp/llama.py

Copy file name to clipboardExpand all lines: llama_cpp/llama.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def __init__(
281281
)
282282
self.context_params.yarn_orig_ctx = yarn_orig_ctx if yarn_orig_ctx != 0 else 0
283283
self.context_params.mul_mat_q = mul_mat_q
284-
self.context_params.logits_all = logits_all
284+
self.context_params.logits_all = logits_all if draft_model is None else True # Must be set to True for speculative decoding
285285
self.context_params.embedding = embedding
286286
self.context_params.offload_kqv = offload_kqv
287287

0 commit comments

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