integrations

class VisualDLCallback(vdl_writer=None)[source]

Bases: paddlenlp.trainer.trainer_callback.TrainerCallback

A [TrainerCallback] that sends the logs to [VisualDL](https://www.paddlepaddle.org.cn/paddle/visualdl). :param vdl_writer: The writer to use. Will instantiate one if not set. :type vdl_writer: LogWriter, optional

on_train_begin(args, state, control, **kwargs)[source]

Event called at the beginning of training.

on_log(args, state, control, logs=None, **kwargs)[source]

Event called after logging the last logs.

on_train_end(args, state, control, **kwargs)[source]

Event called at the end of training.