Skip to content

Commit

Permalink
fix what is probably the underlying problem
Browse files Browse the repository at this point in the history
  • Loading branch information
dlwh committed Oct 14, 2024
1 parent 2c5ee4b commit ab543d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/levanter/data/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def __iter__(self):
return self.iter_from_step(None)

def iter_from_step(self, start_from_batch: Optional[int] = None):
# sometimes we pass in an array for the start_from_batch, so we need to check for that
start_from_batch = int(start_from_batch) if start_from_batch is not None else None
return DataLoaderIterator(self, start_from_batch=start_from_batch)


Expand Down

0 comments on commit ab543d6

Please sign in to comment.