Skip to content

Commit

Permalink
[Misc]Minor Changes about Worker
Browse files Browse the repository at this point in the history
Signed-off-by: Chenguang Li <[email protected]>
  • Loading branch information
noemotiovon committed Dec 27, 2024
1 parent 81b979f commit ea66d87
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion vllm/v1/worker/gpu_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def determine_num_available_blocks(self) -> Tuple[int, int]:
# Execute a forward pass with dummy inputs to profile the memory usage
# of the model.
self.model_runner.profile_run()
torch.cuda.synchronize()

free_gpu_memory, _ = torch.cuda.mem_get_info()
# NOTE(woosuk): Here we assume that the other processes using the same
Expand Down
1 change: 0 additions & 1 deletion vllm/worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ def determine_num_available_blocks(self) -> Tuple[int, int]:
weights_memory_in_bytes=self.model_runner.
model_memory_usage) as result:
self.model_runner.profile_run()
torch.cuda.synchronize()

self._assert_memory_footprint_increased_during_profiling()

Expand Down

0 comments on commit ea66d87

Please sign in to comment.