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

fix: handle broken pickled files better #33

Merged
merged 1 commit into from
Jan 29, 2025
Merged

Conversation

McPatate
Copy link
Collaborator

A user reported that broken pickle files can still be partially deserialized and cause damage.

Small fix to better catch imports in such cases, we try to deserialize the pickle as far as we can before exiting the main loop.

cf https://huggingface.co/kzanki/broken_model/tree/main

@McPatate McPatate requested a review from mmaitre314 January 28, 2025 16:33
@mmaitre314 mmaitre314 merged commit efb2533 into main Jan 29, 2025
3 checks passed
@McPatate McPatate deleted the fix/broken_pkl_scan branch February 4, 2025 11:55
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