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
780fbf2f
Unverified
Commit
780fbf2f
authored
Oct 14, 2025
by
Lifu Huang
Committed by
GitHub
Oct 14, 2025
Browse files
[Fix] Fix accuracy bug in CSGMV kernel caching key. (#11579)
parent
825432fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
python/sglang/srt/lora/triton_ops/chunked_sgmv_expand.py
python/sglang/srt/lora/triton_ops/chunked_sgmv_expand.py
+1
-1
python/sglang/srt/lora/triton_ops/chunked_sgmv_shrink.py
python/sglang/srt/lora/triton_ops/chunked_sgmv_shrink.py
+4
-2
No files found.
python/sglang/srt/lora/triton_ops/chunked_sgmv_expand.py
View file @
780fbf2f
...
@@ -9,7 +9,7 @@ from sglang.srt.utils import cached_triton_kernel
...
@@ -9,7 +9,7 @@ from sglang.srt.utils import cached_triton_kernel
@
cached_triton_kernel
(
lambda
_
,
kwargs
:
(
kwargs
[
"NUM_SLICES"
],
kwargs
[
"BLOCK_M"
]))
@
cached_triton_kernel
(
lambda
_
,
kwargs
:
(
kwargs
[
"NUM_SLICES"
],
kwargs
[
"BLOCK_M"
]))
@
triton
.
jit
@
triton
.
jit
(
do_not_specialize
=
[
"num_segs"
])
def
_chunked_lora_expand_kernel
(
def
_chunked_lora_expand_kernel
(
# Pointers to matrices
# Pointers to matrices
x
,
x
,
...
...
python/sglang/srt/lora/triton_ops/chunked_sgmv_shrink.py
View file @
780fbf2f
...
@@ -6,8 +6,10 @@ from sglang.srt.lora.utils import LoRABatchInfo
...
@@ -6,8 +6,10 @@ from sglang.srt.lora.utils import LoRABatchInfo
from
sglang.srt.utils
import
cached_triton_kernel
from
sglang.srt.utils
import
cached_triton_kernel
@
cached_triton_kernel
(
lambda
_
,
kwargs
:
(
kwargs
[
"NUM_SLICES"
],
kwargs
[
"BLOCK_M"
]))
@
cached_triton_kernel
(
@
triton
.
jit
lambda
_
,
kwargs
:
(
kwargs
[
"K"
],
kwargs
[
"NUM_SLICES"
],
kwargs
[
"BLOCK_M"
])
)
@
triton
.
jit
(
do_not_specialize
=
[
"num_segs"
])
def
_chunked_lora_shrink_kernel
(
def
_chunked_lora_shrink_kernel
(
# Pointers to matrices
# Pointers to matrices
x
,
x
,
...
...
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