winglian commited on
Commit
8d288a2
1 Parent(s): f30afe4

workaround for installing xformers w torch 2.1.0 (#725)

Browse files
Files changed (1) hide show
  1. setup.py +8 -0
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