Skip to content

Commit

Permalink
workaround for installing xformers w torch 2.1.0 (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Oct 13, 2023
1 parent f30afe4 commit 8d288a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ def parse_requirements():
):
# Handle standard packages
_install_requires.append(line)

# TODO(wing) remove once xformers release supports torch 2.1.0
if "torch==2.1.0" in _install_requires:
_install_requires.pop(_install_requires.index("xformers>=0.0.22"))
_install_requires.append(
"git+https://github.com/facebookresearch/xformers.git@main#egg=xformers"
)

return _install_requires, _dependency_links


Expand Down

0 comments on commit 8d288a2

Please sign in to comment.