transformers/tests/models/auto
Matt 9215cc62d4
Try working around the processor registration bugs (#36184)
* Try working around the processor registration bugs

* oops

* Update error message

* Clarify error

* Docstring docstring docstring

* The extra content is indexed by config class, so let's grab some values out of there

* Commit my confusion as a TODO

* Resolve my confusion

* Cleanup and mostly revert to the original

* Better autoclass fallback

* Don't nest f-strings you lunatic

* Clearer error message

* Less getattr()

* Revert a lot of changes to try a different approach!

* Try the global registry

* Check the dynamic list as well as the transformers root

* Move the dynamic list somewhere safer

* Move the dynamic list somewhere even safer

* More import cleanup

* Simplify all the register_for_auto_class methods

* Set _auto_class in the register() methods

* Stop setting the cls attribute in register()

* Restore specifying the model class for Model derivatives only

* Fix accidentally taking the .__class__ of a class

* Revert register_for_auto_class changes

* Fix get_possibly_dynamic_module

* No more ALL_CUSTOM_CLASSES

* Fix up get_possibly_dynamic_module as well

* Revert unnecessary formatting changes

* Trigger tests
2025-03-14 13:56:21 +00:00
..
__init__.py Move test model folders (#17034) 2022-05-03 14:42:02 +02:00
test_configuration_auto.py support loading model without config.json file (#32356) 2024-09-06 13:49:47 +02:00
test_feature_extraction_auto.py Load dynamic module (remote code) only once if code isn't change (#33162) 2024-09-06 12:49:35 +01:00
test_image_processing_auto.py Fall back to slow image processor in ImageProcessingAuto when no fast processor available (#34785) 2024-12-15 14:00:36 -05:00
test_modeling_auto.py Fix test_auto_backbone_timm_model_from_pretrained (#34877) 2024-11-25 17:20:41 +01:00
test_modeling_flax_auto.py Update all references to canonical models (#29001) 2024-02-16 08:16:58 +01:00
test_modeling_tf_auto.py Fix auto tests (#30067) 2024-04-05 17:49:46 +02:00
test_processor_auto.py Try working around the processor registration bugs (#36184) 2025-03-14 13:56:21 +00:00
test_tokenization_auto.py Final CI cleanup (#36703) 2025-03-13 17:26:09 +00:00