This can be specified using the environment variable TRANSFORMERS_TEST_BACKEND: | |
TRANSFORMERS_TEST_BACKEND="torch_npu" pytest tests/utils/test_logging.py | |
Alternative backends may also require the replacement of device-specific functions. |
This can be specified using the environment variable TRANSFORMERS_TEST_BACKEND: | |
TRANSFORMERS_TEST_BACKEND="torch_npu" pytest tests/utils/test_logging.py | |
Alternative backends may also require the replacement of device-specific functions. |