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 89856ef

Browse filesBrowse files
committed
Bugfix: only eval new tokens
1 parent 887f3b7 commit 89856ef
Copy full SHA for 89856ef

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-0
lines changed

‎llama_cpp/llama.py

Copy file name to clipboardExpand all lines: llama_cpp/llama.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ def generate(
280280
if self.verbose:
281281
print("generate cache hit", file=sys.stderr)
282282
reset = False
283+
tokens = tokens[len(self.tokens) :]
283284
###
284285
if reset:
285286
self.reset()

0 commit comments

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