TrackioLogger¶
- class lightning.pytorch.loggers.TrackioLogger(project, name=None, resume='allow', **kwargs)[source]¶
Bases:
LoggerLog metrics and hyperparameters to Trackio.
- Parameters:
project¶ (
str) – The name of the project to which the experiment belongs.name¶ (
Optional[str]) – The name of the run. If not provided, it defaults to the project nameresume¶ (
Literal['never','allow','must']) – Resume behavior, one of ‘never’, ‘allow’, or ‘must’. Defaults to ‘allow’.**kwargs¶ (
Any) – Additional keyword arguments passed to trackio.init().
- Raises:
ModuleNotFoundError – If trackio is not installed.
Example
from lightning.pytorch.loggers import TrackioLogger from lightning.pytorch import Trainer trackio_logger = TrackioLogger( project="my_project", name="my_experiment", ) trainer = Trainer(max_epochs=10, logger=trackio_logger)