transformers/tests/generation
huismiling d0b65bb479
[MLU] Fix FA2 check error, remove deepspeed-mlu deps. (#36159)
* add Cambricon MLUs support

* fix mlu device rng state

* up for quality check

* up mlu to support fp16

* fix mlu device dependency error

* fix mlu device dependency error

* enable mlu device for bf16

* fix mlu device memory tracker

* Cambricon support SDPA and flash_attn

* MLU devices : Checks if `mlu` is available via an `cndev-based` check which won't trigger the drivers and leave mlu

* Fix mlu FA2 check. Remove deepspeed-mlu check. add mlu tests support.

* fix testing errors.

* Merge branch 'hf/main' into main

* fix get_device_count error.

* fix mlu testing utils.

* fix code quality and style.

* switch to @require_torch_multi_accelerator
2025-03-31 11:02:49 +02:00
..
__init__.py [Test refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00
test_beam_constraints.py chore: fix typos in tests directory (#36785) 2025-03-18 10:31:13 +01:00
test_beam_search.py Time to Say Goodbye, torch 1.7 and 1.8 (#22291) 2023-03-21 19:22:01 +01:00
test_candidate_generator.py Universal Speculative Decoding CandidateGenerator (#35029) 2025-02-26 16:14:02 +00:00
test_configuration_utils.py fix typos in the tests directory (#36717) 2025-03-17 17:45:57 +00:00
test_fsdp.py [MLU] Fix FA2 check error, remove deepspeed-mlu deps. (#36159) 2025-03-31 11:02:49 +02:00
test_logits_process.py fix typos in the tests directory (#36717) 2025-03-17 17:45:57 +00:00
test_stopping_criteria.py fix typos in the tests directory (#36717) 2025-03-17 17:45:57 +00:00
test_streamers.py Enable pytest live log and show warning logs on GitHub Actions CI runs (#35912) 2025-02-10 13:36:20 +01:00
test_utils.py [generate, cache] handle more complex device maps (#37014) 2025-03-27 14:33:20 +00:00