Skip to content

Commit

Permalink
fix down the line instead
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshitaB committed Oct 2, 2024
1 parent 7881c9c commit 2218d82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def main(cfg: TrainConfig) -> None:
cfg.optimizer.decay_embeddings = not cfg.optimizer.no_decay_norm_and_bias
cfg.optimizer.no_decay_norm_and_bias = None # So nobody uses this by accident.

if cfg.save_folder.startswith("s3:/") and not cfg.save_folder.startswith("s3://"):
cfg.save_folder = cfg.save_folder.replace("s3:/", "s3://")
# Display and save configuration.
if get_global_rank() == 0:
if cfg.data.paths is not None and len(cfg.data.paths) < 50:
Expand Down

0 comments on commit 2218d82

Please sign in to comment.