Skip to content

Fix for cache path arg included values#111

Merged
sfc-gh-sbekman merged 2 commits intomainfrom
mwyatt/fix-cache-path-args
Mar 25, 2025
Merged

Fix for cache path arg included values#111
sfc-gh-sbekman merged 2 commits intomainfrom
mwyatt/fix-cache-path-args

Conversation

@sfc-gh-mwyatt
Copy link
Copy Markdown
Collaborator

With the move to using distributed sampler, we want each rank to calculate the same cache path for a given data source. However a recent change in #102 that changed local_rank, global_rank, and world_size to being Pydantic computed_fields meant that these values were being included in the args that determine the cache path for a given data source. Reverting these changes and making those fields with exclude=True so they do not pollute the cache path args.

Copy link
Copy Markdown
Collaborator

@sfc-gh-sbekman sfc-gh-sbekman left a comment

Choose a reason for hiding this comment

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

Thank you for the quick fix, Mike

@sfc-gh-sbekman sfc-gh-sbekman enabled auto-merge (squash) March 25, 2025 19:14
@sfc-gh-sbekman sfc-gh-sbekman merged commit 1521c43 into main Mar 25, 2025
4 checks passed
@sfc-gh-sbekman sfc-gh-sbekman deleted the mwyatt/fix-cache-path-args branch March 25, 2025 19:14
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