[MRV2] Keep warmup out of the EPLB load stats (#56716)

Signed-off-by: almogtavor <almogtavor@gmail.com>
Co-authored-by: Itay Alroy <75032521+itayalroy@users.noreply.github.com>
This commit is contained in:
Almog Tavor
2026-10-14 00:00:48 +00:00
committed by GitHub
co-authored by Itay Alroy
parent f43d7e1a0f
commit 87e7dce3a7
5 changed files with 40 additions and 7 deletions
+7
View File
@@ -906,6 +906,13 @@ class Worker(WorkerBase):
@instrument(span_name="Warmup (GPU)")
def compile_or_warm_up_model(self) -> CompilationTimes:
if not self.use_v2_model_runner:
return self._compile_or_warm_up_model()
# MRV2 warmup forwards record expert load like real ones.
with self.model_runner.eplb.suppress(): # type: ignore
return self._compile_or_warm_up_model()
def _compile_or_warm_up_model(self) -> CompilationTimes:
warmup_sizes: list[int] = []
if (