mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 23:55:19 +08:00
[Misc] Throw error on unintended access to scheduler_config.max_model_len (#29771)
Signed-off-by: Wei Wei <wwei6@meta.com>
This commit is contained in:
parent
d0cd728907
commit
fc95521ba5
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user