Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to plot timeline with the label added by torch.profiler.record_function? #99

Open
zhouyiyuan-mt opened this issue Jan 24, 2024 · 2 comments
Labels
help wanted Extra attention is needed needs triage question Further information is requested

Comments

@zhouyiyuan-mt
Copy link

zhouyiyuan-mt commented Jan 24, 2024

What is your question?

I want to plot the timeline of training GPT with pipeline parallelism. I use torch.profiler.record_function to label some functions , such as forward_step and backward_step of each micro_batch. I want to plot these functions for all ranks into one image, how can I do it? If using the example code (https://github.com/facebookresearch/HolisticTraceAnalysis/blob/main/examples/plot_timeline.ipynb), I get an image with kernels rather than record_function.

@zhouyiyuan-mt zhouyiyuan-mt added help wanted Extra attention is needed needs triage question Further information is requested labels Jan 24, 2024
@starstream
Copy link

same question

1 similar comment
@GuWei007
Copy link

same question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed needs triage question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants