class TrainingConfig(FairseqDataclass): """Config for training, a composition of training params""" common: CommonParams = CommonParams() distributed_training: DistributedTrainingParams = DistributedTrainingParams() dataset: DatasetParams = DatasetParams() optimization: OptimizationParams = OptimizationParams() checkpoint: CheckpointParams = CheckpointParams() bmuf: FairseqBMUFConfig = FairseqBMUFConfig()
class EvalLMConfig(FairseqDataclass): """Config for eval lm, a composition of eval_lm params""" common: CommonParams = CommonParams() distributed_training: DistributedTrainingParams = DistributedTrainingParams() dataset: DatasetParams = DatasetParams() optimization: OptimizationParams = OptimizationParams() checkpoint: CheckpointParams = CheckpointParams() bmuf: FairseqBMUFConfig = FairseqBMUFConfig() common_eval: CommonEvalParams = CommonEvalParams() eval_lm: EvalLMParams = EvalLMParams()