mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
![]() `return unittest.skip()` used in the `test_model_parallel_beam_search` in
skip condition for xpu did not actually mark test to be skipped running
under pytest:
* 148 passed, 1 skipped
Other tests use `self.skipTest()`. Reusing this approach and moving the
condition outside the loop (since it does not depend on it) allows to skip
for xpu correctly:
* 148 skipped
Secondly, `device_map="auto"` is now implemented for XPU for IPEX>=2.5 and
torch>=2.6, so we can now enable these tests for XPU for new IPEX/torch
versions.
Fixes:
|
||
---|---|---|
.. | ||
__init__.py | ||
test_beam_constraints.py | ||
test_beam_search.py | ||
test_candidate_generator.py | ||
test_configuration_utils.py | ||
test_flax_logits_process.py | ||
test_flax_utils.py | ||
test_framework_agnostic.py | ||
test_fsdp.py | ||
test_logits_process.py | ||
test_stopping_criteria.py | ||
test_streamers.py | ||
test_tf_logits_process.py | ||
test_tf_utils.py | ||
test_utils.py |