Skip to content

Commit

Permalink
set torch version to what is installed during axolotl install (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian authored Jan 31, 2024
1 parent 5787e1a commit 8f2b591
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def parse_requirements():

try:
torch_version = version("torch")
_install_requires.append(f"torch=={torch_version}")
if torch_version.startswith("2.1."):
_install_requires.pop(_install_requires.index("xformers==0.0.22"))
_install_requires.append("xformers>=0.0.23")
Expand All @@ -50,7 +51,7 @@ def parse_requirements():
dependency_links=dependency_links,
extras_require={
"flash-attn": [
"flash-attn==2.3.3",
"flash-attn==2.5.0",
],
"fused-dense-lib": [
"fused-dense-lib @ git+https://github.com/Dao-AILab/[email protected]#subdirectory=csrc/fused_dense_lib",
Expand Down

0 comments on commit 8f2b591

Please sign in to comment.