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
519ff5c8
Unverified
Commit
519ff5c8
authored
Jul 17, 2025
by
fzyzcjy
Committed by
GitHub
Jul 17, 2025
Browse files
Super tiny fix typo (#8046)
parent
af1cc8fe
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/flashattention_backend.py
python/sglang/srt/layers/attention/flashattention_backend.py
+3
-3
No files found.
python/sglang/srt/layers/attention/flashattention_backend.py
View file @
519ff5c8
...
@@ -1617,7 +1617,7 @@ class FlashAttentionBackend(AttentionBackend):
...
@@ -1617,7 +1617,7 @@ class FlashAttentionBackend(AttentionBackend):
metadata
.
max_seq_len_k
+
self
.
page_size
-
1
metadata
.
max_seq_len_k
+
self
.
page_size
-
1
)
//
self
.
page_size
)
//
self
.
page_size
normal_decode_set_me
d
adata
(
normal_decode_set_me
t
adata
(
metadata
.
cache_seqlens_int32
,
metadata
.
cache_seqlens_int32
,
metadata
.
cu_seqlens_k
,
metadata
.
cu_seqlens_k
,
metadata
.
page_table
,
metadata
.
page_table
,
...
@@ -1666,7 +1666,7 @@ class FlashAttentionBackend(AttentionBackend):
...
@@ -1666,7 +1666,7 @@ class FlashAttentionBackend(AttentionBackend):
max_seq_pages
=
(
max_len
+
self
.
page_size
-
1
)
//
self
.
page_size
max_seq_pages
=
(
max_len
+
self
.
page_size
-
1
)
//
self
.
page_size
metadata
.
max_seq_len_k
=
max_len
metadata
.
max_seq_len_k
=
max_len
normal_decode_set_me
d
adata
(
normal_decode_set_me
t
adata
(
metadata
.
cache_seqlens_int32
,
metadata
.
cache_seqlens_int32
,
metadata
.
cu_seqlens_k
,
metadata
.
cu_seqlens_k
,
metadata
.
page_table
,
metadata
.
page_table
,
...
@@ -2089,7 +2089,7 @@ class FlashAttentionMultiStepBackend:
...
@@ -2089,7 +2089,7 @@ class FlashAttentionMultiStepBackend:
# @torch.compile(dynamic=True, backend=get_compiler_backend())
# @torch.compile(dynamic=True, backend=get_compiler_backend())
# TODO: fuse these kernels
# TODO: fuse these kernels
# NOTE: torch.compile makes it slower in speculative decoding
# NOTE: torch.compile makes it slower in speculative decoding
def
normal_decode_set_me
d
adata
(
def
normal_decode_set_me
t
adata
(
cache_seqlens_int32
:
torch
.
Tensor
,
cache_seqlens_int32
:
torch
.
Tensor
,
cu_seqlens_k
:
torch
.
Tensor
,
cu_seqlens_k
:
torch
.
Tensor
,
page_table
:
torch
.
Tensor
,
page_table
:
torch
.
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