Skip to content

Commit

Permalink
chore: change doscrting
Browse files Browse the repository at this point in the history
  • Loading branch information
samsja committed Sep 20, 2024
1 parent 7108546 commit 08e02a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/zeroband/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
from zeroband.utils.logging import get_logger


# Function to initialize the distributed process group
def ddp_setup():
"""
Initialize the distributed process group.
"""
init_process_group()
torch.cuda.set_device(world_info.local_rank)

Expand Down Expand Up @@ -112,7 +114,7 @@ def train(config: Config):
inner_optimizer,
num_warmup_steps=config.optim.warmup_steps,
num_training_steps=config.optim.total_steps,
)
)

model.train()

Expand Down

0 comments on commit 08e02a4

Please sign in to comment.