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
15e91d72
"sgl-kernel/csrc/common_extension.cc" did not exist on "ad55f1718262d30d1a8eb4ca16d3b12952bdc712"
Unverified
Commit
15e91d72
authored
Apr 15, 2025
by
fzyzcjy
Committed by
GitHub
Apr 15, 2025
Browse files
Tiny fix DeepseekScalingRotaryEmbedding always use forward_native (#5406)
parent
8aab7fdb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/layers/rotary_embedding.py
python/sglang/srt/layers/rotary_embedding.py
+1
-1
No files found.
python/sglang/srt/layers/rotary_embedding.py
View file @
15e91d72
...
...
@@ -649,7 +649,7 @@ class DeepseekScalingRotaryEmbedding(RotaryEmbedding):
return
self
.
forward_native
(
*
args
,
**
kwargs
)
def
forward
(
self
,
*
args
,
**
kwargs
):
if
torch
.
_dynamo
.
is_compiling
:
if
torch
.
compiler
.
is_compiling
()
:
return
self
.
forward_native
(
*
args
,
**
kwargs
)
if
_is_cuda_available
:
return
self
.
forward_cuda
(
*
args
,
**
kwargs
)
...
...
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