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

AttributeError: module 'torch.compiler' has no attribute 'is_compiling' #741

Open
qqnr88 opened this issue Nov 14, 2024 · 1 comment
Open

Comments

@qqnr88
Copy link

qqnr88 commented Nov 14, 2024

AttributeError: module 'torch.compiler' has no attribute 'is_compiling'

@Toroidal-meow
Copy link

Same problem here. Fixed by modifying the fused_layer_norm.py in Apex.

Change line 412 and 316 If statement as follows:

if torch.jit.is_tracing() or torch.jit.is_scripting() or (hasattr(torch.compiler, 'is_compiling') and torch.compiler.is_compiling()) or not input.is_cuda:

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

No branches or pull requests

2 participants