Skip to content

Questions about training logs #254

Feb 24, 2022 · 2 comments · 40 replies
Discussion options

You must be logged in to vote

If you are using a trainer, you can add these hooks

from colossalai.trainer import hooks

hook_list = [
        hooks.LossHook(),
        hooks.LRSchedulerHook(lr_scheduler=lr_scheduler, by_epoch=True),
        hooks.LogMetricByEpochHook(logger),
        hooks.ThroughputHook(),
        hooks.LogMetricByStepHook(),
        hooks.TensorboardHook(log_dir='./tb_logs', ranks=[0]),
    ]

Replies: 2 comments 40 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
40 replies
@xxw11
Comment options

@feifeibear
Comment options

@xxw11
Comment options

@ver217
Comment options

@binmakeswell
Comment options

Answer selected by xxw11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants