[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
+3 -1
View File
@@ -1037,7 +1037,9 @@ class GPUModelRunner(LoRAModelRunnerMixin):
@torch.inference_mode()
def profile_cudagraph_memory(self) -> int:
"""Estimate the GPU memory required to capture CUDA graphs."""
return _profile_cudagraph_memory(self)
# Runs before the KV cache exists, outside compile_or_warm_up_model.
with self.eplb.suppress():
return _profile_cudagraph_memory(self)
def needs_cudagraph_capture(self) -> bool:
"""Whether capture_model() has any CUDA graphs left to capture."""