[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
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user