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

NVTX can't annotate backward process of AI model training #101

Open
JuiceLemonLemon opened this issue Aug 2, 2024 · 1 comment
Open
Assignees
Labels

Comments

@JuiceLemonLemon
Copy link

JuiceLemonLemon commented Aug 2, 2024

Hello,
Good afternoon!

When I annotate my training process by NVTX, then show in Nsight system, I found the forward process is annotated successfully, but the backward process is not. I don't know why.

                    with nvtx.annotate("backward path", color="yellow"):
                        loss.backward()

Tasks

Preview Give feedback
No tasks being tracked yet.
@evanramos-nvidia
Copy link
Collaborator

A simple explanation of what's happening: The backward pass happens in a different thread, so the NVTX ranges generated by those operations are not seen as decedents of the scoped range that encases the call to .backward().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants