Skip to content

Commit

Permalink
Refine sif building
Browse files Browse the repository at this point in the history
  • Loading branch information
binkjakub committed Dec 13, 2024
1 parent 795ebf0 commit 72ac731
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions slurm/build_apptainer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ set -e

# Creates docker image containing the environment for fine-tuning.
docker build \
--tag juddges_sft:latest \
--tag juddges:latest \
--file ./slurm/fine_tuning_env.dockerfile \
.

# Converts the docker image into an Apptainer image.
docker run \
--rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $(pwd):/juddges \
kaczmarj/apptainer build juddges_sft.sif docker-daemon://juddges_sft:latest
--volume $(pwd):/work \
kaczmarj/apptainer \
build \
juddges.sif \
docker-daemon://juddges:latest
2 changes: 1 addition & 1 deletion slurm/fine_tuning_env.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM nvcr.io/nvidia/pytorch:24.11-py3

WORKDIR /judddges
WORKDIR /juddges

RUN apt-get update -qq && apt-get install --yes -q make git

Expand Down

0 comments on commit 72ac731

Please sign in to comment.