generated from Lightning-AI/deep-learning-project-template
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from unitaryai/pin_tf_version
Pin transformers version to 4.22.1
- Loading branch information
Showing
4 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
dependencies = ["torch"] | ||
from detoxify import multilingual_toxic_xlm_r, toxic_albert, toxic_bert, unbiased_albert, unbiased_toxic_roberta | ||
|
||
from detoxify import ( # noqa: E402 | ||
multilingual_toxic_xlm_r, | ||
toxic_albert, | ||
toxic_bert, | ||
unbiased_albert, | ||
unbiased_toxic_roberta, | ||
) | ||
dependencies = ["torch"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,15 @@ | |
|
||
setup( | ||
name="detoxify", | ||
version="0.5.0", | ||
version="0.5.1", | ||
description="A python library for detecting toxic comments", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
author="Unitary", | ||
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.22.1", # pin to this version due to #75 | ||
"torch >= 1.7.0", | ||
"sentencepiece >= 0.1.94", | ||
], | ||
|