Skip to content

Commit

Permalink
Update tinyllama.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jzhang38 authored Oct 18, 2023
1 parent 8499a1e commit 308155e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pretrain/tinyllama.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def main(fabric, train_data_dir, val_data_dir, resume):
fabric=fabric,
train_data_dir=train_data_dir,
val_data_dir=val_data_dir,
seed=(3407 + fabric.global_rank),
seed=3407,
)
if val_dataloader is None:
train_dataloader = fabric.setup_dataloaders(train_dataloader)
Expand Down Expand Up @@ -315,7 +315,7 @@ def create_dataloader(
n_chunks=8,
block_size=block_size,
shuffle=shuffle,
seed=seed,
seed=seed+fabric.global_rank,
num_processes=fabric.world_size,
process_rank=fabric.global_rank,
)
Expand Down

0 comments on commit 308155e

Please sign in to comment.