Skip to content

Commit

Permalink
ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
dlwh committed Sep 13, 2024
1 parent b6f334e commit e33a905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/levanter/data/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def train_set(

if self.shuffle is True:
ds = ds.shuffle(key)
elif isinstance(self.shuffle, int):
elif isinstance(self.shuffle, int) and self.shuffle > 0:
ds = ds.era_shuffle(self.shuffle, key=key)

return ds # type: ignore
Expand Down

0 comments on commit e33a905

Please sign in to comment.