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
61a0e600
Unverified
Commit
61a0e600
authored
Aug 22, 2025
by
timmy-feng
Committed by
GitHub
Aug 21, 2025
Browse files
torch.compile() mrope (#9487)
parent
0f8cee8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
python/sglang/srt/layers/rotary_embedding.py
python/sglang/srt/layers/rotary_embedding.py
+1
-0
No files found.
python/sglang/srt/layers/rotary_embedding.py
View file @
61a0e600
...
...
@@ -1029,6 +1029,7 @@ class MRotaryEmbedding(RotaryEmbedding):
f
"Corrected mrope_section:
{
self
.
mrope_section
}
(sum=
{
sum
(
self
.
mrope_section
)
}
)"
)
@
torch
.
compile
(
dynamic
=
True
)
def
forward
(
self
,
positions
:
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