!205 [bugfix] fix unmatched arguments
Merge pull request !205 from Calvin Huang/master
This commit is contained in:
@ -130,7 +130,7 @@ class Template:
|
||||
r"""
|
||||
Returns a single pair of token ids representing prompt and response respectively.
|
||||
"""
|
||||
encoded_messages = self.encode(tokenizer, messages, system, tools)
|
||||
encoded_messages = self.encode(tokenizer, messages, system)
|
||||
prompt_ids = []
|
||||
for encoded_ids in encoded_messages[:-1]:
|
||||
prompt_ids += encoded_ids
|
||||
|
Reference in New Issue
Block a user