-
Notifications
You must be signed in to change notification settings - Fork 245
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
Multi-worker support in Pytorch Dataset #147
Conversation
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.
can we make it so the max_rows_per_file
and max_rows_per_group
is passed in explicitly via commandline options in parse_pet.py
? the default behavior should be the same as before so analytics performance stays the same if we need to re-run benchmark numbers
python/benchmarks/parse_pet.py
Outdated
partitioning=["split"], | ||
existing_data_behavior="overwrite_or_ignore", | ||
max_rows_per_group=128, | ||
max_rows_per_file=256, # Create enough files for parallism |
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.
parallelism
|
||
|
||
def dataset( | ||
uri: str, | ||
) -> ds.Dataset: | ||
) -> ds.FileSystemDataset: |
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.
why not leave it more generic? do we use FileSystemDataset-specific APIs?
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.
FileSystemDataset has this dataset.files
attributes.
self._files = dataset(self.root).files | ||
worker_info = torch.utils.data.get_worker_info() | ||
if worker_info: | ||
# Split the work using at the files level for now. |
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.
so just to check my understanding, this is what's forcing us to split into many smaller files right now right? Theoretically if we just have some num_rows based parallelism we could have good analytics performance and good training scan performance?
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.
Yes.
0be314b
to
b697571
Compare
Closes #145