[Platform] Move model arch check to platform (#11503)

Signed-off-by: Mengqing Cao <cmq0113@163.com>
This commit is contained in:
Mengqing Cao
2024-12-27 08:45:25 +00:00
committed by GitHub
parent 2339d59f92
commit 6c6f7fe8a8
3 changed files with 51 additions and 37 deletions
+12
View File
@@ -199,6 +199,18 @@ class Platform:
"""
pass
@classmethod
def verify_model_arch(cls, model_arch: str) -> None:
"""
Verify whether the current platform supports the specified model
architecture.
- This will raise an Error or Warning based on the model support on
the current platform.
- By default all models are considered supported.
"""
pass
@classmethod
def verify_quantization(cls, quant: str) -> None:
"""