-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
import apex always have AttributeError: module 'torch' has no attribute 'library' #1870
Comments
Did you solve it? |
NO, still bothers me |
you can try apex-22.02-parallel-state,I solve this problem just now |
where to get apex-22.02-parallel-state? I can not find it. and python version? no 22.02 |
git clone https://github.com/NVIDIA/apex.git |
yes,you can try |
Thanks for your answer, I have solved it. cuda11.3+torch1.10.1+torchvision0.11.2+torchaudio0.10.1 |
It works in cuda 11.3, thank you a lot |
我用这个版本成功解决了 |
always have
Traceback (most recent call last):
File "", line 1, in
File "/root/apex/apex/init.py", line 26, in
from . import normalization
File "/root/apex/apex/normalization/init.py", line 1, in
from .fused_layer_norm import FusedLayerNorm, MixedFusedLayerNorm, FusedRMSNorm, MixedFusedRMSNorm
File "/root/apex/apex/normalization/fused_layer_norm.py", line 70, in
if supports_custom_op():
File "/root/apex/apex/normalization/fused_layer_norm.py", line 18, in supports_custom_op
return hasattr(torch.library, "custom_op")
AttributeError: module 'torch' has no attribute 'library'。
no matter cuda10.1+torch1.6.0/1.7.1 python3.7 or cuda11.1+torch1.8.0 python3.8 or cuda11.3+torch1.10.1 python3.8, apex did nnot work!
The text was updated successfully, but these errors were encountered: