Repository navigation
Remove xFormers built for another torch after Linux repair - #11783
danielhanchen merged 7 commits into
Conversation
|
Confirmed the Linux repair in studio/install_python_stack.py re-selects torchao when torch changes but never checked for a stale xFormers, which matches the mismatch in #11639. Will get this reviewed. |
…uirement check after the Linux repair The build check now runs whether or not this run moved torch, so an xFormers left mismatched by an earlier run is removed too, and a blocked uninstall is warned about instead of reported as removed.
…nged PyPI's xFormers 0.0.35 is built for 2.10.0+cu128 and loads its extension under 2.11.0+cu130 (stable ABI since 0.0.34), so an exact build-string compare removed a working xFormers from every CUDA install. Compare cuda / rocm / xpu / cpu instead.
xFormers' _C.so links libcudart.so.<major>; a cu130 torch ships only the CUDA 13 runtime, so a cu128 build cannot load there unless a system CUDA 12 runtime happens to be on the loader path.
|
Review record for #11783, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#262. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|
Fixes #11639
Motivation
The mismatched xFormers eviction currently runs only in the Windows-on-ARM wheelhouse path. A Linux torch repair can also change the installed torch release, leaving behind an xFormers build that cannot load its C++/CUDA extensions.
Changes
Tests
Focused tests pass locally.