Open-Sora: Democratizing Efficient Video Production for All
Python
Import Tuple from typing instead of torch
Alex Gherghina8202ca13dfd6
diff --git a/opensora/models/mmdit/math.py b/opensora/models/mmdit/math.pyindex 8257b0e..f09cd97 100644--- a/opensora/models/mmdit/math.py+++ b/opensora/models/mmdit/math.py@@ -2,7 +2,8 @@ import torchfrom einops import rearrangefrom flash_attn import flash_attn_func as flash_attn_func_v2from liger_kernel.ops.rope import LigerRopeFunction-from torch import Tensor, Tuple+from torch import Tensor+from typing import Tupletry:from flash_attn_interface import flash_attn_func as flash_attn_func_v3