Spaces:
Paused
Paused
Update hymm_sp/modules/models_audio.py
Browse files
hymm_sp/modules/models_audio.py
CHANGED
@@ -6,11 +6,9 @@ import torch.nn as nn
|
|
6 |
import torch.nn.functional as F
|
7 |
from diffusers.models import ModelMixin
|
8 |
from diffusers.configuration_utils import ConfigMixin, register_to_config
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
print("⚠️ flash_attn not available — using fallback.")
|
13 |
-
flash_attn_varlen_func = None # or create a dummy function if needed
|
14 |
|
15 |
|
16 |
|
|
|
6 |
import torch.nn.functional as F
|
7 |
from diffusers.models import ModelMixin
|
8 |
from diffusers.configuration_utils import ConfigMixin, register_to_config
|
9 |
+
|
10 |
+
from flash_attn.flash_attn_interface import flash_attn_varlen_func
|
11 |
+
|
|
|
|
|
12 |
|
13 |
|
14 |
|