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
2ec7d3f7
Unverified
Commit
2ec7d3f7
authored
Jan 15, 2023
by
Tri Dao
Committed by
GitHub
Jan 15, 2023
Browse files
Merge pull request #105 from jamaliki/patch-1
Change default dropout value in documentation
parents
ef085cfc
41cb9097
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
flash_attn/flash_attention.py
flash_attn/flash_attention.py
+1
-1
No files found.
flash_attn/flash_attention.py
View file @
2ec7d3f7
...
...
@@ -16,7 +16,7 @@ class FlashAttention(nn.Module):
(default: 1/sqrt(d_keys) where d_keys is computed at
runtime)
attention_dropout: The dropout rate to apply to the attention
(default: 0.
1
)
(default: 0.
0
)
"""
def
__init__
(
self
,
softmax_scale
=
None
,
attention_dropout
=
0.0
,
device
=
None
,
dtype
=
None
):
super
().
__init__
()
...
...
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