Skip to content

Commit

Permalink
Do not pass warmup_mode to execute_model_kwargs (HabanaAI#229)
Browse files Browse the repository at this point in the history
This fixes a very silly issue where mismatching values of `warmup_mode`
flag could cause graph recompilations and eventually memory leaks.
  • Loading branch information
kzawora-intel authored and zhouyu5 committed Sep 20, 2024
1 parent d7aeafb commit 5d15efc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions vllm/worker/habana_model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1704,10 +1704,7 @@ def execute_model(
if multi_modal_input is not None:
execute_model_kwargs.update(multi_modal_input)
if htorch.utils.internal.is_lazy():
execute_model_kwargs.update({
"bypass_hpu_graphs": not use_graphs,
"warmup_mode": warmup_mode
})
execute_model_kwargs.update({"bypass_hpu_graphs": not use_graphs})

htorch.core.mark_step()
if self.is_driver_worker:
Expand Down

0 comments on commit 5d15efc

Please sign in to comment.