misc: format (#741)
This commit is contained in:
@@ -40,7 +40,10 @@ class GenerateReqInput:
|
|||||||
self.text is not None and self.input_ids is not None
|
self.text is not None and self.input_ids is not None
|
||||||
):
|
):
|
||||||
raise ValueError("Either text or input_ids should be provided.")
|
raise ValueError("Either text or input_ids should be provided.")
|
||||||
if isinstance(self.sampling_params, dict) and self.sampling_params.get("n", 1) != 1:
|
if (
|
||||||
|
isinstance(self.sampling_params, dict)
|
||||||
|
and self.sampling_params.get("n", 1) != 1
|
||||||
|
):
|
||||||
is_single = False
|
is_single = False
|
||||||
else:
|
else:
|
||||||
if self.text is not None:
|
if self.text is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user