Skip to content

Commit

Permalink
Parallel with single GPU is working!
Browse files Browse the repository at this point in the history
Signed-off-by: Virginia Adams <vadams@nvidia.com>
  • Loading branch information
vadam5 committed Feb 17, 2022
1 parent 724773f commit 085d2ed
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,8 @@ def prompt_tuning_param_optimizer_setup_and_freeze(self):
for prompt_tag in self.model.language_model.prompt_table.prompt_table.keys():
if prompt_tag in self.prompts_to_tune:
for params in self.model.language_model.prompt_table.prompt_table[prompt_tag].parameters():
param.requires_grad = True
params.requires_grad = True
weight_decay_params['params'].append(params)
self.prompt_tuning_params.append(params)
else:
for param in self.model.language_model.prompt_table.prompt_table[prompt_tag].parameters():
param.requires_grad = False
Expand Down

0 comments on commit 085d2ed

Please sign in to comment.