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
fc95521b
Unverified
Commit
fc95521b
authored
Dec 01, 2025
by
Wei Wei
Committed by
GitHub
Dec 02, 2025
Browse files
[Misc] Throw error on unintended access to scheduler_config.max_model_len (#29771)
Signed-off-by:
Wei Wei
<
wwei6@meta.com
>
parent
d0cd7289
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
vllm/config/scheduler.py
vllm/config/scheduler.py
+5
-0
No files found.
vllm/config/scheduler.py
View file @
fc95521b
...
@@ -274,3 +274,8 @@ class SchedulerConfig:
...
@@ -274,3 +274,8 @@ class SchedulerConfig:
)
)
return
self
return
self
def
__getattribute__
(
self
,
name
:
str
)
->
Any
:
if
name
==
"max_model_len"
or
name
==
"is_encoder_decoder"
:
raise
AttributeError
(
f
"
{
name
}
is an init-only parameter. "
)
return
object
.
__getattribute__
(
self
,
name
)
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