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
|
ret = system_message + sep
|
||||||
for role, message in messages:
|
for role, message in messages:
|
||||||
if message:
|
if message:
|
||||||
ret += message + " "
|
ret += role + message + " "
|
||||||
else:
|
else:
|
||||||
ret += role + " "
|
ret += role + " "
|
||||||
return ret
|
return ret
|
||||||
|
|
Loading…
Reference in a new issue