Fix slow tests v4.2.0 (#9561)

* Fix conversational pipeline test

* LayoutLM

* ProphetNet

* BART

* Blenderbot & small

* Marian

* mBART

* Pegasus

* Tapas tokenizer

* BERT2BERT test

* Style

* Example requirements

* TF BERT2BERT test
This commit is contained in:
Lysandre Debut
2021-01-13 09:55:48 -05:00
committed by GitHub
parent 04dc65e5c6
commit c949516695
12 changed files with 39 additions and 9 deletions

View File

@@ -277,8 +277,8 @@ class ConversationalPipelineTests(MonoInputPipelineCommonMixin, unittest.TestCas
@slow
def test_integration_torch_conversation_encoder_decoder(self):
# When
tokenizer = AutoTokenizer.from_pretrained("facebook/blenderbot-90M")
model = AutoModelForSeq2SeqLM.from_pretrained("facebook/blenderbot-90M")
tokenizer = AutoTokenizer.from_pretrained("facebook/blenderbot_small-90M")
model = AutoModelForSeq2SeqLM.from_pretrained("facebook/blenderbot_small-90M")
nlp = ConversationalPipeline(model=model, tokenizer=tokenizer, device=DEFAULT_DEVICE_NUM)
conversation_1 = Conversation("My name is Sarah and I live in London")