transformers/tests/models
Yoach Lacombe f42a35e611
Add bark (#24086)
* first raw version of the bark integration

* working code on small models with single run

* add converting script from suno weights 2 hf

* many changes

* correct past_kv output

* working implementation for inference

* update the converting script according to the architecture changes

* add a working end-to-end inference code

* remove some comments and make small changes

* remove unecessary comment

* add docstrings and ensure no unecessary intermediary output during audio generation

* remove done TODOs

* make style + add config docstrings

* modification for batch inference support on the whole model

* add details to .generation_audio method

* add copyright

* convert EncodecModel from original library to transformers implementation

* add two class in order to facilitate model and sub-models loading from the hub

* add support of loading the whole model

* add BarkProcessor

* correct modeling according to processor output

* Add proper __init__ and auto support

* Add up-to-date copyright/license message

* add relative import instead of absolute

* cleaner head_dim computation

* small comment removal or changes

* more verbose LayerNorm init method

* specify eps for clearer comprehension

* more verbose variable naming in the MLP module

* remove unecessary BarkBlock parameter

* clearer code in the forward pass of the BarkBlock

* remove _initialize_modules method for cleaner code

* Remove unnecessary methods from sub-models

* move code to remove unnecessary function

* rename a variable for clarity and change an assert

* move code and change variable name for clarity

* remove unnecessary asserts

* correct small bug

* correct a comment

* change variable names for clarity

* remove asserts

* change import from absolute to relative

* correct small error due to comma missing + correct import

* Add attribute Bark config

* add first version of tests

* update attention_map

* add tie_weights and resize_token_embeddings for fineModel

* correct getting attention_mask in generate_text_semantic

* remove Bark inference trick

* leave more choices in barkProcessor

* remove _no_split_modules

* fixe error in forward of block and introduce clearer notations

* correct converting script with last changes

* make style + add draft bark.mdx

* correct BarkModelTest::test_generate_text_semantic

* add Bark in main README

* add dummy_pt_objects for Bark

* add missing models in the main init

* correct test_decoder_model_past_with_large_inputs

* disable torchscript test

* change docstring of BarkProcessor

* Add test_processor_bark

* make style

* correct copyrights

* add bark.mdx + make style, quality and consistency

* Apply suggestions from code review

Co-authored-by: Sanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>

* Remove unnecessary test method

* simply logic of a test

* Only check first ids for slow audio generation

* split full end-to-end generation tests

* remove unneccessary comment

* change submodel names for clearer naming

* remove ModuleDict from modeling_bark

* combine two if statements

* ensure that an edge misued won't happen

* modify variable name

* move code snippet to the right place (coarse instead of semantic)

* change BarkSemanticModule -> BarkSemanticModel

* align BarkProcessor with transformers paradigm

* correct BarkProcessor tests with last commit changes

* change _validate_voice_preset to an instance method instead of a class method

* tie_weights already called with post_init

* add codec_model config to configuration

* update bark modeling tests with recent BarkProcessor changes

* remove SubModelPretrainedModel + change speakers embeddings prompt type in BarkModel

* change absolute imports to relative

* remove TODO

* change docstrings

* add examples to docs and docstrings

* make style

* uses BatchFeature in BarkProcessor insteads of dict

* continue improving docstrings and docs + make style

* correct docstrings examples

* more comprehensible speaker_embeddings load/Save

* rename speaker_embeddings_dict -> speaker_embeddings

* correct bark.mdx + add bark to documentation_tests

* correct docstrings configuration_bark

* integrate last nit suggestions

* integrate BarkGeneration configs

* make style

* remove bark tests from documentation_tests.txt because timeout - tested manually

* add proper generation config initialization

* small bark.mdx documentation changes

* rename bark.mdx -> bark.md

* add torch.no_grad behind BarkModel.generate_audio()

* replace assert by ValueError in convert_suno_to_hf.py

* integrate a series of short comments from reviewer

* move SemanticLogitsProcessors and remove .detach() from Bark docs and docstrings

* actually remove SemanticLogitsProcessor from modeling_bark.oy

* BarkProcessor returns a single output instead of tuple + correct docstrings

* make style + correct bug

* add initializer_range to BarkConfig + correct slow modeling tests

* add .clone() to history_prompt.coarse_prompt to avoid modifying input array

* Making sure no extra "`" are present

* remove extra characters in modeling_bark.py

* Correct output if history_prompt is None

* remove TODOs

* remove ravel comment

* completing generation_configuration_bark.py docstrings

* change docstrings - number of audio codebooks instead of Encodec codebooks

* change 'bias' docstrings in configuration_bark.py

* format code

* rename BarkModel.generate_audio -> BarkModel.generate_speech

* modify AutoConfig instead of EncodecConfig in BarkConfig

* correct AutoConfig wrong init

* refactor BarkModel and sub-models generate_coarse, generate_fine, generate_text_semantic

* remove SemanticLogitsProcessor and replace it with SuppressTokensLogitsProcessor

* move nb_codebook related config arguments to BarkFineConfig

* rename bark.mdx -> bark.md

* correcting BarkModelConfig from_pretrained + remove keys_to_ignore

* correct bark.md with correct hub path

* correct code bug in bark.md

* correct list tokens_to_suppress

* modify Processor to load nested speaker embeddings in a safer way

* correct batch sampling in BarkFineModel.generate_fine

* Apply suggestions from code review

Small docstrings correction and code improvements

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* give more details about num_layers in docstrings

* correct indentation mistake

* correct submodelconfig order of docstring variables

* put audio models in alphabetical order in utils/check_repo.my

* remove useless line from test_modeling_bark.py

* makes BarkCoarseModelTest inherits from (ModelTesterMixin, GenerationTesterMixin, unittest.TestCase) instead of BarkSemanticModelTest

* make a Tester class for each sub-model instead of inheriting

* add test_resize_embeddings=True for Bark sub-models

* add Copied from transformers.models.gpt_neo.modeling_gpt_neo.GPTNeoSelfAttention._split_heads

* remove 'Copied fom Bark' comment

* remove unneccessary comment

* change np.min -> min in modeling_bark.py

* refactored all custom layers to have Bark prefix

* add attention_mask as an argument of generate_text_semantic

* refactor sub-models start docstrings to have more precise config class definition

* move _tied_weights_keys overriding

* add docstrings to generate_xxx in modeling_bark.py

* add loading whole BarkModel to convert_suno_to_hf

* refactor attribute and variable names

* make style convert_suno

* update bark checkpoints

* remove never entered if statement

* move bark_modeling docstrings after BarkPretrainedModel class definition

* refactor modeling_bark.py: kv -> key_values

* small nits - code refactoring and removing unecessary lines from _init_weights

* nits - replace inplace method by variable assigning

* remove *optional* when necessary

* remove some lines in generate_speech

* add default value for optional parameter

* Refactor preprocess_histories_before_coarse -> preprocess_histories

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* correct usage after refactoring

* refactor Bark's generate_xxx -> generate and modify docstrings and tests accordingly

* update docstrings python in configuration_bark.py

* add bark files in utils/documentation_test.txt

* correct docstrings python snippet

* add the ability to use parameters in the form of e.g coarse_temperature

* add semantic_max_new_tokens in python snippet in docstrings for quicker generation

* Reformate sub-models kwargs in BakModel.generate

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* correct kwargs in BarkModel.generate

* correct attention_mask kwarg in BarkModel.generate

* add tests for sub-models args in BarkModel.generate and correct BarkFineModel.test_generate_fp16

* enrich BarkModel.generate docstrings with a description of how to use the kwargs

---------

Co-authored-by: Sanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
2023-07-17 17:53:24 +01:00
..
albert Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
align Update some torchscript tests after #24505 (#24566) 2023-06-29 16:05:24 +02:00
altclip Update some torchscript tests after #24505 (#24566) 2023-06-29 16:05:24 +02:00
audio_spectrogram_transformer is_batched fix for remaining 2-D numpy arrays (#23309) 2023-05-23 14:37:35 -04:00
auto Remote code improvements (#23959) 2023-06-06 14:31:14 -04:00
autoformer Compute dropout_probability only in training mode (#24486) 2023-06-26 18:36:47 +02:00
bark Add bark (#24086) 2023-07-17 17:53:24 +01:00
bart Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
barthez Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00
bartpho Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00
beit Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
bert fix: Text splitting in the BasicTokenizer (#22280) 2023-07-11 11:07:58 -04:00
bert_generation 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
bert_japanese Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00
bertweet Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00
big_bird Revert "Fix gradient checkpointing + fp16 autocast for most models" (#24420) 2023-06-22 16:11:27 +02:00
bigbird_pegasus Generate: skip left-padding tests on old models (#23437) 2023-05-18 11:04:51 +01:00
biogpt Update tiny models and pipeline tests (#23446) 2023-05-18 17:29:04 +02:00
bit Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
blenderbot Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
blenderbot_small Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
blip Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
blip_2 Add InstructBLIP (#23460) 2023-06-26 11:23:57 +02:00
bloom Byebye pytorch 1.9 (#24080) 2023-06-16 16:38:23 +02:00
bridgetower Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
byt5 Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00
camembert Better TF docstring types (#23477) 2023-05-24 13:52:52 +01:00
canine Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
chinese_clip Update some torchscript tests after #24505 (#24566) 2023-06-29 16:05:24 +02:00
clap Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
clip fix: Text splitting in the BasicTokenizer (#22280) 2023-07-11 11:07:58 -04:00
clipseg Update some torchscript tests after #24505 (#24566) 2023-06-29 16:05:24 +02:00
codegen Fix TypeError: Object of type int64 is not JSON serializable (#24340) 2023-06-27 12:15:49 +01:00
conditional_detr Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
convbert Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
convnext Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
convnextv2 Update ConvNextV2ModelIntegrationTest::test_inference_image_classification_head (#23402) 2023-05-16 23:35:11 +02:00
cpm Fix PipelineTests skip conditions (#22320) 2023-03-22 20:02:24 +01:00
cpmant Update tiny models and pipeline tests (#23446) 2023-05-18 17:29:04 +02:00
ctrl Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
cvt Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
data2vec Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
deberta Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
deberta_v2 Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
decision_transformer 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
deformable_detr Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
deit Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
deta Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
detr Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
dinat Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
distilbert Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
dit Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
donut 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
dpr Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
dpt Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
efficientformer Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
efficientnet Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
electra Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
encodec Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
encoder_decoder Move TF building to an actual build() method (#23760) 2023-06-06 18:30:51 +01:00
ernie 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
ernie_m Automatically create/update tiny models (#22275) 2023-03-23 19:14:17 +01:00
esm Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
falcon Falcon port (#24523) 2023-07-11 13:36:31 +01:00
flaubert Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
flava Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
fnet Revert "Fix gradient checkpointing + fp16 autocast for most models" (#24420) 2023-06-22 16:11:27 +02:00
focalnet Update tiny models and pipeline tests (#23446) 2023-05-18 17:29:04 +02:00
fsmt update_pip_test_mapping (#22606) 2023-04-06 17:56:06 +02:00
funnel Big TF test cleanup (#24282) 2023-06-16 15:40:49 +01:00
git Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
glpn Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
gpt_bigcode Add torch >=1.12 requirement for Tapas (#24251) 2023-06-13 19:19:40 +02:00
gpt_neo Update tiny models and pipeline tests (#23446) 2023-05-18 17:29:04 +02:00
gpt_neox Llama/GPTNeoX: add RoPE scaling (#24653) 2023-07-13 16:47:30 +01:00
gpt_neox_japanese 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
gpt_sw3 Add gpt-sw3 model to transformers (#20209) 2022-12-12 13:12:13 -05:00
gpt2 Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
gptj Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
gptsan_japanese Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
graphormer Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
groupvit Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
herbert Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00
hubert Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
ibert 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
imagegpt Update some torchscript tests after #24505 (#24566) 2023-06-29 16:05:24 +02:00
informer Revert "Fix gradient checkpointing + fp16 autocast for most models" (#24420) 2023-06-22 16:11:27 +02:00
instructblip [InstructBLIP] Fix bos token of LLaMa checkpoints (#24492) 2023-07-11 20:43:01 +01:00
jukebox Update Jukebox tests (#21984) 2023-03-07 04:20:14 +01:00
layoutlm Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
layoutlmv2 Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
layoutlmv3 Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
layoutxlm Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
led Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
levit Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
lilt Revert "Fix gradient checkpointing + fp16 autocast for most models" (#24420) 2023-06-22 16:11:27 +02:00
llama Llama/GPTNeoX: add RoPE scaling (#24653) 2023-07-13 16:47:30 +01:00
longformer Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
longt5 update_pip_test_mapping (#22606) 2023-04-06 17:56:06 +02:00
luke Revert "Fix gradient checkpointing + fp16 autocast for most models" (#24420) 2023-06-22 16:11:27 +02:00
lxmert Big TF test cleanup (#24282) 2023-06-16 15:40:49 +01:00
m2m_100 update_pip_test_mapping (#22606) 2023-04-06 17:56:06 +02:00
marian Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
markuplm Update some MarkupLM tests' expected values (#22667) 2023-04-11 10:00:34 +02:00
mask2former Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
maskformer Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
mbart Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
mbart50 Replace as_target context managers by direct calls (#18325) 2022-07-29 08:09:09 -04:00
mega Fix MegaModel CI (#22652) 2023-04-07 17:13:04 +02:00
megatron_bert 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
megatron_gpt2 Move test model folders (#17034) 2022-05-03 14:42:02 +02:00
mgp_str Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
mluke Black preview (#17217) 2022-05-12 16:25:55 -04:00
mobilebert Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
mobilenet_v1 Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
mobilenet_v2 Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
mobilevit Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
mobilevitv2 Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
mpnet Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
mra Add Multi Resolution Analysis (MRA) (New PR) (#24513) 2023-07-10 10:50:43 +01:00
mt5 Better TF docstring types (#23477) 2023-05-24 13:52:52 +01:00
musicgen Skip torchscript tests for MusicgenForConditionalGeneration (#24782) 2023-07-13 15:54:18 +02:00
mvp Generate: skip left-padding tests on old models (#23437) 2023-05-18 11:04:51 +01:00
nat Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
nezha 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
nllb 🚨🚨🚨 [NLLB Tokenizer] Fix the prefix tokens 🚨🚨🚨 (#22313) 2023-04-04 14:53:06 +02:00
nllb_moe tests: Fix flaky test for NLLB-MoE (#22880) 2023-04-21 17:09:40 +01:00
nystromformer 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
oneformer Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
open_llama Llama/GPTNeoX: add RoPE scaling (#24653) 2023-07-13 16:47:30 +01:00
openai Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
opt Big TF test cleanup (#24282) 2023-06-16 15:40:49 +01:00
owlvit Update some torchscript tests after #24505 (#24566) 2023-06-29 16:05:24 +02:00
pegasus Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
pegasus_x update_pip_test_mapping (#22606) 2023-04-06 17:56:06 +02:00
perceiver Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
phobert Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00
pix2struct Update some torchscript tests after #24505 (#24566) 2023-06-29 16:05:24 +02:00
plbart Generate: skip left-padding tests on old models (#23437) 2023-05-18 11:04:51 +01:00
poolformer Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
prophetnet Generate: skip left-padding tests on old models (#23437) 2023-05-18 11:04:51 +01:00
qdqbert 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
rag Big TF test cleanup (#24282) 2023-06-16 15:40:49 +01:00
realm Unpin numba (#23162) 2023-05-31 14:59:30 +01:00
reformer Generate: skip left-padding tests on old models (#23437) 2023-05-18 11:04:51 +01:00
regnet Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
rembert Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
resnet Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
roberta Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
roberta_prelayernorm Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
roc_bert Move is_pipeline_test_to_skip to specific model test classes (#21999) 2023-03-14 10:03:02 +01:00
roformer Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
rwkv Fix TypeError: Object of type int64 is not JSON serializable (#24340) 2023-06-27 12:15:49 +01:00
sam Revert "Fix gradient checkpointing + fp16 autocast for most models" (#24420) 2023-06-22 16:11:27 +02:00
segformer Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
sew Fix TypeError: Object of type int64 is not JSON serializable (#24340) 2023-06-27 12:15:49 +01:00
sew_d Fix TypeError: Object of type int64 is not JSON serializable (#24340) 2023-06-27 12:15:49 +01:00
speech_encoder_decoder Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00
speech_to_text Update some torchscript tests after #24505 (#24566) 2023-06-29 16:05:24 +02:00
speech_to_text_2 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
speecht5 Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
splinter Make tiny model creation + pipeline testing more robust (#22500) 2023-04-06 17:45:55 +02:00
squeezebert 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
swiftformer Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
swin Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
swin2sr Skip test_multi_gpu_data_parallel_forward for some model tests (#21991) 2023-03-07 14:23:36 +01:00
swinv2 Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
switch_transformers [Patch-t5-tokenizer] Patches the changes on T5 to make sure previous behaviour is still valide for beginning of words (#24622) 2023-07-11 15:02:18 +02:00
t5 [Patch-t5-tokenizer] Patches the changes on T5 to make sure previous behaviour is still valide for beginning of words (#24622) 2023-07-11 15:02:18 +02:00
table_transformer Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
tapas Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
time_series_transformer Revert "Fix gradient checkpointing + fp16 autocast for most models" (#24420) 2023-06-22 16:11:27 +02:00
timesformer Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
timm_backbone Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
transfo_xl Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
trocr Generate: skip left-padding tests on old models (#23437) 2023-05-18 11:04:51 +01:00
tvlt Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
umt5 [Patch-t5-tokenizer] Patches the changes on T5 to make sure previous behaviour is still valide for beginning of words (#24622) 2023-07-11 15:02:18 +02:00
unispeech Fix TypeError: Object of type int64 is not JSON serializable (#24340) 2023-06-27 12:15:49 +01:00
unispeech_sat Fix TypeError: Object of type int64 is not JSON serializable (#24340) 2023-06-27 12:15:49 +01:00
upernet Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
videomae Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
vilt Removal of deprecated vision methods and specify deprecation versions (#24570) 2023-06-29 15:09:51 +01:00
vision_encoder_decoder Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
vision_text_dual_encoder Fix VisionTextDualEncoderIntegrationTest (#24661) 2023-07-05 13:44:30 +02:00
visual_bert Revert "Fix gradient checkpointing + fp16 autocast for most models" (#24420) 2023-06-22 16:11:27 +02:00
vit Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
vit_hybrid Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
vit_mae Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
vit_msn Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
vivit Check models used for common tests are small (#24824) 2023-07-14 14:43:19 -04:00
wav2vec2 Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
wav2vec2_conformer Fix TypeError: Object of type int64 is not JSON serializable (#24340) 2023-06-27 12:15:49 +01:00
wav2vec2_phoneme Move test model folders (#17034) 2022-05-03 14:42:02 +02:00
wav2vec2_with_lm Fix test_word_time_stamp_integration for Wav2Vec2ProcessorWithLMTest (#22800) 2023-04-17 12:41:55 +02:00
wavlm Fix TypeError: Object of type int64 is not JSON serializable (#24340) 2023-06-27 12:15:49 +01:00
whisper Update some torchscript tests after #24505 (#24566) 2023-06-29 16:05:24 +02:00
x_clip Update some torchscript tests after #24505 (#24566) 2023-06-29 16:05:24 +02:00
xglm Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
xlm Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
xlm_prophetnet Update expected values in XLMProphetNetModelIntegrationTest (#21957) 2023-03-06 09:15:44 +01:00
xlm_roberta Better TF docstring types (#23477) 2023-05-24 13:52:52 +01:00
xlm_roberta_xl Use real tokenizers if tiny version(s) creation has issue(s) (#22428) 2023-03-29 16:16:23 +02:00
xlnet Speed up TF tests by reducing hidden layer counts (#24595) 2023-06-30 16:30:33 +01:00
xmod Use real tokenizers if tiny version(s) creation has issue(s) (#22428) 2023-03-29 16:16:23 +02:00
yolos Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
yoso 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
__init__.py Move test model folders (#17034) 2022-05-03 14:42:02 +02:00