Skip to content
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

Skip compression check with symlink files #3300

Merged

Conversation

mvpatel2000
Copy link
Contributor

What does this PR do?

Skip compression check with symlink files. Add unit tests.

Fixes an issue where some previous checkpoints where .pt.symlink

Copy link
Contributor

@eracah eracah left a comment

Choose a reason for hiding this comment

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

Wow that is a flimsy check. If there are two dots in the filename?! There's gotta be a more robust way. Can we just check directly for common suffixes?

@mvpatel2000
Copy link
Contributor Author

Wow that is a flimsy check. If there are two dots in the filename?! There's gotta be a more robust way

I agree it's not ideal... maybe it should be an explicit whitelist of compressors. This wouldn't raise an error if you try a compressor that doesn't exist, but it would increase robustness. I'm inclined to leave it as is and if it breaks again we can change?

@mvpatel2000 mvpatel2000 merged commit 3128cee into mosaicml:dev May 17, 2024
15 checks passed
@mvpatel2000 mvpatel2000 deleted the mvpatel2000/fix-compression-symlink branch May 17, 2024 17:48
@eracah
Copy link
Contributor

eracah commented May 20, 2024

Wow that is a flimsy check. If there are two dots in the filename?! There's gotta be a more robust way

I agree it's not ideal... maybe it should be an explicit whitelist of compressors. This wouldn't raise an error if you try a compressor that doesn't exist, but it would increase robustness. I'm inclined to leave it as is and if it breaks again we can change?

Ok lemme add a JIRA

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.

3 participants