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

Does MSDeformable support torch.compile? #226

Open
Lwzzzzzz opened this issue Apr 1, 2024 · 0 comments
Open

Does MSDeformable support torch.compile? #226

Lwzzzzzz opened this issue Apr 1, 2024 · 0 comments

Comments

@Lwzzzzzz
Copy link

Lwzzzzzz commented Apr 1, 2024

Initially, I encountered problems using the Whole network capture of torch.cuda.graph and was unable to run smoothly.

So I switched to Partial network capture for modules in the network, but once I applied torch.cuda.make_graphed_callables() to modules containing MSDeformableAttention, an error occurred. I realized that this was not feasible, so I had to manually bypass the module containing MSDeformableAttention.

Recently, pytorch provided torch.compile, which is said to automatically avoid such modules, but I still encountered errors. Is there a way to make MSDeformableAttention support torch.compile?

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

No branches or pull requests

1 participant