-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
torch.load() - OSError on a file larger than 2GB #26998
Comments
Since these PRs are merged, could you please try whether the nightly one solves this issue? |
Nope. It doesn't fix it. Running torch-1.3.0.dev20190924 on Python 3.6.8 still yields the error. |
Looks like force setting f_should_read_directly = False before this block in serialization.py
seems to solve the problem |
The |
Summary: Fixes pytorch#26998 Pull Request resolved: pytorch#27047 Differential Revision: D17666050 Pulled By: ezyang fbshipit-source-id: f02ebd5320ae25f8949be20d0744fe3cd3e2fee9 (cherry picked from commit 1afe3fc)
The fix is getting reverted as it breaks Windows CI |
Summary: Fixes pytorch#26998 Pull Request resolved: pytorch#27047 Differential Revision: D17666050 Pulled By: ezyang fbshipit-source-id: f02ebd5320ae25f8949be20d0744fe3cd3e2fee9 (cherry picked from commit 1afe3fc) (cherry picked from commit 5846008)
* Fixed seek offset size to 64bit. (#27047) Summary: Fixes #26998 Pull Request resolved: #27047 Differential Revision: D17666050 Pulled By: ezyang fbshipit-source-id: f02ebd5320ae25f8949be20d0744fe3cd3e2fee9 (cherry picked from commit 1afe3fc) * Use _lseeki64 instead for MSVC (cherry picked from commit f49f78d)
Summary: Fixes pytorch#26998 Pull Request resolved: pytorch#27047 Differential Revision: D17666050 Pulled By: ezyang fbshipit-source-id: f02ebd5320ae25f8949be20d0744fe3cd3e2fee9
Summary: Fixes pytorch#26998. Pull Request resolved: pytorch#27125 Differential Revision: D17687154 Pulled By: ezyang fbshipit-source-id: 6784f4fd799130ac72a25884f120a0ba96bd4f51
Summary: Fixes pytorch#26998 Pull Request resolved: pytorch#27047 Differential Revision: D17666050 Pulled By: ezyang fbshipit-source-id: f02ebd5320ae25f8949be20d0744fe3cd3e2fee9
馃悰 Bug
In version 1.2, torch.load() does not work with files larger than 2GB.
This is probably due to #20270 or #20900
Windows 10
Python 3.7
Pytorch 1.2.0
cc @ezyang @gchanan @zou3519 @peterjc123
The text was updated successfully, but these errors were encountered: