From b9f889bb19b7e7c7438dfeb9c048299d18f75134 Mon Sep 17 00:00:00 2001 From: Zhaoyi-Yan Date: Thu, 29 May 2025 18:43:24 +0800 Subject: [PATCH] fix typo --- opencompass/utils/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opencompass/utils/run.py b/opencompass/utils/run.py index 9574450b..73bae5a6 100644 --- a/opencompass/utils/run.py +++ b/opencompass/utils/run.py @@ -92,8 +92,8 @@ def get_config_from_arg(args) -> Config: 2. args.models and args.datasets 3. Huggingface parameter groups and args.datasets """ - # Set to None if config is an empty or whitespace-only string - self.config = None if self.config is not None and not str(self.config).strip() + # set to None if config is an empty or whitespace-only string + args.config = None if args.config is not None and not str(args.config).strip() else args.config if args.config: config = Config.fromfile(args.config, format_python_code=False) config = try_fill_in_custom_cfgs(config)