Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
cfba4def
Unverified
Commit
cfba4def
authored
Aug 12, 2024
by
Woosuk Kwon
Committed by
GitHub
Aug 12, 2024
Browse files
[Bugfix] Fix logit soft cap in flash-attn backend (#7425)
parent
d2bc4510
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
vllm/attention/backends/flash_attn.py
vllm/attention/backends/flash_attn.py
+1
-0
No files found.
vllm/attention/backends/flash_attn.py
View file @
cfba4def
...
@@ -563,6 +563,7 @@ class FlashAttentionImpl(AttentionImpl):
...
@@ -563,6 +563,7 @@ class FlashAttentionImpl(AttentionImpl):
softmax_scale
=
self
.
scale
,
softmax_scale
=
self
.
scale
,
causal
=
True
,
causal
=
True
,
alibi_slopes
=
self
.
alibi_slopes
,
alibi_slopes
=
self
.
alibi_slopes
,
softcap
=
self
.
logits_soft_cap
,
).
squeeze
(
1
)
).
squeeze
(
1
)
# Reshape the output tensor.
# Reshape the output tensor.
...
...
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