From 3d2fb46e8f18040a12f99b7feb9576fa1f3dd28d Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Thu, 2 May 2024 14:16:59 -0400 Subject: [PATCH] Cleanout OCI build Directory first when doing a make Signed-off-by: Daniel J Walsh --- training/deepspeed/Makefile | 1 + training/instructlab/Makefile | 2 ++ training/vllm/Makefile | 1 + 3 files changed, 4 insertions(+) diff --git a/training/deepspeed/Makefile b/training/deepspeed/Makefile index 6ef500f6..90accd53 100644 --- a/training/deepspeed/Makefile +++ b/training/deepspeed/Makefile @@ -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 \ diff --git a/training/instructlab/Makefile b/training/instructlab/Makefile index 1dd0f088..2fd0ab59 100644 --- a/training/instructlab/Makefile +++ b/training/instructlab/Makefile @@ -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 diff --git a/training/vllm/Makefile b/training/vllm/Makefile index 3e8b8bc9..3668c614 100644 --- a/training/vllm/Makefile +++ b/training/vllm/Makefile @@ -5,6 +5,7 @@ default: image .PHONY: image image: @mkdir -p ../build + rm -rf ../build/vllm "${CONTAINER_TOOL}" build \ $(ARCH:%=--platform linux/%) \ --file Containerfile \