fix sampling_seed handling when deterministic is enabled (#11096)
Signed-off-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
1 parent
c70e58e837
commit
d01b921482
2 files changed
+13
-3
No files matched your search
@@ -142,6 +142,9 @@ class SamplingParams:
|
||||
f"logit_bias must has keys in [0, {vocab_size - 1}], got "
|
||||
f"{token_id}."
|
||||
)
|
||||
if self.sampling_seed is None:
|
||||
raise ValueError("sampling_seed should not be None")
|
||||
|
||||
grammars = [
|
||||
self.json_schema,
|
||||
self.regex,
|
||||
|
||||
Reference in new issue
Block a user