-
-
Notifications
You must be signed in to change notification settings - Fork 921
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set torch version to what is installed during axolotl install (#1234)
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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") | ||
|
@@ -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", | ||
|