[XPU] Fix lora bugs & enable UTs under tests/lora (#38206)
Signed-off-by: chaojun-zhang <chaojun.zhang@intel.com>
This commit is contained in:
@@ -40,7 +40,7 @@ EMBEDDING_MODULES = {
|
||||
DEVICE_TYPE = current_platform.device_type
|
||||
DEVICES = (
|
||||
[f"{DEVICE_TYPE}:{i}" for i in range(min(torch.accelerator.device_count(), 2))]
|
||||
if current_platform.is_cuda_alike()
|
||||
if (current_platform.is_cuda_alike() or current_platform.is_xpu())
|
||||
else ["cpu"]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user