File size: 237 Bytes
5fa1a76
 
 
 
1
2
3
4
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.