8000 Hide getitems in Dynamo bytecode profiling · Issue #153372 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content
Hide getitems in Dynamo bytecode profiling #153372
@zou3519

Description

@zou3519

Image

Profiling vLLM leads to a profile that looks like the above. There are a lot of small "dict getitem" calls in the middle.

This seems to be not representative. For example, in the profile above it looks like it takes 40% of the overall time, but in reality, it likely takes a lot less and there is some per-call profiler overhead.

We should try to figure out what is emitting these (this is likely a more generic torch.compile x profiler problem, because this is using the PyTorch profiler) and see if we can group them all together in one single "dynamo bytecode" region.

To repro:

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0