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 np.memmap usage, add flag to force not using memmap #2081

Merged

Conversation

nv-alicheng
Copy link
Contributor

Current usage of np.memmap in IGBH accuracy checker is broken. The issue is detailed in this StackOverflow post, but the tl;dr is np.memmap is meant to be used with raw bytes, but since the file being loaded is a pickled (and formatted) numpy file, it is supposed to use the mmap_mode argument in numpy.load instead.

@nv-alicheng nv-alicheng requested a review from a team as a code owner February 3, 2025 14:53
Copy link
Contributor

github-actions bot commented Feb 3, 2025

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@nv-alicheng
Copy link
Contributor Author

@pgmpablo157321 This is pretty urgent, could you review and merge this ASAP?

Copy link
Contributor

@arjunsuresh arjunsuresh left a comment

Choose a reason for hiding this comment

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

Bug fix for mmap

@arjunsuresh arjunsuresh merged commit 9a2c0a1 into mlcommons:master Feb 3, 2025
8 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants