Skip to content

Commit

Permalink
ENH: Create copy of pytorch notebook
Browse files Browse the repository at this point in the history
Using the pytorch notebook as a base for the llm notebook.
Created an empty .sh file for adding installation script
  • Loading branch information
meoflynn committed Nov 20, 2024
1 parent fe0e2b2 commit 93f707e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions jupyter-llm-notebook/Dockerfile
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.

0 comments on commit 93f707e

Please sign in to comment.