Skip to content

Commit

Permalink
deepcopy config (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpatel2000 authored Jul 3, 2024
1 parent a542565 commit f0535dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llmfoundry/utils/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def build_callback(
raise ValueError(
f'`train_config` is a reserved keyword for callbacks with config. Please remove it from the kwargs.',
)
kwargs['train_config'] = train_config
kwargs['train_config'] = copy.deepcopy(train_config)
registry_to_use = registry.callbacks_with_config

return construct_from_registry(
Expand Down

0 comments on commit f0535dc

Please sign in to comment.