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

Fix DataParallel training with adapters #658

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

calpt
Copy link
Member

@calpt calpt commented Mar 16, 2024

Closes #650.

The current implementation of composition blocks via composition_to_func_map prevents usage with torch's DataParallel built into HF Trainer, as described in #649, #650.
This PR fixes compatibility with DataParallel. Tested with the script provided in #650 running on two GPUs.

Copy link
Member

@lenglaender lenglaender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Nice that it is now working in multi-GPU setups! I couldn't test it myself since I don't have 2 GPUs, but since you tested it, let's merge this.

@calpt calpt merged commit ea5c08e into adapter-hub:main Mar 20, 2024
3 checks passed
@calpt calpt deleted the fix/dataparallel branch March 20, 2024 21:10
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

Successfully merging this pull request may close these issues.

multi GPU setup causes error
2 participants