fix chat
This commit is contained in:
1 parent
84af10cec9
commit
8b912690e3
1 file changed
+1
-1
@@ -53,7 +53,7 @@ class ChatModel:
|
|||||||
pad_token_id=self.tokenizer.pad_token_id
|
pad_token_id=self.tokenizer.pad_token_id
|
||||||
))
|
))
|
||||||
|
|
||||||
if int(num_return_sequences) > 1:
|
if isinstance(num_return_sequences, int) and num_return_sequences > 1:
|
||||||
generating_args["do_sample"] = True
|
generating_args["do_sample"] = True
|
||||||
|
|
||||||
if max_length:
|
if max_length:
|
||||||
|
|||||||
Reference in new issue
Block a user