Fix repeat greeting (#808)

* fix repeated greeting

* remove seperator between role and message
This commit is contained in:
Ma, Guokai 2023-10-16 01:52:21 +08:00 committed by GitHub
parent b50166500e
commit a1ac199980
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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