Fix missing additional_stop_token_ids (#1769)
This commit is contained in:
1 parent
b7d0559496
commit
0d800090b4
3 files changed
+16
-11
No files matched your search
@@ -135,7 +135,7 @@ class SamplingParams:
|
||||
self.stop_str_max_len = stop_str_max_len
|
||||
|
||||
# Process stop token ids
|
||||
if tokenizer.additional_stop_token_ids:
|
||||
if tokenizer and tokenizer.additional_stop_token_ids:
|
||||
self.stop_token_ids.update(tokenizer.additional_stop_token_ids)
|
||||
|
||||
def to_srt_kwargs(self):
|
||||
|
||||
Reference in new issue
Block a user