This commit is contained in:
Zhaoyi-Yan 2025-05-29 10:43:27 +00:00 committed by GitHub
commit 38c0c88602
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,7 +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
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)