Skip to content

Commit

Permalink
Merge pull request #7 from wiserxin/main
Browse files Browse the repository at this point in the history
del the repeated torch.nn.DataParallel
  • Loading branch information
shibing624 committed Oct 26, 2022
2 parents d2f7222 + 4ac8e96 commit c989577
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions textgen/t5/t5_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,9 +961,6 @@ def evaluate(self, eval_dataset, output_dir, verbose=True, silent=False, **kwarg
nb_eval_steps = 0
model.eval()

if args.n_gpu > 1:
model = torch.nn.DataParallel(model)

if self.args.fp16:
from torch.cuda import amp

Expand Down

0 comments on commit c989577

Please sign in to comment.