-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Create copy of pytorch notebook
Using the pytorch notebook as a base for the llm notebook. Created an empty .sh file for adding installation script
- Loading branch information
Showing
2 changed files
with
24 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,24 @@ | ||
FROM cschranz/gpu-jupyter:v1.7_cuda-12.2_ubuntu-22.04_python-only | ||
|
||
USER root | ||
# The base image only gets updated when a new version of CUDA is released. | ||
# We need to update the base image to get the latest security updates. | ||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get autoremove -y && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
USER $NB_UID | ||
RUN set -ex \ | ||
&& buildDeps=' \ | ||
transformers \ | ||
accelerate \ | ||
bitsandbytes \ | ||
' \ | ||
&& pip install --no-cache-dir $buildDeps \ | ||
&& fix-permissions "${CONDA_DIR}" \ | ||
&& fix-permissions "/home/${NB_USER}" | ||
|
||
#switch back to jovyan to avoid accidental container runs as root | ||
USER ${NB_UID} | ||
|
Empty file.