Skip to content

Conversation

@O-J1
Copy link
Collaborator

@O-J1 O-J1 commented Dec 5, 2025

Round 2 of eta fix, hopefully this time not breaking cloud and multi-gpu. Need another to test cloud.


def _calculate_eta_string(self, train_progress: TrainProgress, max_step: int, max_epoch: int) -> str | None:
# Guard against None values before first progress callback
if self.start_time is None or self.session_start_epoch is None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can never happen. the function is only called immediatly after setting it to non-None
if you want have a logical check, an assert() would do that

@dxqb
Copy link
Collaborator

dxqb commented Dec 6, 2025

Need another to test cloud.

as long as it's not accessing internals of GenericTrainer, I think it's safe at doesn't necessarily have to be tested with cloud or multi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants