Logger utils
WandbLoggerOptions
Bases: TypedDict
Note: name
controls the exp name is handled by the NeMoLogger so it is ommitted here.
directory
is also omitted since it is set by the NeMoLogger.
Source code in bionemo/llm/utils/logger_utils.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
setup_nemo_lightning_logger(name='default-name', root_dir='./results', initialize_tensorboard_logger=False, wandb_kwargs=None, ckpt_callback=None, **kwargs)
Setup the logger for the experiment.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the experiment. Results go into |
'default-name'
|
root_dir
|
str | Path
|
The root directory to create the |
'./results'
|
initialize_tensorboard_logger
|
bool
|
Whether to initialize the tensorboard logger. |
False
|
wandb_kwargs
|
Optional[WandbLoggerOptions]
|
The kwargs for the wandb logger. |
None
|
ckpt_callback
|
Optional[ModelCheckpoint]
|
The checkpoint callback to use, must be a child of the pytorch lightning ModelCheckpoint callback. NOTE the type annotation in the underlying NeMoCheckpoint constructor is incorrect. |
None
|
**kwargs
|
Dict[str, Any]
|
The kwargs for the NeMoLogger. |
{}
|
Returns:
Name | Type | Description |
---|---|---|
NeMoLogger |
NeMoLogger
|
NeMo logger instance. |
Source code in bionemo/llm/utils/logger_utils.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
|