Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
Update examples/language_modeling.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Naren authored May 31, 2022
1 parent 521e6db commit 7a0e982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/language_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
cfg=LanguageModelingDataConfig(batch_size=1, dataset_name="wikitext", dataset_config_name="wikitext-2-raw-v1"),
tokenizer=tokenizer,
)
trainer = pl.Trainer(accelerator="auto", devices="auto")
trainer = pl.Trainer(accelerator="auto", devices="auto", max_epochs=1)

trainer.fit(model, dm)

0 comments on commit 7a0e982

Please sign in to comment.