Fix repeat greeting (#808)
* fix repeated greeting * remove seperator between role and message
This commit is contained in:
parent
b50166500e
commit
a1ac199980
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ def _format_llama2(
|
|||
ret = system_message + sep
|
||||
for role, message in messages:
|
||||
if message:
|
||||
ret += message + " "
|
||||
ret += role + message + " "
|
||||
else:
|
||||
ret += role + " "
|
||||
return ret
|
||||
|
|
Loading…
Reference in a new issue