transformers/tests/utils
amyeroberts 27c79a0fb4
Enable instantiating model with pretrained backbone weights (#28214)
* Enable instantiating model with pretrained backbone weights

* Update tests so backbone checkpoint isn't passed in

* Remove doc updates until changes made in modeling code

* Clarify pretrained import

* Update configs - docs and validation check

* Update src/transformers/utils/backbone_utils.py

Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>

* Clarify exception message

* Update config init in tests

* Add test for when use_timm_backbone=True

* Small test updates

---------

Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
2024-01-23 11:01:50 +00:00
..
__init__.py
test_activations.py
test_activations_tf.py
test_add_new_model_like.py Migrate doc files to Markdown. (#24376) 2023-06-20 18:07:47 -04:00
test_audio_utils.py Porting the torchaudio kaldi fbank implementation to audio_utils (#26182) 2023-09-21 17:52:47 +02:00
test_backbone_utils.py Enable instantiating model with pretrained backbone weights (#28214) 2024-01-23 11:01:50 +00:00
test_cli.py Safetensors serialization by default (#27064) 2023-10-31 19:16:49 +01:00
test_convert_slow_tokenizer.py Revert error back into warning for byte fallback conversion. (#22607) 2023-04-06 14:00:29 +02:00
test_doc_samples.py Fix the check of models supporting FA/SDPA not run (#28202) 2023-12-22 12:56:11 +01:00
test_dynamic_module_utils.py Fix the regex in get_imports to support multiline try blocks and excepts with specific exception types (#23725) 2023-05-24 15:40:19 -04:00
test_file_utils.py
test_generic.py
test_hf_argparser.py ⚠️ Time to say goodbye to py37 (#24091) 2023-06-28 07:22:39 +02:00
test_hub_utils.py Remove-auth-token (#27060) 2023-11-13 14:20:54 +01:00
test_image_processing_utils.py
test_image_utils.py Update fixtures-image-utils (#28080) 2023-12-15 16:58:36 +00:00
test_logging.py
test_model_card.py
test_model_output.py Register ModelOutput as supported torch pytree nodes (#26618) 2023-10-24 11:02:40 +02:00
test_modeling_tf_core.py More TF fixes (#28081) 2023-12-18 15:26:03 +00:00
test_offline.py Fix the expected error in test_offline_mode_pipeline_exception (#23022) 2023-04-27 14:22:05 +02:00
test_skip_decorators.py
test_versions_utils.py improve dev setup comments and hints (#28495) 2024-01-15 18:36:40 +00:00
tiny_model_summary.json Update tiny model summary file (#27388) 2023-11-23 21:00:39 +01:00