[fix] Remove useless code

This commit is contained in:
YC Chen 2023-08-02 14:35:35 +08:00
parent 4323773089
commit ca125da0eb
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class Llama2Template(Template):
if turn_idx == 0:
convs.append([self.prompt.format(query=sys+query_i), resp_i])
else:
convs.append([(self.sep if turn_idx else prefix) + self.prompt.format(query=query_i), resp_i])
convs.append([self.sep + self.prompt.format(query=query_i), resp_i])
return convs