A base Tracker class to be used for all logging integration implementations.
Each function should take in **kwargs
that will automatically be passed in from a base dictionary provided to
Accelerator.
Should implement name
, requires_logging_directory
, and tracker
properties such that:
name
(str
): String representation of the tracker class name, such as “TensorBoard” requires_logging_directory
(bool
): Whether the logger requires a directory to store their logs. tracker
(object
): Should return internal
tracking mechanism used by a tracker class (such as the run
for wandb)
Implementations can also include a main_process_only
(bool
) attribute to toggle if relevent logging, init, and
other functions should occur on the main process or across all processes (by default will use True
)
Should run any finalizing functions within the tracking API. If the API should not have one, just don’t overwrite that method.
( values: dict step: typing.Optional[int] **kwargs )
Logs values
to the current run. Base log
implementations of a tracking API should go in here, along with
special behavior for the `step parameter.
( values: dict )
Logs values
as hyperparameters for the run. Implementations should use the experiment configuration
functionality of a tracking API.
( run_name: str logging_dir: typing.Union[str, os.PathLike] **kwargs )
A Tracker
class that supports tensorboard
. Should be initialized at the start of your script.
( run_name: str **kwargs )
A Tracker
class that supports wandb
. Should be initialized at the start of your script.
( run_name: str **kwargs )
A Tracker
class that supports comet_ml
. Should be initialized at the start of your script.
API keys must be stored in a Comet config file.