text and image metric (#6150)

Signed-off-by: zhuhh97 <zhuhonghan@huawei.com>
Signed-off-by: Gao Han <hgaoaf@connect.ust.hk>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: Gao Han <hgaoaf@connect.ust.hk>
This commit is contained in:
authored and GitHub committed 2026-08-26 02:54:45 +00:00
1 parent aeb348d8f8
commit 7ae15c74c8
33 files changed
+1802 -162

No files matched your search

+4
View File
@@ -107,6 +107,7 @@ class AsyncOmniEngine:
_log_stats: bool = False
_coordinator_runtime: Any = None
_transfer_emitter: Any = None
_prom_metrics: Any = None
_enable_orch_monitor: bool = False
def __init__(
@@ -117,6 +118,7 @@ class AsyncOmniEngine:
diffusion_batch_size: int = 1,
single_stage_mode: bool = False,
transfer_emitter: Any = None,
prom_metrics: Any = None,
log_stats: bool = False,
tokenizer: str | None = None,
trust_remote_code: bool | None = None,
@@ -133,6 +135,7 @@ class AsyncOmniEngine:
# Optional: when None, Orchestrator silently skips TX emit (existing
# RX path still works via OrchestratorAggregator).
self._transfer_emitter = transfer_emitter
self._prom_metrics = prom_metrics
# Drives upstream EngineCore + scheduler stats production. When False
# the engine skips SchedulerStats / IterationStats; the per-(stage,
# replica) vllm:* wrap stays registered but reads zero. Respects the
@@ -398,6 +401,7 @@ class AsyncOmniEngine:
membership_controller=membership_controller,
running_counter=self._running_counter,
transfer_emitter=self._transfer_emitter,
prom_metrics=self._prom_metrics,
log_stats=self._log_stats,
enable_orch_monitor=self._enable_orch_monitor,
duplex_runtime_extension=duplex_runtime_extension,