transformers/tests/pipelines
Nicolas Patry 586dcf6b21
Fixing issue where generic model types wouldn't load properly with the pipeline (#18392)
* Adding a better error message when the model is improperly configured

within transformers.

* Update src/transformers/pipelines/__init__.py

* Black version.

* Overriding task aliases so that tokenizer+feature_extractor

values are correct.

* Fixing task aliases by overriding their names early

* X.

* Fixing feature-extraction.

* black again.

* Normalizing `translation` too.

* Fixing last few corner cases.

translation need to use its non normalized name (translation_XX_to_YY,
so that the task_specific_params are correctly overloaded).
This can be removed and cleaned up in a later PR.

`speech-encode-decoder` actually REQUIRES to pass a `tokenizer` manually
so the error needs to be discarded when the `tokenizer` is already
there.

* doc-builder fix.

* Fixing the real issue.

* Removing dead code.

* Do not import the actual config classes.
2022-08-05 08:45:07 +02:00
..
__init__.py [Test refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00
test_pipelines_audio_classification.py [Test refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00
test_pipelines_automatic_speech_recognition.py Fixing issue where generic model types wouldn't load properly with the pipeline (#18392) 2022-08-05 08:45:07 +02:00
test_pipelines_common.py Custom pipeline (#18079) 2022-07-19 12:02:35 +02:00
test_pipelines_conversational.py [Test refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00
test_pipelines_feature_extraction.py [Test refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00
test_pipelines_fill_mask.py Running a pipeline of float16. (#17637) 2022-06-09 19:04:42 +02:00
test_pipelines_image_classification.py [Test refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00
test_pipelines_image_segmentation.py Fix image segmentation and object detection pipeline tests (#18100) 2022-07-11 12:41:56 -04:00
test_pipelines_object_detection.py Fix image segmentation and object detection pipeline tests (#18100) 2022-07-11 12:41:56 -04:00
test_pipelines_question_answering.py Adding batch_size test to QA pipeline. (#17330) 2022-05-19 14:28:12 -04:00
test_pipelines_summarization.py Add LongT5 model (#16792) 2022-06-13 22:36:58 +02:00
test_pipelines_table_question_answering.py Black preview (#17217) 2022-05-12 16:25:55 -04:00
test_pipelines_text_classification.py Fixing a regression with return_all_scores introduced in #17606 (#17906) 2022-06-28 17:24:45 -04:00
test_pipelines_text_generation.py Adding support for device_map directly in pipeline(..) function. (#17902) 2022-07-15 15:54:26 +02:00
test_pipelines_text2text_generation.py Fixing return type tensor with num_return_sequences>1. (#16828) 2022-04-20 16:11:51 +02:00
test_pipelines_token_classification.py Update pipeline word heuristic to work with whitespace in token offsets (#18402) 2022-08-02 15:31:01 -04:00
test_pipelines_translation.py Black preview (#17217) 2022-05-12 16:25:55 -04:00
test_pipelines_visual_question_answering.py Add Visual Question Answering (VQA) pipeline (#17286) 2022-06-13 07:49:44 -04:00
test_pipelines_zero_shot_image_classification.py The tests were not updated after the addition of torch.diag (#15890) 2022-03-03 15:33:49 +01:00
test_pipelines_zero_shot.py Black preview (#17217) 2022-05-12 16:25:55 -04:00