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

feat: add support for 7z files #35

Merged
merged 6 commits into from
Feb 12, 2025
Merged

feat: add support for 7z files #35

merged 6 commits into from
Feb 12, 2025

Conversation

McPatate
Copy link
Collaborator

@McPatate McPatate commented Feb 4, 2025

We have had repos that used 7z to compress their malicious models. Adding support for that in this PR.

Open to suggestions on code, not too pleased with the way I had to do it. AFAICT there is no way to get a byte stream for a specific file within the archive with py7zr (cf SevenZipFile.extract docs).

Not sure pytorch or others support loading from 7z files, but as we've had people store things in them I'd rather have the extra feature than not.

@McPatate McPatate requested a review from mmaitre314 February 4, 2025 18:01
@McPatate McPatate force-pushed the feat/add_7z_scan branch 2 times, most recently from e5ffd8b to 7508413 Compare February 4, 2025 18:07
@mmaitre314 mmaitre314 merged commit 25d753f into main Feb 12, 2025
3 checks passed
@McPatate McPatate deleted the feat/add_7z_scan branch February 13, 2025 23:42
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