Skip to content

Commit

Permalink
always set line_by_line
Browse files Browse the repository at this point in the history
  • Loading branch information
minimaxir committed May 1, 2021
1 parent 342a361 commit db9cb9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aitextgen/aitextgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,7 @@ def train(
**kwargs,
)

if train_data.line_by_line:
setattr(self.model.config, "line_by_line", True)
setattr(self.model.config, "line_by_line", train_data.line_by_line)

if freeze_layers or self.openai_tf_gpt2 == "1558M":
logger.info("Layer freezing enabled for model training.")
Expand Down

0 comments on commit db9cb9a

Please sign in to comment.