[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
+4 -4
View File
@@ -584,15 +584,15 @@ class EplbState:
"""
ep_group = get_ep_group().device_group
if is_profile:
self.rearrange(is_profile=True)
return
if is_dummy:
# Do not record load metrics for dummy steps
for eplb_model_state in self.model_states.values():
eplb_model_state.expert_load_pass.zero_()
if is_profile:
self.rearrange(is_profile=True)
return
if (
log_stats
and self.expert_rearrangement_step