MCPcopy Create free account
hub / github.com/AnswerDotAI/ModernBERT / log_config

Function log_config

main.py:113–121  ·  view source on GitHub ↗
(cfg: DictConfig)

Source from the content-addressed store, hash-verified

111
112
113def log_config(cfg: DictConfig):
114 print(om.to_yaml(cfg))
115 if "wandb" in cfg.get("loggers", {}):
116 try:
117 import wandb
118 except ImportError as e:
119 raise e
120 if wandb.run:
121 wandb.config.update(om.to_container(cfg, resolve=True))
122
123
124def build_algorithm(name, kwargs):

Callers 1

mainFunction · 0.70

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected