huggingface-transformers/tests
Suraj Patil 2a8115f083
[WIP] GPT Neo cleanup (#10985)
* better names

* add attention mixin

* all slow tests in one class

* make helper methods static so we can test

* add local attention tests

* better names

* doc

* apply review suggestions
2021-04-06 12:24:15 -04:00
..
fixtures Conversion from slow to fast for BPE spm vocabs contained an error. (#10120) 2021-02-13 08:24:53 -05:00
sagemaker added new merged Trainer test (#11090) 2021-04-06 15:12:21 +02:00
__init__.py
conftest.py Flax testing should not run the full torch test suite (#10725) 2021-03-16 08:05:37 +03:00
test_activations.py
test_activations_tf.py
test_benchmark.py
test_benchmark_tf.py
test_cli.py
test_configuration_auto.py
test_configuration_common.py
test_data_collator.py
test_doc_samples.py
test_feature_extraction_common.py [FeatureExtractorSavingUtils] Refactor PretrainedFeatureExtractor (#10594) 2021-03-09 12:16:59 +03:00
test_feature_extraction_speech_to_text.py Speech2TextTransformer (#10175) 2021-03-10 21:42:04 +05:30
test_feature_extraction_vit.py Add Vision Transformer and ViTFeatureExtractor (#10950) 2021-04-01 11:16:05 -04:00
test_feature_extraction_wav2vec2.py W2v2 test require torch (#10665) 2021-03-11 12:56:12 -05:00
test_file_utils.py Patches the full import failure and adds a test (#10750) 2021-03-16 15:37:52 -04:00
test_flax_auto.py [ci, flax] non-existing models are unlikely to pass tests (#10409) 2021-02-26 12:35:36 +03:00
test_generation_beam_search.py
test_generation_logits_process.py [Generate] Add save mode logits processor to remove nans and infs if necessary (#10769) 2021-03-23 01:00:05 +03:00
test_generation_stopping_criteria.py Adding new parameter to `generate`: `max_time`. (#9846) 2021-03-12 10:11:50 +01:00
test_generation_utils.py [Generate] Add save mode logits processor to remove nans and infs if necessary (#10769) 2021-03-23 01:00:05 +03:00
test_hf_api.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_hf_argparser.py Adding required flags to non-default arguments in hf_argparser (#10688) 2021-03-15 09:27:55 -04:00
test_image_utils.py Add center_crop to ImageFeatureExtractoMixin (#11066) 2021-04-05 15:28:51 -04:00
test_logging.py
test_model_card.py
test_model_output.py
test_modeling_albert.py Fix integration slow tests (#10670) 2021-03-11 13:43:53 -05:00
test_modeling_auto.py
test_modeling_bart.py
test_modeling_bert.py Fix integration slow tests (#10670) 2021-03-11 13:43:53 -05:00
test_modeling_bert_generation.py
test_modeling_big_bird.py fix big bird gpu test (#10967) 2021-03-30 17:03:48 +03:00
test_modeling_blenderbot.py
test_modeling_blenderbot_small.py
test_modeling_bort.py
test_modeling_camembert.py
test_modeling_common.py Add Vision Transformer and ViTFeatureExtractor (#10950) 2021-04-01 11:16:05 -04:00
test_modeling_convbert.py Fix integration slow tests (#10670) 2021-03-11 13:43:53 -05:00
test_modeling_ctrl.py
test_modeling_deberta.py Fix integration slow tests (#10670) 2021-03-11 13:43:53 -05:00
test_modeling_deberta_v2.py Fix integration slow tests (#10670) 2021-03-11 13:43:53 -05:00
test_modeling_distilbert.py Fix integration slow tests (#10670) 2021-03-11 13:43:53 -05:00
test_modeling_dpr.py
test_modeling_electra.py Fix integration slow tests (#10670) 2021-03-11 13:43:53 -05:00
test_modeling_encoder_decoder.py
test_modeling_flaubert.py
test_modeling_flax_bert.py [Flax] Add other BERT classes (#10977) 2021-03-31 09:45:58 +03:00
test_modeling_flax_common.py [Flax] Add other BERT classes (#10977) 2021-03-31 09:45:58 +03:00
test_modeling_flax_roberta.py [WIP][Flax] Add general conversion script (#10809) 2021-03-30 12:13:59 +03:00
test_modeling_fsmt.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_modeling_funnel.py
test_modeling_gpt2.py GPT2DoubleHeadsModel made parallelizable (#10658) 2021-03-15 09:10:44 -04:00
test_modeling_gpt_neo.py [WIP] GPT Neo cleanup (#10985) 2021-04-06 12:24:15 -04:00
test_modeling_ibert.py I-BERT model support (#10153) 2021-02-25 10:06:42 -05:00
test_modeling_layoutlm.py
test_modeling_led.py
test_modeling_longformer.py
test_modeling_lxmert.py
test_modeling_m2m_100.py layerdrop 0 (#10604) 2021-03-09 17:35:07 +03:00
test_modeling_marian.py Conversion to tensors requires padding (#10661) 2021-03-11 12:58:15 -05:00
test_modeling_mbart.py Fix integration slow tests (#10670) 2021-03-11 13:43:53 -05:00
test_modeling_mobilebert.py
test_modeling_mpnet.py
test_modeling_mt5.py
test_modeling_openai.py
test_modeling_pegasus.py
test_modeling_prophetnet.py up (#10771) 2021-03-17 16:15:14 +03:00
test_modeling_rag.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_modeling_reformer.py
test_modeling_roberta.py
test_modeling_speech_to_text.py Speech2TextTransformer (#10175) 2021-03-10 21:42:04 +05:30
test_modeling_squeezebert.py Fix integration slow tests (#10670) 2021-03-11 13:43:53 -05:00
test_modeling_t5.py Fix torch 1.8.0 segmentation fault (#10546) 2021-03-05 12:10:19 -05:00
test_modeling_tapas.py
test_modeling_tf_albert.py Add AMP for Albert (#10141) 2021-02-15 17:18:33 +01:00
test_modeling_tf_auto.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_modeling_tf_bart.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_modeling_tf_bert.py Check TF ops for ONNX compliance (#10025) 2021-02-15 07:55:10 -05:00
test_modeling_tf_blenderbot.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_modeling_tf_blenderbot_small.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_modeling_tf_bort.py
test_modeling_tf_camembert.py
test_modeling_tf_common.py Tests run on Docker (#10681) 2021-03-15 17:28:01 -04:00
test_modeling_tf_convbert.py ConvBERT fix torch <> tf weights conversion (#10314) 2021-02-24 14:55:34 +03:00
test_modeling_tf_ctrl.py Make TF CTRL compliant with XLA and AMP (#10209) 2021-02-17 18:54:15 +01:00
test_modeling_tf_distilbert.py Check TF ops for ONNX compliance (#10025) 2021-02-15 07:55:10 -05:00
test_modeling_tf_dpr.py Check TF ops for ONNX compliance (#10025) 2021-02-15 07:55:10 -05:00
test_modeling_tf_electra.py Check TF ops for ONNX compliance (#10025) 2021-02-15 07:55:10 -05:00
test_modeling_tf_flaubert.py Making TF XLM-like models XLA and AMP compliant (#10211) 2021-02-17 18:02:48 +01:00
test_modeling_tf_funnel.py Fix AMP (#10216) 2021-02-18 06:29:43 -05:00
test_modeling_tf_gpt2.py Making TF GPT2 compliant with XLA and AMP (#10230) 2021-02-18 09:36:01 +01:00
test_modeling_tf_layoutlm.py Layout lm tf 2 (#10636) 2021-03-25 12:32:38 -04:00
test_modeling_tf_led.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_modeling_tf_longformer.py Making TF Longformer-like models compliant with AMP (#10233) 2021-02-22 15:41:56 +01:00
test_modeling_tf_lxmert.py Making TF Lxmert model compliant with AMP (#10257) 2021-02-19 06:54:14 -05:00
test_modeling_tf_marian.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_modeling_tf_mbart.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_modeling_tf_mobilebert.py Making TF MobileBert model compliant with AMP (#10259) 2021-02-19 06:55:25 -05:00
test_modeling_tf_mpnet.py Making TF MPNet model compliant with XLA (#10260) 2021-02-19 06:56:41 -05:00
test_modeling_tf_mt5.py Adjust loss difference (#10669) 2021-03-12 09:09:46 +03:00
test_modeling_tf_openai.py Making TF OpenAI GPT model compliant with AMP and XLA (#10261) 2021-02-19 09:33:25 -05:00
test_modeling_tf_pegasus.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_modeling_tf_pytorch.py
test_modeling_tf_rag.py make rag tests smaller (#10679) 2021-03-15 10:07:12 +03:00
test_modeling_tf_roberta.py Check TF ops for ONNX compliance (#10025) 2021-02-15 07:55:10 -05:00
test_modeling_tf_t5.py Fix XLA and AMP (#10262) 2021-02-19 06:57:16 -05:00
test_modeling_tf_transfo_xl.py Making TF TransfoXL model compliant with AMP (#10264) 2021-02-19 06:58:07 -05:00
test_modeling_tf_xlm.py Making TF XLM-like models XLA and AMP compliant (#10211) 2021-02-17 18:02:48 +01:00
test_modeling_tf_xlm_roberta.py
test_modeling_tf_xlnet.py Check TF ops for ONNX compliance (#10025) 2021-02-15 07:55:10 -05:00
test_modeling_transfo_xl.py
test_modeling_vit.py Add Vision Transformer and ViTFeatureExtractor (#10950) 2021-04-01 11:16:05 -04:00
test_modeling_wav2vec2.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_modeling_xlm.py
test_modeling_xlm_prophetnet.py
test_modeling_xlm_roberta.py
test_modeling_xlnet.py
test_offline.py offline mode for firewalled envs (part 2) (#10569) 2021-03-08 08:52:20 -08:00
test_onnx.py Onnx fix test (#10663) 2021-03-11 13:38:29 -05:00
test_optimization.py
test_optimization_tf.py
test_pipelines_common.py [PretrainedFeatureExtractor] + Wav2Vec2FeatureExtractor, Wav2Vec2Processor, Wav2Vec2Tokenizer (#10324) 2021-02-25 17:42:46 +03:00
test_pipelines_conversational.py Fixing conversation test for torch 1.8 (#10545) 2021-03-05 09:24:14 -05:00
test_pipelines_feature_extraction.py
test_pipelines_fill_mask.py
test_pipelines_ner.py Fixing NER pipeline for list inputs. (#10184) 2021-02-15 06:22:45 -05:00
test_pipelines_question_answering.py
test_pipelines_sentiment_analysis.py
test_pipelines_summarization.py Fix torch 1.8.0 segmentation fault (#10546) 2021-03-05 12:10:19 -05:00
test_pipelines_table_question_answering.py
test_pipelines_text2text_generation.py
test_pipelines_text_generation.py
test_pipelines_translation.py
test_pipelines_zero_shot.py zero-shot pipeline multi_class -> multi_label (#10727) 2021-03-15 16:02:46 -06:00
test_processor_speech_to_text.py Speech2TextTransformer (#10175) 2021-03-10 21:42:04 +05:30
test_processor_wav2vec2.py [PretrainedFeatureExtractor] + Wav2Vec2FeatureExtractor, Wav2Vec2Processor, Wav2Vec2Tokenizer (#10324) 2021-02-25 17:42:46 +03:00
test_retrieval_rag.py
test_sequence_feature_extraction_common.py Speech2TextTransformer (#10175) 2021-03-10 21:42:04 +05:30
test_skip_decorators.py
test_tokenization_albert.py
test_tokenization_auto.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_tokenization_bart.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_tokenization_barthez.py Speedup tf tests (#10601) 2021-03-08 21:44:07 -05:00
test_tokenization_bert.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_tokenization_bert_generation.py
test_tokenization_bert_japanese.py
test_tokenization_bertweet.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_tokenization_big_bird.py BigBird (#10183) 2021-03-30 08:51:34 +03:00
test_tokenization_blenderbot.py
test_tokenization_camembert.py Conversion from slow to fast for BPE spm vocabs contained an error. (#10120) 2021-02-13 08:24:53 -05:00
test_tokenization_common.py Some models have no tokenizers (#11064) 2021-04-05 09:37:49 -04:00
test_tokenization_ctrl.py
test_tokenization_deberta.py DebertaTokenizer Rework closes #10258 (#10703) 2021-04-01 13:53:53 -04:00
test_tokenization_deberta_v2.py Integrate DeBERTa v2(the 1.5B model surpassed human performance on Su… (#10018) 2021-02-19 18:34:44 -05:00
test_tokenization_distilbert.py
test_tokenization_dpr.py
test_tokenization_fsmt.py
test_tokenization_funnel.py
test_tokenization_gpt2.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_tokenization_herbert.py
test_tokenization_layoutlm.py
test_tokenization_lxmert.py
test_tokenization_m2m_100.py Add m2m100 (#10236) 2021-03-06 22:14:16 +05:30
test_tokenization_marian.py Flax testing should not run the full torch test suite (#10725) 2021-03-16 08:05:37 +03:00
test_tokenization_mbart.py Make Barthez tokenizer tests a bit faster (#10399) 2021-02-25 11:42:25 -05:00
test_tokenization_mbart50.py Make Barthez tokenizer tests a bit faster (#10399) 2021-02-25 11:42:25 -05:00
test_tokenization_mpnet.py
test_tokenization_openai.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_tokenization_pegasus.py Deprecate prepare_seq2seq_batch (#10287) 2021-02-22 12:36:16 -05:00
test_tokenization_phobert.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_tokenization_prophetnet.py Deprecate prepare_seq2seq_batch (#10287) 2021-02-22 12:36:16 -05:00
test_tokenization_rag.py
test_tokenization_reformer.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_tokenization_roberta.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_tokenization_small_blenderbot.py
test_tokenization_speech_to_text.py Speech2TextTransformer (#10175) 2021-03-10 21:42:04 +05:30
test_tokenization_squeezebert.py
test_tokenization_t5.py Flax testing should not run the full torch test suite (#10725) 2021-03-16 08:05:37 +03:00
test_tokenization_tapas.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_tokenization_transfo_xl.py
test_tokenization_utils.py Documentation about loading a fast tokenizer within Transformers (#11029) 2021-04-05 10:51:16 -04:00
test_tokenization_wav2vec2.py W2v2 test require torch (#10665) 2021-03-11 12:56:12 -05:00
test_tokenization_xlm.py
test_tokenization_xlm_prophetnet.py
test_tokenization_xlm_roberta.py
test_tokenization_xlnet.py
test_trainer.py make failure to find a resume checkpoint fatal + tests (#10777) 2021-03-17 11:16:37 -07:00
test_trainer_callback.py Fix tests of TrainerCallback (#10615) 2021-03-09 16:25:32 -05:00
test_trainer_distributed.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_trainer_seq2seq.py
test_trainer_tpu.py Enforce string-formatting with f-strings (#10980) 2021-03-31 10:00:27 -04:00
test_trainer_utils.py Fix distributed gather for tuples of tensors of varying sizes (#11071) 2021-04-05 16:21:49 -04:00
test_utils_check_copies.py Check copies blackify (#10775) 2021-03-17 18:11:20 -04:00
test_versions_utils.py Replace pkg_resources with importlib_metadata (#11061) 2021-04-05 12:12:19 -07:00