hpcaitech / Open-Sora

Open-Sora: Democratizing Efficient Video Production for All
https://hpcaitech.github.io/Open-Sora/
Apache License 2.0
22.42k stars 2.19k forks source link

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

Closed qqnr88 closed 8 hours ago

qqnr88 commented 2 weeks ago

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

Toroidal-meow commented 2 weeks ago

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:

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 7 days with no activity.

github-actions[bot] commented 8 hours ago

This issue was closed because it has been inactive for 7 days since being marked as stale.