Skip to content

Commit

Permalink
Fix tokenizer missing form config.to_dict() (#228)
Browse files Browse the repository at this point in the history
Also orders alphabetically
  • Loading branch information
alan-cooney authored Jan 27, 2023
1 parent ce5bf57 commit aeab7cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trlx/data/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ class TRLConfig:

method: MethodConfig
model: ModelConfig
tokenizer: TokenizerConfig
optimizer: OptimizerConfig
scheduler: SchedulerConfig
tokenizer: TokenizerConfig
train: TrainConfig

@classmethod
Expand All @@ -243,6 +243,7 @@ def to_dict(self):
"model": self.model.__dict__,
"optimizer": self.optimizer.__dict__,
"scheduler": self.scheduler.__dict__,
"tokenizer": self.tokenizer.__dict__,
"train": self.train.__dict__,
}

Expand Down

0 comments on commit aeab7cc

Please sign in to comment.