Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
milocress committed Apr 10, 2024
1 parent 53889fd commit 7669954
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion llmfoundry/utils/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def build_optimizer(
'optimizer config. Please remove it from the optimizer config kwargs.'
)

kwargs['params'] = list(params)
kwargs['params'] = params
return construct_from_registry(name=name,
registry=registry.optimizers,
partial_function=True,
Expand Down
6 changes: 3 additions & 3 deletions scripts/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ def main(cfg: DictConfig) -> Trainer:

# Mandatory model training configs
model_config: DictConfig = DictConfig(scfg.model)
tokenizer_config: Dict[str, Any] = scfg.tokenizer
optimizer_config: Dict[str, Any] = scfg.optimizer
scheduler_config: Dict[str, Any] = scfg.scheduler
tokenizer_config: Dict[str, Any] = {**scfg.tokenizer}
optimizer_config: Dict[str, Any] = {**scfg.optimizer}
scheduler_config: Dict[str, Any] = {**scfg.scheduler}
train_loader_config: DictConfig = DictConfig(scfg.train_loader)

# Optional fsdp data, fine-tuning, and eval configs
Expand Down

0 comments on commit 7669954

Please sign in to comment.