Logger utils
WandbConfig
Bases: BaseModel
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.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
entity
|
The team posting this run (default: your username or your default team) |
required | |
project
|
The name of the project to which this run will belong. |
required | |
tags
|
Tags associated with this run. |
required | |
group
|
A unique string shared by all runs in a given group |
required | |
offline
|
Run offline (data can be streamed later to wandb servers). |
required | |
id
|
Sets the version, mainly used to resume a previous run. |
required | |
anonymous
|
Enables or explicitly disables anonymous logging. |
required |
Source code in bionemo/llm/utils/logger_utils.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
setup_nemo_lightning_logger(name='default-name', root_dir='./results', initialize_tensorboard_logger=False, wandb_config=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_config
|
Optional[WandbConfig]
|
The remaining configuration options 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
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 94 95 96 97 98 99 100 101 102 103 |
|