-
Notifications
You must be signed in to change notification settings - Fork 106
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
Fix multiprocessing dataloader checkpointing and use it in the train script #50
Conversation
@@ -236,7 +236,7 @@ def create_iter( | |||
|
|||
def _set_row_num(self, target_row_num: int): | |||
logger.info( | |||
f"Setting arrow position to {target_row_num} for {self.dataset_files}" | |||
f"Setting arrow position to {target_row_num} for {str(self.dataset_files)[:200]}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps mention in the print that its the top 200 in this case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The list of files can be quite large, this effectively just truncates the log length.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just add a .... or something to indicate that we arent printing the entire list, so that we dont look at the log and wrongly infer that some datasets are being skipped
@@ -286,5 +286,5 @@ def _set_row_num(self, target_row_num: int): | |||
curr_remaining -= len(batch) | |||
self.row_num = target_row_num | |||
logger.info( | |||
f"Finished setting arrow position to {target_row_num} for {self.dataset_files}" | |||
f"Finished setting arrow position to {target_row_num} for {str(self.dataset_files)[:200]}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
bd3cf61
to
3e3193c
Compare
…script Summary: Test Plan:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Summary:
Test Plan: