Unverified Commit 6b32bb1c authored by Yineng Zhang's avatar Yineng Zhang Committed by GitHub
Browse files

misc: format (#741)

parent 40facad5
......@@ -40,7 +40,10 @@ class GenerateReqInput:
self.text is not None and self.input_ids is not None
):
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
else:
if self.text is not None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment