"vllm/vscode:/vscode.git/clone" did not exist on "54cacf008f00d35d46273fed4d538cf5740d0965"
Unverified Commit 10fd1d73 authored by changjun.lee's avatar changjun.lee Committed by GitHub
Browse files

[Bugfix] fix error due to an uninitialized tokenizer when using...


[Bugfix] fix error due to an uninitialized tokenizer when using `skip_tokenizer_init` with `num_scheduler_steps` (#9276)
Signed-off-by: default avatarchangjun.lee <pord7457@gmail.com>
parent 52b4f4a8
...@@ -178,7 +178,7 @@ class MultiStepOutputProcessor(SequenceGroupOutputProcessor): ...@@ -178,7 +178,7 @@ class MultiStepOutputProcessor(SequenceGroupOutputProcessor):
# generates a fixed number of tokens without evaluating stopping # generates a fixed number of tokens without evaluating stopping
# conditions within the block. This can cause an eos token to be # conditions within the block. This can cause an eos token to be
# unintentionally ignored. # unintentionally ignored.
if not sampling_params.ignore_eos: if not sampling_params.ignore_eos and self.detokenizer:
eos_token_id = self.get_tokenizer_for_seq(seq).eos_token_id eos_token_id = self.get_tokenizer_for_seq(seq).eos_token_id
# Avoiding .index calls as exception throwing in the happy path # Avoiding .index calls as exception throwing in the happy path
# is expensive. # is expensive.
......
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