Skip to content

Commit

Permalink
Merge pull request #447 from rhatdan/instructlab
Browse files Browse the repository at this point in the history
Cleanout OCI build Directory first when doing a make
  • Loading branch information
rhatdan authored May 2, 2024
2 parents c425e7c + 3d2fb46 commit 1872a14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions training/deepspeed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ default: image
.PHONY: image
image:
@mkdir -p ../build
rm -rf ../build/deepspeed-trainer .
"${CONTAINER_TOOL}" build \
$(ARCH:%=--platform linux/%) \
--file Containerfile \
Expand Down
2 changes: 2 additions & 0 deletions training/instructlab/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ instructlab:

.PHONY: nvidia
nvidia: instructlab
rm -rf ../build/instructlab-$@
podman build --layers=false --squash-all -t oci:../build/instructlab-$@ instructlab/containers/cuda

.PHONY: amd
amd: instructlab
rm -rf ../build/instructlab-$@
podman build --layers=false --squash-all -t oci:../build/instructlab-$@ -f instructlab/containers/rocm/Containerfile instructlab
1 change: 1 addition & 0 deletions training/vllm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ default: image
.PHONY: image
image:
@mkdir -p ../build
rm -rf ../build/vllm
"${CONTAINER_TOOL}" build \
$(ARCH:%=--platform linux/%) \
--file Containerfile \
Expand Down

0 comments on commit 1872a14

Please sign in to comment.