update deps (#1663) [skip ci]
Browse files* update deps and tweak logic so axolotl is pip installable
* use vcs url format
* using dependency_links isn't supported per docs)
- .github/workflows/tests.yml +5 -0
- requirements.txt +4 -4
- setup.py +11 -5
.github/workflows/tests.yml
CHANGED
@@ -84,6 +84,11 @@ jobs:
|
|
84 |
python_version: "3.11"
|
85 |
pytorch: 2.2.2
|
86 |
num_gpus: 1
|
|
|
|
|
|
|
|
|
|
|
87 |
steps:
|
88 |
- name: Checkout
|
89 |
uses: actions/checkout@v4
|
|
|
84 |
python_version: "3.11"
|
85 |
pytorch: 2.2.2
|
86 |
num_gpus: 1
|
87 |
+
- cuda: 121
|
88 |
+
cuda_version: 12.1.0
|
89 |
+
python_version: "3.11"
|
90 |
+
pytorch: 2.3.0
|
91 |
+
num_gpus: 1
|
92 |
steps:
|
93 |
- name: Checkout
|
94 |
uses: actions/checkout@v4
|
requirements.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
--extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
|
2 |
packaging==23.2
|
3 |
-
peft==0.
|
4 |
-
transformers==4.
|
5 |
tokenizers==0.19.1
|
6 |
bitsandbytes==0.43.1
|
7 |
accelerate==0.30.1
|
@@ -16,7 +16,7 @@ flash-attn==2.5.8
|
|
16 |
sentencepiece
|
17 |
wandb
|
18 |
einops
|
19 |
-
xformers==0.0.
|
20 |
optimum==1.16.2
|
21 |
hf_transfer
|
22 |
colorama
|
@@ -39,6 +39,6 @@ s3fs
|
|
39 |
gcsfs
|
40 |
# adlfs
|
41 |
|
42 |
-
trl==0.8.
|
43 |
zstandard==0.22.0
|
44 |
fastcore
|
|
|
1 |
--extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
|
2 |
packaging==23.2
|
3 |
+
peft==0.11.1
|
4 |
+
transformers==4.41.1
|
5 |
tokenizers==0.19.1
|
6 |
bitsandbytes==0.43.1
|
7 |
accelerate==0.30.1
|
|
|
16 |
sentencepiece
|
17 |
wandb
|
18 |
einops
|
19 |
+
xformers==0.0.26.post1
|
20 |
optimum==1.16.2
|
21 |
hf_transfer
|
22 |
colorama
|
|
|
39 |
gcsfs
|
40 |
# adlfs
|
41 |
|
42 |
+
trl==0.8.6
|
43 |
zstandard==0.22.0
|
44 |
fastcore
|
setup.py
CHANGED
@@ -30,8 +30,11 @@ def parse_requirements():
|
|
30 |
|
31 |
try:
|
32 |
if "Darwin" in platform.system():
|
33 |
-
|
|
|
34 |
else:
|
|
|
|
|
35 |
torch_version = version("torch")
|
36 |
_install_requires.append(f"torch=={torch_version}")
|
37 |
|
@@ -46,11 +49,14 @@ def parse_requirements():
|
|
46 |
raise ValueError("Invalid version format")
|
47 |
|
48 |
if (major, minor) >= (2, 3):
|
49 |
-
|
50 |
-
_install_requires.append("xformers>=0.0.26.post1")
|
51 |
elif (major, minor) >= (2, 2):
|
52 |
-
_install_requires.pop(_install_requires.index("xformers==0.0.
|
53 |
_install_requires.append("xformers>=0.0.25.post1")
|
|
|
|
|
|
|
|
|
54 |
except PackageNotFoundError:
|
55 |
pass
|
56 |
|
@@ -62,7 +68,7 @@ install_requires, dependency_links = parse_requirements()
|
|
62 |
|
63 |
setup(
|
64 |
name="axolotl",
|
65 |
-
version="0.4.
|
66 |
description="LLM Trainer",
|
67 |
long_description="Axolotl is a tool designed to streamline the fine-tuning of various AI models, offering support for multiple configurations and architectures.",
|
68 |
package_dir={"": "src"},
|
|
|
30 |
|
31 |
try:
|
32 |
if "Darwin" in platform.system():
|
33 |
+
# don't install xformers on MacOS
|
34 |
+
_install_requires.pop(_install_requires.index("xformers==0.0.26.post1"))
|
35 |
else:
|
36 |
+
# detect the version of torch already installed
|
37 |
+
# and set it so dependencies don't clobber the torch version
|
38 |
torch_version = version("torch")
|
39 |
_install_requires.append(f"torch=={torch_version}")
|
40 |
|
|
|
49 |
raise ValueError("Invalid version format")
|
50 |
|
51 |
if (major, minor) >= (2, 3):
|
52 |
+
pass
|
|
|
53 |
elif (major, minor) >= (2, 2):
|
54 |
+
_install_requires.pop(_install_requires.index("xformers==0.0.26.post1"))
|
55 |
_install_requires.append("xformers>=0.0.25.post1")
|
56 |
+
else:
|
57 |
+
_install_requires.pop(_install_requires.index("xformers==0.0.26.post1"))
|
58 |
+
_install_requires.append("xformers>=0.0.23.post1")
|
59 |
+
|
60 |
except PackageNotFoundError:
|
61 |
pass
|
62 |
|
|
|
68 |
|
69 |
setup(
|
70 |
name="axolotl",
|
71 |
+
version="0.4.1",
|
72 |
description="LLM Trainer",
|
73 |
long_description="Axolotl is a tool designed to streamline the fine-tuning of various AI models, offering support for multiple configurations and architectures.",
|
74 |
package_dir={"": "src"},
|