mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-15 16:18:10 +08:00
fix chat
Former-commit-id: 68f2b3df09c4c8638b9e225fd5b8aed3541e97a0
This commit is contained in:
parent
bff8b02543
commit
dab8f45033
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user