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 a1ac199

Browse filesBrowse files
authored
Fix repeat greeting (abetlen#808)
* fix repeated greeting * remove seperator between role and message
1 parent b501665 commit a1ac199
Copy full SHA for a1ac199

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_chat_format.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_chat_format.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _format_llama2(
3232
ret = system_message + sep
3333
for role, message in messages:
3434
if message:
35-
ret += message + " "
35+
ret += role + message + " "
3636
else:
3737
ret += role + " "
3838
return ret

0 commit comments

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