Skip to content

Commit

Permalink
[Misc] SpecDecodeWorker supports profiling (vllm-project#9719)
Browse files Browse the repository at this point in the history
Signed-off-by: Abatom <[email protected]>
  • Loading branch information
Abatom authored Oct 27, 2024
1 parent 69ddbbb commit 2dee2c4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vllm/spec_decode/spec_decode_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,14 @@ def get_cache_block_size_bytes(self):
"""
raise NotImplementedError

def start_profile(self):
if isinstance(self.scorer_worker, Worker):
self.scorer_worker.start_profile()

def stop_profile(self):
if isinstance(self.scorer_worker, Worker):
self.scorer_worker.stop_profile()


def split_num_cache_blocks_evenly(scorer_cache_block_size_bytes: int,
proposer_cache_block_size_bytes: int,
Expand Down

0 comments on commit 2dee2c4

Please sign in to comment.