[Platform] Allow platform use V1 Engine by default (#19792)
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
@@ -479,6 +479,13 @@ class Platform:
|
||||
"""
|
||||
return False
|
||||
|
||||
@classmethod
|
||||
def default_v1(cls, model_config: ModelConfig) -> bool:
|
||||
"""
|
||||
Returns whether the current platform supports v1 by default.
|
||||
"""
|
||||
return cls.supports_v1(model_config)
|
||||
|
||||
@classmethod
|
||||
def use_custom_allreduce(cls) -> bool:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user