Skip to content

Commit

Permalink
Merge pull request #50 from unitaryai/updated_pl_version
Browse files Browse the repository at this point in the history
Updated pytorch-lightning version
  • Loading branch information
laurahanu authored Apr 12, 2022
2 parents 7b52bb1 + 59452f1 commit ce4f02e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pytorch-lightning >= 1.0.0, < 1.5.0
pytorch-lightning > 1.5.0
torch >= 1.10.0
transformers != 4.18.0
kaggle >= 1.5.8
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
author_email="[email protected]",
url="https://github.com/unitaryai/detoxify",
install_requires=[
"transformers != 4.18.0", # v4.18.0 fails to properly load the finetuned weights
"transformers != 4.18.0", # v4.18.0 fails to properly load the finetuned weights
"torch >= 1.7.0",
"sentencepiece >= 0.1.94",
],
Expand Down
2 changes: 1 addition & 1 deletion tests/test_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_instance(module, name, config, *args, **kwargs):
max_epochs=1,
)
trainer.fit(model, data_loader, valid_data_loader)
results = trainer.test(test_dataloaders=valid_data_loader)
results = trainer.test(dataloaders=valid_data_loader)

return results

Expand Down

0 comments on commit ce4f02e

Please sign in to comment.