update deps (#1663) [skip ci]

* update deps and tweak logic so axolotl is pip installable

* use vcs url format

* using dependency_links isn't supported per docs)
This commit is contained in:
Wing Lian
2024-05-28 11:23:34 -04:00
committed by GitHub
parent 8a20a7b711
commit ef223519c9
3 changed files with 20 additions and 9 deletions

View File

@@ -84,6 +84,11 @@ jobs:
python_version: "3.11" python_version: "3.11"
pytorch: 2.2.2 pytorch: 2.2.2
num_gpus: 1 num_gpus: 1
- cuda: 121
cuda_version: 12.1.0
python_version: "3.11"
pytorch: 2.3.0
num_gpus: 1
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@@ -1,7 +1,7 @@
--extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
packaging==23.2 packaging==23.2
peft==0.10.0 peft==0.11.1
transformers==4.40.2 transformers==4.41.1
tokenizers==0.19.1 tokenizers==0.19.1
bitsandbytes==0.43.1 bitsandbytes==0.43.1
accelerate==0.30.1 accelerate==0.30.1
@@ -16,7 +16,7 @@ flash-attn==2.5.8
sentencepiece sentencepiece
wandb wandb
einops einops
xformers==0.0.23.post1 xformers==0.0.26.post1
optimum==1.16.2 optimum==1.16.2
hf_transfer hf_transfer
colorama colorama
@@ -39,6 +39,6 @@ s3fs
gcsfs gcsfs
# adlfs # adlfs
trl==0.8.5 trl==0.8.6
zstandard==0.22.0 zstandard==0.22.0
fastcore fastcore

View File

@@ -30,8 +30,11 @@ def parse_requirements():
try: try:
if "Darwin" in platform.system(): if "Darwin" in platform.system():
_install_requires.pop(_install_requires.index("xformers==0.0.23.post1")) # don't install xformers on MacOS
_install_requires.pop(_install_requires.index("xformers==0.0.26.post1"))
else: else:
# detect the version of torch already installed
# and set it so dependencies don't clobber the torch version
torch_version = version("torch") torch_version = version("torch")
_install_requires.append(f"torch=={torch_version}") _install_requires.append(f"torch=={torch_version}")
@@ -46,11 +49,14 @@ def parse_requirements():
raise ValueError("Invalid version format") raise ValueError("Invalid version format")
if (major, minor) >= (2, 3): if (major, minor) >= (2, 3):
_install_requires.pop(_install_requires.index("xformers==0.0.23.post1")) pass
_install_requires.append("xformers>=0.0.26.post1")
elif (major, minor) >= (2, 2): elif (major, minor) >= (2, 2):
_install_requires.pop(_install_requires.index("xformers==0.0.23.post1")) _install_requires.pop(_install_requires.index("xformers==0.0.26.post1"))
_install_requires.append("xformers>=0.0.25.post1") _install_requires.append("xformers>=0.0.25.post1")
else:
_install_requires.pop(_install_requires.index("xformers==0.0.26.post1"))
_install_requires.append("xformers>=0.0.23.post1")
except PackageNotFoundError: except PackageNotFoundError:
pass pass
@@ -62,7 +68,7 @@ install_requires, dependency_links = parse_requirements()
setup( setup(
name="axolotl", name="axolotl",
version="0.4.0", version="0.4.1",
description="LLM Trainer", description="LLM Trainer",
long_description="Axolotl is a tool designed to streamline the fine-tuning of various AI models, offering support for multiple configurations and architectures.", long_description="Axolotl is a tool designed to streamline the fine-tuning of various AI models, offering support for multiple configurations and architectures.",
package_dir={"": "src"}, package_dir={"": "src"},