From a4bac187de0844352ff17fb564a397fe34b88c5b Mon Sep 17 00:00:00 2001 From: liuhongwei Date: Mon, 27 May 2024 20:41:28 +0800 Subject: [PATCH] Update accelerator --- opencompass/utils/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opencompass/utils/run.py b/opencompass/utils/run.py index fbcf60c35..6d65e4546 100644 --- a/opencompass/utils/run.py +++ b/opencompass/utils/run.py @@ -279,7 +279,8 @@ def change_accelerator(models, accelerator): else: raise ValueError(f'Unsupported accelerator {accelerator} for model type {model["type"]}') else: - raise ValueError(f'Unsupported model type {model["type"]}') + acc_model = model + logger.warning(f'Unsupported model type {model["type"]}, will keep the original model.') model_accels.append(acc_model) return model_accels