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

Function log_config

sequence_classification.py:79–87  ·  view source on GitHub ↗
(cfg: DictConfig)

Source from the content-addressed store, hash-verified

77
78
79def log_config(cfg: DictConfig):
80 print(om.to_yaml(cfg))
81 if "wandb" in cfg.get("loggers", {}):
82 try:
83 import wandb
84 except ImportError as e:
85 raise e
86 if wandb.run:
87 wandb.config.update(om.to_container(cfg, resolve=True))
88
89
90def build_algorithm(name, kwargs):

Callers 1

trainFunction · 0.70

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected