-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Workspace Tempaltes] Upgrade finetuning template (#41752)
* Update to torch 2.1.1 with cuda toolkit 11.8 Signed-off-by: Artur Niederfahrenhorst <[email protected]> * Fix dockerfile and requirements Signed-off-by: Artur Niederfahrenhorst <[email protected]> * pin peft Signed-off-by: Artur Niederfahrenhorst <[email protected]> * Change Dockerfile version number * change CUDA version to 121 --------- Signed-off-by: Artur Niederfahrenhorst <[email protected]>
- Loading branch information
1 parent
32663c8
commit 9562078
Showing
4 changed files
with
9 additions
and
8 deletions.
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
5 changes: 4 additions & 1 deletion
5
doc/source/templates/testing/docker/04_finetuning_llms_with_deepspeed/Dockerfile
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
# Dockerfile used to create the docker image for `04_finetuning_llms_with_deepspeed`. | ||
FROM anyscale/ray:2.7.1-py310-cu121 | ||
FROM anyscale/ray:2.8.1-py310-cu121 | ||
|
||
COPY requirements.txt ./ | ||
|
||
RUN sudo apt-get update | ||
RUN sudo apt-get install -y libaio1 | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install -U -r requirements.txt | ||
RUN pip install torch==2.1.1 --index-url https://download.pytorch.org/whl/cu121 | ||
RUN pip uninstall bitsandbytes -y | ||
|
||
RUN echo "Testing Ray Import..." && python -c "import ray" | ||
RUN ray --version |
6 changes: 1 addition & 5 deletions
6
doc/source/templates/testing/docker/04_finetuning_llms_with_deepspeed/requirements.txt
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 |
---|---|---|
@@ -1,18 +1,14 @@ | ||
torch==2.0.0 | ||
torchvision==0.15.1 | ||
torchaudio==2.0.1 | ||
deepspeed | ||
fairscale | ||
transformers>=4.31.0 | ||
dataset | ||
accelerate | ||
evaluate | ||
bitsandbytes | ||
wandb | ||
pytorch-lightning | ||
protobuf<3.21.0 | ||
torchmetrics | ||
lm_eval==0.3.0 | ||
tiktoken==0.1.2 | ||
sentencepiece | ||
peft @ git+https://github.com/huggingface/peft.git@08368a1fba16de09756f067637ff326c71598fb3 | ||
peft==0.7.0 |
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