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
b691dcc4
Unverified
Commit
b691dcc4
authored
Jun 30, 2025
by
JieXin Liang
Committed by
GitHub
Jun 29, 2025
Browse files
[misc] reduce weird rope_scaling_factor warning (#7176)
parent
0c9c6c75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
python/sglang/srt/configs/internvl.py
python/sglang/srt/configs/internvl.py
+4
-1
No files found.
python/sglang/srt/configs/internvl.py
View file @
b691dcc4
...
@@ -148,11 +148,14 @@ class InternLM2Config(PretrainedConfig):
...
@@ -148,11 +148,14 @@ class InternLM2Config(PretrainedConfig):
if
(
if
(
rope_scaling_factor
is
None
rope_scaling_factor
is
None
or
not
isinstance
(
rope_scaling_factor
,
float
)
or
not
isinstance
(
rope_scaling_factor
,
float
)
or
not
isinstance
(
rope_scaling_factor
,
int
)
or
rope_scaling_factor
<
1.0
or
rope_scaling_factor
<
1.0
):
):
raise
ValueError
(
raise
ValueError
(
f
"`rope_scaling`'s factor field must be a float >= 1, got
{
rope_scaling_factor
}
"
f
"`rope_scaling`'s factor field must be a float
|int
>= 1, got
{
rope_scaling_factor
}
"
)
)
if
isinstance
(
rope_scaling_factor
,
int
):
rope_scaling_factor
=
float
(
rope_scaling_factor
)
class
InternVisionConfig
(
PretrainedConfig
):
class
InternVisionConfig
(
PretrainedConfig
):
...
...
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