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
change
sglang
Commits
014cab4d
Unverified
Commit
014cab4d
authored
Feb 09, 2025
by
Yineng Zhang
Committed by
GitHub
Feb 09, 2025
Browse files
update forward_return_lse (#3425)
parent
4d2dbeac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
python/sglang/srt/layers/attention/flashinfer_backend.py
python/sglang/srt/layers/attention/flashinfer_backend.py
+3
-3
No files found.
python/sglang/srt/layers/attention/flashinfer_backend.py
View file @
014cab4d
...
...
@@ -409,9 +409,9 @@ class FlashInferAttnBackend(AttentionBackend):
)
else
:
o1
,
s1
=
self
.
prefill_wrapper_ragged
.
forward_return_lse
(
q
.
contiguous
().
view
(
-
1
,
layer
.
tp_q_head_num
,
layer
.
head_dim
),
k
.
contiguous
().
view
(
-
1
,
layer
.
tp_k_head_num
,
layer
.
head_dim
),
v
.
contiguous
().
view
(
-
1
,
layer
.
tp_v_head_num
,
layer
.
head_dim
),
q
.
view
(
-
1
,
layer
.
tp_q_head_num
,
layer
.
head_dim
),
k
.
view
(
-
1
,
layer
.
tp_k_head_num
,
layer
.
head_dim
),
v
.
view
(
-
1
,
layer
.
tp_v_head_num
,
layer
.
head_dim
),
causal
=
True
,
sm_scale
=
layer
.
scaling
,
logits_soft_cap
=
logits_soft_cap
,
...
...
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