Skip to content

Commit 77208c6

Browse files
committed
Fix a bug.
1 parent 474cb08 commit 77208c6

File tree

2 files changed

+1
-73
lines changed

2 files changed

+1
-73
lines changed

scripts/unimodel/unimodel_training_for_image_encoder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def main_process(rank: int, world_size: int, args):
4545
shuffle=True)
4646

4747
model = load_vit_for_simclr_training(args, device=None)
48+
model = model.to(rank)
4849
model = DDP(model, device_ids=[rank], find_unused_parameters=True)
4950

5051
optimizer = torch.optim.Adam(model.parameters(), args.model_config.lr_config.lr,

scripts/unimodl_training_for_image_encoder.py

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)