Skip to content

Commit

Permalink
fix duplicate entries in the tp > 1 case
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasWilkinson committed Sep 17, 2024
1 parent 344595b commit a1271fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vllm/profiler/layerwise_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ def _build_module_tree(self):

def _df_traversal(event: _ProfilerEvent,
curr_node: Optional[_ModuleTreeNode] = None):

# For the tensor parallel case for now only look at task 1
if event.start_tid != 1:
return

if event_has_module(event):
node = _ModuleTreeNode(event=event, parent=curr_node)
if curr_node:
Expand Down

0 comments on commit a1271fa

Please sign in to comment.