Skip to content

Add prefetch_factor arg for loader#83

Merged
philipp-fischer merged 8 commits intodevelopfrom
feature/data_loader_args
Mar 12, 2025
Merged

Add prefetch_factor arg for loader#83
philipp-fischer merged 8 commits intodevelopfrom
feature/data_loader_args

Conversation

@philipp-fischer
Copy link
Copy Markdown
Collaborator

For some use cases, the user needs to fine tune the prefetch_factor argument of the underlying pytorch dataloader. This PR allows to specify the arg when calling get_loader or get_savable_loader

@philipp-fischer philipp-fischer requested a review from voegtlel March 4, 2025 12:34
Copy link
Copy Markdown
Collaborator

@voegtlel voegtlel left a comment

Choose a reason for hiding this comment

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

The n_checkpoints argument is dependent of the prefetch_factor. We should assert that the number matches.

@philipp-fischer
Copy link
Copy Markdown
Collaborator Author

The n_checkpoints argument is dependent of the prefetch_factor. We should assert that the number matches.

Done @lvoegtle

@philipp-fischer philipp-fischer merged commit 366772c into develop Mar 12, 2025
@philipp-fischer philipp-fischer deleted the feature/data_loader_args branch March 13, 2025 12:49
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