<object object>
, model=<object object>
, optimizer=None, schedulers=None, precision=None, sparsity=None, loop=None, checkpoint=None, logging=None, callbacks=None, loggers=None, seed=None)
The Trainer class is the main entry point for training models in ModelZoo.
Parameters.
Optimizer
and returns a cstorch.optim.scheduler.Scheduler.
SparsityAlgorithm
.
SparsityAlgorithm
is passed, it is used as is.
Logging(log_steps=1, log_level="INFO")
are used.
<object object>
)[source]##
Complete a full training run on the given train and validation dataloaders.
Parameters
<object object>
, loop=None)[source]#
Complete a full validation run on the validation dataloader.
Parameters
<object object>
, loop=None)[source]#
Runs all upstream and downstream validation permutations.
for ckpt_path in ckpt_paths:
for val_dataloader in val_dataloaders:
trainer.validate(val_dataloader, ckpt_path)
# run downstream validation
run_validation(…)
Copy to clipboard
Parameters
cerebras.modelzoo.trainer.callbacks | This module contains the base Callback class as well as a number of core callbacks directly invoked by the Trainer as well as other optional callbacks that can be used to extend the functionality of the Trainer. |
cerebras.modelzoo.trainer.extensions | This module contains integrations of external tools to the Trainer. |
cerebras.modelzoo.trainer.loggers | This module contains the base Logger class as well as a few useful Logger subclasses. |