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 e2a9599

Browse filesBrowse files
Fixed logit processors
1 parent fb0e9a5 commit e2a9599
Copy full SHA for e2a9599

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
@@ -307,7 +307,7 @@ def _sample(
307307
)
308308
logits = self.eval_logits[-1]
309309
for processor in logits_processors:
310-
logits = processor(last_n_tokens_data, logits)
310+
logits = processor(list(self.eval_tokens), logits)
311311

312312
nl_logit = logits[int(Llama.token_nl())]
313313
data = (llama_cpp.llama_token_data * n_vocab)(

0 commit comments

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