Open
Description
Doc string of DistributedTrainer
does not align with init behavior.
According to the docstring the config_or_config_file
can be either a Config
object or a path to a config.
config_or_config_file: Either a
Config
object or a path to a YAML file containing the config.
nanotron/src/nanotron/trainer.py
Lines 119 to 135 in d57c2ea
However, the current initialization using get_config_from_file
only allows for a file path and not a config object.
nanotron/src/nanotron/trainer.py
Lines 138 to 140 in d57c2ea
The easiest fix would probably be to run a check if config_or_config_file
is already a Config
object and set self.config = config_or_config_file
in that case instead of calling get_config_from_file
.
Metadata
Metadata
Assignees
Labels
No labels