Skip to content
Closed
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
4 changes: 3 additions & 1 deletion vllm/v1/worker/gpu_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ def determine_available_memory(self) -> int:
)["allocated_bytes.all.current"]
total_allocated_bytes = torch.cuda.mem_get_info(
)[1] - torch.cuda.mem_get_info()[0]
non_torch_allocations = total_allocated_bytes - torch_allocated_bytes
init_allocated = total_gpu_memory - self.init_gpu_memory
non_torch_allocations = total_allocated_bytes - torch_allocated_bytes \
- init_allocated
if non_torch_allocations > 0:
peak_memory += non_torch_allocations
available_kv_cache_memory = (
Expand Down