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

Support for DataParallel? #1

Open
zimmerrol opened this issue May 10, 2022 · 1 comment
Open

Support for DataParallel? #1

zimmerrol opened this issue May 10, 2022 · 1 comment

Comments

@zimmerrol
Copy link

Hi, I noticed that the current version does not support parallel models (at least those created using torch.nn.DataParallel) since the forward hook does not differentiate between the different copies of the model and a model wrapped with Inspect will just return the intermediate features of the last copy of the parallelized model to run.

Are you planning on fixing this issue/supporting this use case?

@flavioschneider
Copy link
Member

Hi @zimmerrol! Currently, I don't have access to multiple GPUs to try this feature out, nor do I have experience with DataParallel. If your model has a static execution graph, you might be able to output intermediate values using the Extract class before wrapping your model with DataParallel.

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

2 participants