jupyterjazz
commited on
Commit
•
c232c27
1
Parent(s):
11ba200
chore: source
Browse filesSigned-off-by: jupyterjazz <[email protected]>
mha.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
# Copyright (c) 2023, Tri Dao.
|
|
|
2 |
|
3 |
import math
|
4 |
from functools import partial
|
|
|
1 |
# Copyright (c) 2023, Tri Dao.
|
2 |
+
# Adapted from https://github.com/Dao-AILab/flash-attention/pull/556
|
3 |
|
4 |
import math
|
5 |
from functools import partial
|
rotary.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
# Copyright (c) 2023, Tri Dao.
|
2 |
|
3 |
import math
|
|
|
1 |
+
# Adapted from https://github.com/Dao-AILab/flash-attention/pull/556
|
2 |
# Copyright (c) 2023, Tri Dao.
|
3 |
|
4 |
import math
|