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
0d2148ef
"tests/python/pytorch/dataloading/test_dataloader.py" did not exist on "fbfcf1a8cc16241691dc88a3c769081aa2612199"
Unverified
Commit
0d2148ef
authored
Jan 22, 2025
by
nstream-ai-devx
Committed by
GitHub
Jan 23, 2025
Browse files
fix rotary_embedding rope_scaling for phi (#3055)
parent
bf669606
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
python/sglang/srt/layers/rotary_embedding.py
python/sglang/srt/layers/rotary_embedding.py
+6
-1
No files found.
python/sglang/srt/layers/rotary_embedding.py
View file @
0d2148ef
...
...
@@ -1018,7 +1018,12 @@ def get_rope(
head_size
,
rotary_dim
,
max_position
,
base
,
is_neox_style
,
dtype
)
else
:
scaling_type
=
rope_scaling
[
"rope_type"
]
if
"rope_type"
in
rope_scaling
:
scaling_type
=
rope_scaling
[
"rope_type"
]
elif
"type"
in
rope_scaling
:
scaling_type
=
rope_scaling
[
"type"
]
else
:
raise
ValueError
(
"Unknown RoPE scaling type"
)
if
scaling_type
==
"llama3"
:
scaling_factor
=
rope_scaling
[
"factor"
]
...
...
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