Commit ·
2955790
1
Parent(s): ffefe3d
fix
Browse files
attn.py
CHANGED
|
@@ -3,7 +3,7 @@ import torch
|
|
| 3 |
from torch.nn.attention.flex_attention import flex_attention, create_block_mask
|
| 4 |
import torch.nn as nn
|
| 5 |
import torch.nn.functional as F
|
| 6 |
-
|
| 7 |
from .utils import nearest_power_of_two
|
| 8 |
|
| 9 |
try:
|
|
|
|
| 3 |
from torch.nn.attention.flex_attention import flex_attention, create_block_mask
|
| 4 |
import torch.nn as nn
|
| 5 |
import torch.nn.functional as F
|
| 6 |
+
from .rotary_emb import apply_rotary_emb
|
| 7 |
from .utils import nearest_power_of_two
|
| 8 |
|
| 9 |
try:
|