[BugFix] Make max_batch_size work in Omni online serving (#487)

Signed-off-by: ZeldaHuang <hzm414167@alibaba-inc.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
Ziming HuangandHongsheng Liu authored and GitHub committed 2025-12-26 21:51:07 +08:00
1 parent 595e7c0032
commit d456721d81
2 files changed
+4 -2

No files matched your search

@@ -8,7 +8,7 @@ stage_args:
- stage_id: 0
runtime:
devices: "0,1"
max_batch_size: 1
max_batch_size: 5
engine_args:
model_stage: thinker
model_arch: Qwen3OmniMoeForConditionalGeneration
@@ -38,7 +38,7 @@ stage_args:
- stage_id: 1
runtime:
devices: "1"
max_batch_size: 1
max_batch_size: 5
engine_args:
model_stage: talker
model_arch: Qwen3OmniMoeForConditionalGeneration
+2
View File
@@ -880,6 +880,8 @@ async def _stage_worker_async(
except Exception as e:
logger.warning("Device setup failed: %s", e)
max_batch_size = int(runtime_cfg.get("max_batch_size", 1) or 1)
engine_args["max_num_seqs"] = max_batch_size
# Initialize OmniConnectors if configured to match sync worker behavior
connectors: dict[Any, Any] = {}
if connectors_config: