[Bugfix] Limit the default value of max_model_len when it is not specified by users (#27556)

Signed-off-by: shen-shanshan <467638484@qq.com>
This commit is contained in:
Shanshan Shen
2025-10-27 10:16:20 +00:00
committed by GitHub
parent 7c2bdb83dc
commit a3e8611da5
3 changed files with 28 additions and 12 deletions
+7
View File
@@ -608,6 +608,13 @@ class Platform:
"""
return None
@classmethod
def check_max_model_len(cls, max_model_len: int) -> int:
"""
Check max_model_len for the current platform.
"""
return max_model_len
class UnspecifiedPlatform(Platform):
_enum = PlatformEnum.UNSPECIFIED