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

Unused Variables when using DDP Spawn #137

Open
jk-tripathy opened this issue Oct 18, 2023 · 0 comments
Open

Unused Variables when using DDP Spawn #137

jk-tripathy opened this issue Oct 18, 2023 · 0 comments

Comments

@jk-tripathy
Copy link

jk-tripathy commented Oct 18, 2023

When tuning the base models, some variables are unused ( I presume the classification heads that we replace with our own classification head/seq2seq model). This breaks the implementation, making the code unrunnable.
This can be fixed by using ddp_spawn_find_unused_parameters_true strategy rather than ddp_spawn.
An issue discussing this can be found here

NOTE: this issue does not pop up when freezing the base model, leading more credence to the idea that the unused variables are the original classification head that the base model comes with

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