Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Megatron-LM
Commits
9200e43a
Commit
9200e43a
authored
Jan 03, 2023
by
Tri Dao
Browse files
Remove FA's check for headdim <= 128
parent
d693034e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
megatron/model/transformer.py
megatron/model/transformer.py
+0
-2
No files found.
megatron/model/transformer.py
View file @
9200e43a
...
...
@@ -386,8 +386,6 @@ class ParallelAttention(MegatronModule):
'self-attention for now'
)
assert
self
.
attn_mask_type
==
AttnMaskType
.
causal
,
(
'FlashAttention code path only '
'supports causal mask for now'
)
headdim
=
args
.
hidden_size
/
args
.
num_attention_heads
assert
headdim
<=
128
,
'FlashAttention only supports head dimension at most 128'
if
rearrange
is
None
:
raise
ImportError
(
'einops is not installed, please install with pip install einops'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment