simplify by removing duplicate base_model_config (#772)

This commit is contained in:
Wing Lian
2023-10-23 01:42:38 -04:00
committed by GitHub
parent 44c9d0151a
commit 2d8def68dc
39 changed files with 10 additions and 42 deletions

View File

@@ -79,6 +79,9 @@ def normalize_config(cfg):
cfg.dataset_processes = cfg.dataset_processes or os.cpu_count()
if not cfg.base_model_config:
cfg.base_model_config = cfg.base_model
model_config = load_model_config(cfg)
cfg.model_config_type = model_config.model_type