workaround for installing xformers w torch 2.1.0 (#725)
Browse files
setup.py
CHANGED
@@ -21,6 +21,14 @@ def parse_requirements():
|
|
21 |
):
|
22 |
# Handle standard packages
|
23 |
_install_requires.append(line)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
return _install_requires, _dependency_links
|
25 |
|
26 |
|
|
|
21 |
):
|
22 |
# Handle standard packages
|
23 |
_install_requires.append(line)
|
24 |
+
|
25 |
+
# TODO(wing) remove once xformers release supports torch 2.1.0
|
26 |
+
if "torch==2.1.0" in _install_requires:
|
27 |
+
_install_requires.pop(_install_requires.index("xformers>=0.0.22"))
|
28 |
+
_install_requires.append(
|
29 |
+
"git+https://github.com/facebookresearch/xformers.git@main#egg=xformers"
|
30 |
+
)
|
31 |
+
|
32 |
return _install_requires, _dependency_links
|
33 |
|
34 |
|