forked from unslothai/unsloth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added dockerfile. pip install is very temperamental about install ord…
…er of dependencies
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
ARG CUDA_VERSION=12.1.1 | ||
FROM nvcr.io/nvidia/cuda:${CUDA_VERSION}-cudnn8-devel-ubuntu22.04 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \ | ||
&& echo 'tzdata tzdata/Zones/America select Los_Angeles' | debconf-set-selections \ | ||
&& apt-get update -y \ | ||
&& apt-get install -y software-properties-common python3 python3-pip python-is-python3 git curl sudo | ||
RUN pip install --upgrade pip | ||
RUN pip install --upgrade torch triton packaging | ||
RUN pip install --upgrade --force-reinstall --no-cache-dir \ | ||
ninja einops flash-attn xformers trl peft accelerate bitsandbytes \ | ||
"unsloth[cu121-torch230] @ git+https://github.com/unslothai/unsloth.git" |