-
Notifications
You must be signed in to change notification settings - Fork 164
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
[PaddleV3] 修复部分依赖 paddle.fluid
的 pytorch 模型
#1065
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Closed
Update 20241022本 PR 修复的
CI 的测试结果:
不过,从今天调试 可以参考如下 CI 的日志:https://xly.bce.baidu.com/paddlepaddle/x2paddle-ci/newipipe/detail/11745845/job/27823146 2024-10-22 17:47:43 Traceback (most recent call last):
2024-10-22 17:47:43 File "/workspace/X2Paddle/test_benchmark/PyTorch/mobilenetv3/convert.py", line 11, in <module>
2024-10-22 17:47:43 checkpoint = torch.load(modelFile)
2024-10-22 17:47:43 File "/usr/local/lib/python3.9/dist-packages/torch/serialization.py", line 1097, in load
2024-10-22 17:47:43 return _load(
2024-10-22 17:47:43 File "/usr/local/lib/python3.9/dist-packages/torch/serialization.py", line 1525, in _load
2024-10-22 17:47:43 result = unpickler.load()
2024-10-22 17:47:43 File "/usr/local/lib/python3.9/dist-packages/torch/serialization.py", line 1492, in persistent_load
2024-10-22 17:47:43 typed_storage = load_tensor(dtype, nbytes, key, _maybe_decode_ascii(location))
2024-10-22 17:47:43 File "/usr/local/lib/python3.9/dist-packages/torch/serialization.py", line 1466, in load_tensor
2024-10-22 17:47:43 wrap_storage=restore_location(storage, location),
2024-10-22 17:47:43 File "/usr/local/lib/python3.9/dist-packages/torch/serialization.py", line 414, in default_restore_location
2024-10-22 17:47:43 result = fn(storage, location)
2024-10-22 17:47:43 File "/usr/local/lib/python3.9/dist-packages/torch/serialization.py", line 391, in _deserialize
2024-10-22 17:47:43 device = _validate_device(location, backend_name)
2024-10-22 17:47:43 File "/usr/local/lib/python3.9/dist-packages/torch/serialization.py", line 364, in _validate_device
2024-10-22 17:47:43 raise RuntimeError(f'Attempting to deserialize object on a {backend_name.upper()} '
2024-10-22 17:47:43 RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
|
这个 PR 也可以合入了 ~ 环境的问题可以回头看一下效率云的日志 ~ |
luotao1
approved these changes
Oct 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
修复部分依赖
paddle.fluid
的 pytorch 模型本 PR 修复的 15 个模型已通过 CI:#1065 (comment)