Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
add missing platforms & tests
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jul 24, 2023
1 parent 13653e0 commit 9037ad7
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cdr-t5/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ docker buildx build ${@:1} \
--build-arg="MODEL_ID=Salesforce/codet5p-220m-py" \
--tag $IMAGE:latest \
--tag $IMAGE:$VERSION \
--platform linux/amd64 \
--platform linux/arm64,linux/amd64 \
.
docker run --rm $IMAGE:$VERSION pytest
1 change: 1 addition & 0 deletions cht-llama-cpp/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ docker buildx build ${@:1} \
--tag $IMAGE:$VERSION \
--platform linux/arm64,linux/amd64 \
.
docker run --rm $IMAGE:$VERSION pytest

IMAGE=ghcr.io/premai-io/chat-vicuna-7b-q4-cpu
docker buildx build ${@:1} \
Expand Down
6 changes: 6 additions & 0 deletions cht-mpt/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ docker buildx build ${@:1} \
--tag $IMAGE:latest \
--tag $IMAGE:$VERSION \
.
if test -z ${TESTS_SKIP_GPU+x}; then
docker run --rm --gpus all ghcr.io/premai-io/mpt-7b-gpu:$VERSION pytest
fi

IMAGE=ghcr.io/premai-io/mpt-7b-instruct-gpu
docker buildx build ${@:1} \
Expand All @@ -28,3 +31,6 @@ docker buildx build ${@:1} \
--tag $IMAGE:latest \
--tag $IMAGE:$VERSION \
.
if test -z ${TESTS_SKIP_GPU+x}; then
docker run --rm --gpus all ghcr.io/premai-io/mpt-7b-instruct-gpu:$VERSION pytest
fi
19 changes: 15 additions & 4 deletions dfs-diffusers/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ docker buildx build ${@:1} \
--tag $IMAGE:latest \
--tag $IMAGE:$VERSION \
.
if test -z ${TESTS_SKIP_GPU+x}; then
docker run --rm --gpus all $IMAGE:$VERSION pytest
fi

IMAGE=ghcr.io/premai-io/diffuser-stable-diffusion-1-5-gpu
docker buildx build ${@:1} \
Expand All @@ -17,6 +20,9 @@ docker buildx build ${@:1} \
--tag $IMAGE:latest \
--tag $IMAGE:$VERSION \
.
if test -z ${TESTS_SKIP_GPU+x}; then
docker run --rm --gpus all $IMAGE:$VERSION pytest
fi

IMAGE=ghcr.io/premai-io/diffuser-stable-diffusion-2-gpu
docker buildx build ${@:1} \
Expand All @@ -25,8 +31,9 @@ docker buildx build ${@:1} \
--tag $IMAGE:latest \
--tag $IMAGE:$VERSION \
.

# docker system prune --all --force --volumes
if test -z ${TESTS_SKIP_GPU+x}; then
docker run --rm --gpus all $IMAGE:$VERSION pytest
fi

IMAGE=ghcr.io/premai-io/upscaler-stable-diffusion-x4-gpu
docker buildx build ${@:1} \
Expand All @@ -35,6 +42,9 @@ docker buildx build ${@:1} \
--tag $IMAGE:latest \
--tag $IMAGE:$VERSION \
.
if test -z ${TESTS_SKIP_GPU+x}; then
docker run --rm --gpus all $IMAGE:$VERSION pytest
fi

IMAGE=ghcr.io/premai-io/upscaler-stable-diffusion-x2-latent-gpu
docker buildx build ${@:1} \
Expand All @@ -43,5 +53,6 @@ docker buildx build ${@:1} \
--tag $IMAGE:latest \
--tag $IMAGE:$VERSION \
.

# docker run --rm --gpus all ghcr.io/premai-io/diffuser-stable-diffusion-2-gpu:$VERSION pytest
if test -z ${TESTS_SKIP_GPU+x}; then
docker run --rm --gpus all $IMAGE:$VERSION pytest
fi

0 comments on commit 9037ad7

Please sign in to comment.