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
gaoqiong
flash-attention
Commits
8e44c0ee
"vscode:/vscode.git/clone" did not exist on "4ea0ec20fb88a55a348f215a4802962a6df28b9d"
Unverified
Commit
8e44c0ee
authored
Jun 02, 2023
by
ljss
Committed by
GitHub
Jun 02, 2023
Browse files
Fix a bug
parent
85b51d61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
flash_attn/modules/block.py
flash_attn/modules/block.py
+1
-1
No files found.
flash_attn/modules/block.py
View file @
8e44c0ee
...
@@ -119,7 +119,7 @@ class Block(nn.Module):
...
@@ -119,7 +119,7 @@ class Block(nn.Module):
before applying the query projection. Useful for e.g., ViT where we only care
before applying the query projection. Useful for e.g., ViT where we only care
about the CLS token in the last layer.
about the CLS token in the last layer.
"""
"""
fused_add_norm_fn
=
(
dropout_add_rms_norm
if
isinstance
(
self
.
norm1
,
RMSNorm
)
fused_add_norm_fn
=
(
dropout_add_rms_norm
if
RMSNorm
and
isinstance
(
self
.
norm1
,
RMSNorm
)
else
dropout_add_layer_norm
)
else
dropout_add_layer_norm
)
if
self
.
prenorm
:
if
self
.
prenorm
:
if
not
self
.
fused_dropout_add_ln
:
if
not
self
.
fused_dropout_add_ln
:
...
...
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