transformers/tests
Stas Bekman bbbc5c15d4
[AutoModel] fix torch_dtype=auto in from_pretrained (#23379)
* [automodel] fix torch_dtype=auto in from_pretrained

* add test

* fix logic

* Update src/transformers/models/auto/auto_factory.py

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

---------

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
2023-05-16 10:21:42 -07:00
..
benchmark [Test refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00
bettertransformer Add methods to PreTrainedModel to use PyTorch's BetterTransformer (#21259) 2023-04-27 11:03:42 +02:00
deepspeed Fix decorator order (#22708) 2023-04-11 17:59:15 +02:00
extended [tests] switch to torchrun (#22712) 2023-04-12 08:25:45 -07:00
fixtures [WIP] add SpeechT5 model (#18922) 2023-02-03 12:43:46 -05:00
generation Generate: starcoder 🤜 🤛 assisted generation (#23182) 2023-05-08 10:45:40 +01:00
mixed_int8 [bnb] Let's make serialization of int8 models possible (#22177) 2023-04-12 08:01:18 -04:00
models Update test_batched_inference_image_captioning_conditioned (#23391) 2023-05-16 14:49:24 +02:00
onnx Fix issue introduced in PR #23163 (#23363) 2023-05-15 11:38:44 +02:00
optimization Make schedulers picklable by making lr_lambda fns global (#21768) 2023-03-02 12:08:43 -05:00
pipelines Generate: text generation pipeline no longer emits max_length warning when it is not set (#23139) 2023-05-04 18:36:23 +01:00
repo_utils Test fetch v2 (#22367) 2023-03-31 16:18:43 -04:00
sagemaker Avoid invalid escape sequences, use raw strings (#22936) 2023-04-25 09:17:56 -04:00
tokenization Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00
tools Fix image segmentation tool test (#23306) 2023-05-11 14:38:11 -04:00
trainer Add Trainer support for ReduceLROnPlateau (#23010) 2023-04-28 09:17:30 -04:00
utils audio_utils improvements (#21998) 2023-05-09 09:10:17 -04:00
__init__.py GPU text generation: mMoved the encoded_prompt to correct device 2020-01-06 15:11:12 +01:00
test_backbone_common.py Add methods to update and verify out_features out_indices (#23031) 2023-05-04 10:15:06 +01:00
test_configuration_common.py Add RWKV-4 (#22797) 2023-05-09 13:04:10 -04:00
test_feature_extraction_common.py Prepare tests for hfh 0.14 (#22958) 2023-04-24 09:31:50 -04:00
test_image_processing_common.py Prepare tests for hfh 0.14 (#22958) 2023-04-24 09:31:50 -04:00
test_image_transforms.py Rescale image back if it was scaled during PIL conversion (#22458) 2023-03-30 11:29:11 +01:00
test_modeling_common.py [AutoModel] fix torch_dtype=auto in from_pretrained (#23379) 2023-05-16 10:21:42 -07:00
test_modeling_flax_common.py Fix bigbird random attention (#21023) 2023-04-27 13:52:28 -04:00
test_modeling_tf_common.py Make _test_xla_generate less flaky (#22996) 2023-04-28 13:27:28 +02:00
test_pipeline_mixin.py Update tiny models and a few fixes (#22928) 2023-04-24 14:45:22 +02:00
test_sequence_feature_extraction_common.py Apply ruff flake8-comprehensions (#21694) 2023-02-22 09:14:54 +01:00
test_tokenization_common.py chore: allow protobuf 3.20.3 requirement (#22759) 2023-05-10 20:22:56 +02:00