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
2a206b22
Unverified
Commit
2a206b22
authored
Mar 24, 2025
by
Kyungmin Lee
Committed by
GitHub
Mar 23, 2025
Browse files
Fix RotaryEmbedding when using Triton backend for EXAONE-3.5-2.4B (#4064)
parent
4d253057
Changes
1
Hide 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 @
2a206b22
...
...
@@ -148,7 +148,7 @@ class RotaryEmbedding(CustomOp):
key
:
torch
.
Tensor
,
offsets
:
Optional
[
torch
.
Tensor
]
=
None
,
)
->
Tuple
[
torch
.
Tensor
,
torch
.
Tensor
]:
if
_is_cuda_available
:
if
_is_cuda_available
and
(
self
.
head_size
in
[
64
,
128
,
256
,
512
])
:
apply_rope_with_cos_sin_cache_inplace
(
positions
=
positions
,
query
=
query
,
...
...
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