[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:
co-authored by
Itay Alroy
parent
f43d7e1a0f
commit
87e7dce3a7
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user