Usage with ItwinAI Logger
This section provides an example of how to use Prov4ML with PyTorch Lightning.
In any lightning module the calls to train_step
, validation_step
, and test_step
can be overridden to log the necessary information.
Example:
trainer = L.Trainer(
accelerator="cuda",
devices=1,
max_epochs=EPOCHS,
enable_checkpointing=False,
log_every_n_steps=1,
logger=[prov4ml.ProvMLItwinAILogger()],
)