Skip to content

Commit

Permalink
epoch tracking still broken
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmeda14960 committed Oct 24, 2024
1 parent 08fd427 commit 18a5352
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/levanter/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def log_length():
import asyncio

async def compute_length():
length = await ds.async_len()
length = await ds.dataset.async_len()
return length

# Run the async function synchronously in this thread
Expand Down
2 changes: 1 addition & 1 deletion src/levanter/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def __call__(self, step_info):
# Use existing checkpointer's save_checkpoint method
self.checkpointer.save_checkpoint(
step_info,
f"epoch-{current_epoch}"
f"epoch-{current_epoch}",
)
self._last_saved_epoch = current_epoch

Expand Down

0 comments on commit 18a5352

Please sign in to comment.