mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-05 18:32:14 +08:00
fix chat
Former-commit-id: 68f2b3df09c4c8638b9e225fd5b8aed3541e97a0
This commit is contained in:
parent
0e602345c3
commit
06db80f707
@ -53,7 +53,7 @@ class ChatModel:
|
||||
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
|
||||
|
||||
if max_length:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user