Skip to content

Commit

Permalink
Fix accidental change #2
Browse files Browse the repository at this point in the history
  • Loading branch information
sshleifer committed May 8, 2020
1 parent c38e824 commit 158cd06
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions tests/test_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,21 @@
("distilbert-base-cased", "distilbert-base-cased", None),
}

TF_TEXT_CLASSIF_FINETUNED_MODELS = {("bert-base-uncased", "distilbert-base-uncased-finetuned-sst-2-english",)}
TF_TEXT_CLASSIF_FINETUNED_MODELS = {
(
"bert-base-uncased",
"distilbert-base-uncased-finetuned-sst-2-english",
"distilbert-base-uncased-finetuned-sst-2-english",
)
}

TEXT_CLASSIF_FINETUNED_MODELS = {("distilbert-base-cased", "distilbert-base-uncased-finetuned-sst-2-english",)}
TEXT_CLASSIF_FINETUNED_MODELS = {
(
"distilbert-base-cased",
"distilbert-base-uncased-finetuned-sst-2-english",
"distilbert-base-uncased-finetuned-sst-2-english",
)
}

TEXT_GENERATION_FINETUNED_MODELS = {
("gpt2", "gpt2"),
Expand Down Expand Up @@ -320,7 +332,7 @@ def test_tf_fill_mask(self):

@require_torch
def test_torch_summarization(self):
tlong = "=" * 102570
tlong = "=" * 2000
valid_inputs = ["A string like this", ["list of strings entry 1", "list of strings v2"], tlong]
invalid_inputs = [4, "<mask>"]
mandatory_keys = ["summary_text"]
Expand Down

0 comments on commit 158cd06

Please sign in to comment.