Skip to content

implement torch.linalg.svd xpu backend #1901

@yao-matrix

Description

@yao-matrix

🚀 The feature, motivation and pitch

torch.linalg.svd is need by PEFT LOFTQ and PISSA, but on XPU it shows the log as below:

usr/local/lib/python3.11/dist-packages/peft/utils/loftq_utils.py:182: UserWarning: Aten Op fallback from XPU to CPU happends. This may have performance implications. If need debug the fallback ops please set environment variable PYTORCH_DEBUG_XPU_FALLBACK=1 (Triggered internally at /pytorch/build/xpu/ATen/RegisterXPU_0.cpp:54525.)
U, S, Vh = torch.linalg.svd

pls plan torch.linalg.svd xpu backend rather than falling back to cpu.

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions