Skip to content

Commit ea71ea5

Browse files
committed
Only log config once
1 parent d01e65d commit ea71ea5

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/MaxText/pyconfig.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,6 @@ def initialize(argv: list[str], **kwargs) -> HyperParameters:
201201
"""Initializes the configuration by loading YAML files, and applying CLI, env, and kwarg overrides."""
202202
pydantic_config = initialize_pydantic(argv, **kwargs)
203203
config = HyperParameters(pydantic_config)
204-
205-
if config.log_config:
206-
for k, v in sorted(config.get_keys().items()):
207-
if k != "hf_access_token":
208-
logger.info("Config param %s: %s", k, v)
209-
210204
return config
211205

212206

0 commit comments

Comments
 (0)