Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions vllm/v1/worker/gpu_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,7 @@ def determine_available_memory(self) -> int:
)

self.non_torch_memory = profile_result.non_torch_increase
self.peak_activation_memory = (
profile_result.torch_peak_increase + cudagraph_memory_estimate_applied
)
self.peak_activation_memory = profile_result.torch_peak_increase
self.cudagraph_memory_estimate = cudagraph_memory_estimate

free_gpu_memory = profile_result.after_profile.free_memory
Expand Down Expand Up @@ -638,6 +636,7 @@ def compile_or_warm_up_model(self) -> float:
# slightly underestimate the memory consumption.
# So leave a small buffer (=150MiB) to avoid OOM.
redundancy_buffer_memory = 150 * (1 << 20)

non_kv_cache_memory = (
self.model_runner.model_memory_usage
+ self.peak_activation_memory
Expand Down
Loading