Skip to content

Commit

Permalink
fix load and save planner config logic (#1385)
Browse files Browse the repository at this point in the history
  • Loading branch information
irenedea authored Jul 23, 2024
1 parent eb41a6e commit 0bed4ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llmfoundry/command_utils/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def train(cfg: DictConfig) -> Trainer:

if fsdp_config is not None:
if 'load_planner' in fsdp_config:
load_planners = fsdp_config['load_planner'].items()
load_planners = list(fsdp_config['load_planner'].items())
if len(load_planners) > 1:
raise ValueError(
'Only one load planner can be specified in the config.',
Expand All @@ -272,7 +272,7 @@ def train(cfg: DictConfig) -> Trainer:
)

if 'save_planner' in fsdp_config:
save_planners = fsdp_config['save_planner'].items()
save_planners = list(fsdp_config['save_planner'].items())
if len(save_planners) > 1:
raise ValueError(
'Only one save planner can be specified in the config.',
Expand Down

0 comments on commit 0bed4ff

Please sign in to comment.