From c61b023bc84a449d7f73ebd40ff1e61cefdfb1a3 Mon Sep 17 00:00:00 2001 From: mudler Date: Wed, 29 Mar 2023 18:55:24 +0200 Subject: [PATCH] Drop fat images, will document how to consume models --- Earthfile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Earthfile b/Earthfile index b78e17a..6b7e739 100644 --- a/Earthfile +++ b/Earthfile @@ -11,11 +11,6 @@ go-deps: SAVE ARTIFACT go.mod AS LOCAL go.mod SAVE ARTIFACT go.sum AS LOCAL go.sum -model-image: - ARG MODEL_IMAGE=quay.io/go-skynet/models:ggml2-alpaca-7b-v0.2 - FROM $MODEL_IMAGE - SAVE ARTIFACT /models/model.bin - build: FROM +go-deps WORKDIR /build @@ -34,14 +29,13 @@ image: ENTRYPOINT [ "/llama-cli" ] SAVE IMAGE --push $IMAGE -lite-image: +image: FROM +go-deps ARG IMAGE=alpaca-cli-nomodel COPY +build/llama-cli /llama-cli ENV MODEL_PATH=/model.bin ENTRYPOINT [ "/llama-cli" ] - SAVE IMAGE --push $IMAGE-lite + SAVE IMAGE --push $IMAGE image-all: - #BUILD --platform=linux/amd64 --platform=linux/arm64 +image - BUILD --platform=linux/amd64 --platform=linux/arm64 +lite-image + BUILD --platform=linux/amd64 --platform=linux/arm64 +image