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
9120e83d
Unverified
Commit
9120e83d
authored
Jul 15, 2025
by
Xinyuan Tong
Committed by
GitHub
Jul 15, 2025
Browse files
fix: remove redundant rotary embedding cache recomputation in MiniCPM (#8022)
parent
6e923dbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
python/sglang/srt/models/minicpm.py
python/sglang/srt/models/minicpm.py
+0
-2
No files found.
python/sglang/srt/models/minicpm.py
View file @
9120e83d
...
@@ -138,8 +138,6 @@ class MiniCPMAttention(nn.Module):
...
@@ -138,8 +138,6 @@ class MiniCPMAttention(nn.Module):
base
=
rope_theta
,
base
=
rope_theta
,
rope_scaling
=
rope_scaling
,
rope_scaling
=
rope_scaling
,
)
)
# set rope as fp32 instead of bf16
self
.
rotary_emb
.
cos_sin_cache
=
self
.
rotary_emb
.
_compute_cos_sin_cache
()
self
.
attn
=
RadixAttention
(
self
.
attn
=
RadixAttention
(
self
.
num_heads
,
self
.
num_heads
,
self
.
head_dim
,
self
.
head_dim
,
...
...
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