Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
18e85452
Unverified
Commit
18e85452
authored
Feb 06, 2026
by
Wentao Ye
Committed by
GitHub
Feb 07, 2026
Browse files
[Revert] Add util `handle_deprecated` back (#33998)
Signed-off-by:
yewentao256
<
zhyanwentao@126.com
>
parent
6f7adc53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
vllm/config/utils.py
vllm/config/utils.py
+25
-0
No files found.
vllm/config/utils.py
View file @
18e85452
...
@@ -355,3 +355,28 @@ class Range:
...
@@ -355,3 +355,28 @@ class Range:
def
__repr__
(
self
)
->
str
:
def
__repr__
(
self
)
->
str
:
return
self
.
__str__
()
return
self
.
__str__
()
def
handle_deprecated
(
config
:
ConfigT
,
old_name
:
str
,
new_name_or_names
:
str
|
list
[
str
],
removal_version
:
str
,
)
->
None
:
old_val
=
getattr
(
config
,
old_name
)
if
old_val
is
None
:
return
if
isinstance
(
new_name_or_names
,
str
):
new_names
=
[
new_name_or_names
]
else
:
new_names
=
new_name_or_names
msg
=
(
f
"
{
old_name
}
is deprecated and will be removed in
{
removal_version
}
. "
f
"Use
{
', '
.
join
(
new_names
)
}
instead."
)
logger
.
warning
(
msg
)
for
new_name
in
new_names
:
setattr
(
config
,
new_name
,
old_val
)
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