[MM] Skip VMM error gathers for text-only requests (#40005)
Co-authored-by: metamergebot <324680979+metamergebot@users.noreply.github.com> Co-authored-by: Jialin Ouyang <Jialin.Ouyang@gmail.com> Co-authored-by: Lianmin Zheng <lianminzheng@gmail.com>
This commit is contained in:
co-authored by
metamergebot
Jialin Ouyang
Lianmin Zheng
parent
803f0c93d2
commit
5e4b94b134
@@ -2192,11 +2192,14 @@ class Scheduler(
|
||||
|
||||
request_errors = []
|
||||
for tokenized_req in tokenized_reqs:
|
||||
# The request broadcast makes this skip consistent across ranks.
|
||||
if tokenized_req.mm_inputs is None:
|
||||
request_errors.append(None)
|
||||
continue
|
||||
|
||||
local_error = None
|
||||
try:
|
||||
if tokenized_req.mm_inputs is not None and not isinstance(
|
||||
tokenized_req.mm_inputs, MultimodalInputs
|
||||
):
|
||||
if not isinstance(tokenized_req.mm_inputs, MultimodalInputs):
|
||||
tokenized_req.mm_inputs = MultimodalInputs.from_processor_output(
|
||||
tokenized_req.mm_inputs,
|
||||
requires_mm_token_modalities=self.model_config.requires_mm_token_modalities,
|
||||
|
||||
Reference in New Issue
Block a user