Skip to content

Simplify initialization of Trainer #1530

@clessig

Description

@clessig

Describe the task. It can be a feature, documentation, etc.

run_train contain redundant code on init_torch(), init_ddp() etc:

devices = Trainer.init_torch()

This is original since these functions should be called before the logger is initalized. The redundancy is a source of errors. init_torch(), init_ddp() also should be called in Trainer and not in run_train.py

Hedgedoc URL, if you are keeping notes, plots, logs in hedgedoc.

No response

Area

  • datasets, data readers, data preparation and transfer
  • model
  • science
  • infrastructure and engineering
  • evaluation, export and visualization
  • documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    modelRelated to model training or definition (not generic infra)

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions