Skip to content

Commit dc2ab76

Browse files
author
RuohengMa
committed
fix
1 parent 89f2a39 commit dc2ab76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

paddlenlp/peft/lora/lora_model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ def get_lora_layers():
6363
)
6464

6565
from .lora_layers import LoRAConv2D
66+
else:
67+
raise ImportError("
68+
PaddlePaddle is not compiled with XPU support, using PaddleNLP's native implementations.")
6669
except ImportError as e:
6770
logger.info("Failed to import LoRA Linear from paddle_xpu, using PaddleNLP's native implementations.")
6871
logger.info(f"{e}")

0 commit comments

Comments
 (0)