Skip to content

Commit

Permalink
Merge pull request #320 from JamesKunstle/hpu-config
Browse files Browse the repository at this point in the history
deps: change hf accelerate bound, add requirements-hpu.txt
  • Loading branch information
JamesKunstle authored Nov 13, 2024
2 parents 8a49747 + d4570ae commit 8385f42
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ package-dir = { "" = "src" }
dependencies = { file = ["requirements.txt"] }
optional-dependencies.cuda = { file = ["requirements-cuda.txt"] }
optional-dependencies.rocm = { file = ["requirements-rocm.txt"] }
optional-dependencies.hpu = { file = ["requirements-hpu.txt"] }

[tool.setuptools.packages.find]
where = ["src"]
Expand Down
3 changes: 3 additions & 0 deletions requirements-cuda.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
flash-attn>=2.4.0
bitsandbytes>=0.43.1

# required for FSDP updates
accelerate>=0.34.2
2 changes: 2 additions & 0 deletions requirements-hpu.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# required for optimum-habana's deps
accelerate>=0.33.0
2 changes: 2 additions & 0 deletions requirements-rocm.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
flash-attn>=2.6.2,<2.7.0
# required for FSDP updates
accelerate>=0.34.2
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ py-cpuinfo
# replace custom pytorch images with the 2.3.0
torch>=2.3.0a0
transformers>=4.45.2
accelerate>=0.34.2

datasets>=2.15.0
numba
# Note: numpy ranges copied from instructlab/instructlab
Expand All @@ -22,6 +22,6 @@ trl>=0.9.4
peft
pydantic>=2.7.0

# deepspeed needs to be at the bottom or it'll break during installation
# deepspeed needs to be at the end or it'll break stuff.
deepspeed>=0.14.3
aiofiles>=23.2.1

0 comments on commit 8385f42

Please sign in to comment.