transformers/tests
Duc-Viet Hoang dc8b6eaeee
Fix contrastive search to correctly handle input with padding (#33507)
* fix: handle padding in contrastive search for decoder-only models

* fix: handle padding in contrastive search for encoder-decoder models

* tests: move padding contrastive test to test_util, add t5 test

* fix: handle if model_kwargs["decoder_attention_mask"] is None

* refactor: improve padding input contrastive search generation tests

* chore: _ranking_fast to use LongTensor for cosine_matrix_mask
2024-09-20 16:52:08 +01:00
..
agents Decorator for easier tool building (#33439) 2024-09-18 11:07:51 +02:00
benchmark
bettertransformer
deepspeed Revert PR 32299, flag users when Zero-3 was missed (#32851) 2024-08-16 12:35:41 -04:00
extended [tests] skip tests for xpu (#33553) 2024-09-19 19:28:04 +01:00
fixtures
fsdp 🚨🚨🚨 Update min version of accelerate to 0.26.0 (#32627) 2024-08-20 11:42:36 +02:00
generation Fix contrastive search to correctly handle input with padding (#33507) 2024-09-20 16:52:08 +01:00
models Add support for args to ProcessorMixin for backward compatibility (#33479) 2024-09-20 11:40:59 -04:00
optimization
peft_integration
pipelines Pipeline: no side-effects on model.config and model.generation_config 🔫 (#33480) 2024-09-18 15:43:06 +01:00
quantization Fix FbgemmFp8Linear not preserving tensor shape (#33239) 2024-09-11 13:26:44 +02:00
repo_utils Refactor CI: more explicit (#30674) 2024-08-30 18:17:25 +02:00
sagemaker Fixed log messages that are resulting in TypeError due to too many arguments (#32017) 2024-07-17 10:56:44 +01:00
tokenization Fix for slow the bug tokenizer adding spaces to single id decodes (#32564) 2024-09-18 12:32:02 +02:00
trainer [tests] skip tests for xpu (#33553) 2024-09-19 19:28:04 +01:00
utils [tests] skip tests for xpu (#33553) 2024-09-19 19:28:04 +01:00
__init__.py
test_backbone_common.py
test_configuration_common.py Refactor: Removed un-necessary object base class (#32230) 2024-07-26 10:33:02 +02:00
test_feature_extraction_common.py
test_image_processing_common.py Update kwargs validation for preprocess with decorator (#32024) 2024-08-06 11:33:05 +01:00
test_image_transforms.py
test_modeling_common.py [tests] make more tests device-agnostic (#33580) 2024-09-20 10:16:43 +01:00
test_modeling_flax_common.py
test_modeling_tf_common.py
test_pipeline_mixin.py Config: unified logic to retrieve text config (#33219) 2024-09-04 12:03:30 +01:00
test_processing_common.py Add support for args to ProcessorMixin for backward compatibility (#33479) 2024-09-20 11:40:59 -04:00
test_sequence_feature_extraction_common.py
test_tokenization_common.py Enable padding_side as call time kwargs (#33385) 2024-09-13 11:58:38 +01:00