-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding and editing
efficient_attention
- Loading branch information
Showing
5 changed files
with
90 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .blockwise_attention import blockwise_dot_product_attention | ||
from .efficient_attention import efficient_attention | ||
from .flash_attention_0 import dot_product_attention_multihead, dot_product_attention_multiquery, \ | ||
dot_product_attention_queries_per_head |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from ._func import average_metrics, global_norm, transpose | ||
from ._func import average_metrics, global_norm, transpose, fused_softmax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,13 @@ | |
|
||
setuptools.setup( | ||
name="fjformer", | ||
version='0.0.0', | ||
version='0.0.1', | ||
author="Erfan Zare Chavoshi", | ||
author_email="[email protected]", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/erfanzar/", | ||
packages=setuptools.find_packages('fjformer'), | ||
packages=setuptools.find_packages(), | ||
install_requires=[ | ||
"numpy", | ||
"jax>=0.4.10", | ||
|