Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds step tracking at epoch level #2081

Merged
merged 1 commit into from
Jun 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ludwig/models/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,8 +931,8 @@ def _train_loop(
final_steps_per_checkpoint: int,
early_stopping_steps: int,
) -> bool:
"""Completes one epoch through the data."""
while not batcher.last_batch():
"""Completes up to one epoch through the data."""
while not batcher.last_batch() and progress_tracker.steps < self.total_steps:
self.callback(lambda c: c.on_batch_start(self, progress_tracker, save_path))

# Set learning rate for this batch
Expand Down