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]>
Signed-off-by: qishuai <[email protected]>
  • Loading branch information
Abatom authored and FerdinandZhong committed Oct 29, 2024
1 parent 6183dfc commit 1de52e7
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 1de52e7

Please sign in to comment.