-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace FlashAttention with xformers #70
Changes from all commits
c653294
49e406a
00c6129
a8afbca
4a47179
76ad4dc
0330f83
e6bfe3a
36e9f96
f0c462b
02ad58b
bd7657b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -213,7 +213,7 @@ def add_server_arguments(parser: argparse.ArgumentParser): | |
parser.add_argument('--use-np-cache', action='store_true', | ||
help='save a numpy copy of model weights for faster loading') | ||
parser.add_argument('--use-dummy-weights', action='store_true', help='use dummy values for model weights') | ||
# NOTE(woosuk): FlashAttention does not support float32. | ||
# TODO(woosuk): Support FP32 for debugging. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does xformers support FP32? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it does. It is our attention kernel that does not support FP32. More precisely, our attention kernel currently does not support some block sizes when FP32 is used. I will fix this in the future. |
||
parser.add_argument('--dtype', type=str, default='default', choices=['default', 'half', 'bfloat16'], | ||
help=('data type for model weights and activations. ' | ||
'The "default" option will use FP16 precision ' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO (in the next PR): specify the exact dependencies in
setup.py
.