From c0bebedecb2ce3e9b079670a5a0d0273e56b6fe0 Mon Sep 17 00:00:00 2001 From: Trevor Royer Date: Tue, 5 Nov 2024 08:25:58 -0700 Subject: [PATCH] reorganize folders --- .github/workflows/build-images.yaml | 4 ++-- .../huggingface-modelcar-builder}/Containerfile | 0 .../huggingface-modelcar-builder}/README.md | 0 .../huggingface-modelcar-builder}/download_model.py | 0 .../huggingface-modelcar-builder}/pyproject.toml | 0 .../huggingface-modelcar-builder}/requirements.txt | 0 .../granite-3.0-2b-instruct}/Containerfile | 0 .../granite-3.0-2b-instruct}/README.md | 2 +- .../granite-3.0-8b-instruct}/Containerfile | 0 .../granite-3.0-8b-instruct}/README.md | 2 +- .../mistral-7b-instruct-v0.3}/Containerfile | 0 .../mistral-7b-instruct-v0.3}/README.md | 2 +- 12 files changed, 5 insertions(+), 5 deletions(-) rename {huggingface-modelcar-builder => builder-images/huggingface-modelcar-builder}/Containerfile (100%) rename {huggingface-modelcar-builder => builder-images/huggingface-modelcar-builder}/README.md (100%) rename {huggingface-modelcar-builder => builder-images/huggingface-modelcar-builder}/download_model.py (100%) rename {huggingface-modelcar-builder => builder-images/huggingface-modelcar-builder}/pyproject.toml (100%) rename {huggingface-modelcar-builder => builder-images/huggingface-modelcar-builder}/requirements.txt (100%) rename {granite-3.0-2b-instruct => modelcar-images/granite-3.0-2b-instruct}/Containerfile (100%) rename {granite-3.0-2b-instruct => modelcar-images/granite-3.0-2b-instruct}/README.md (83%) rename {granite-3.0-8b-instruct => modelcar-images/granite-3.0-8b-instruct}/Containerfile (100%) rename {granite-3.0-8b-instruct => modelcar-images/granite-3.0-8b-instruct}/README.md (83%) rename {mistral-7b-instruct-v0.3 => modelcar-images/mistral-7b-instruct-v0.3}/Containerfile (100%) rename {mistral-7b-instruct-v0.3 => modelcar-images/mistral-7b-instruct-v0.3}/README.md (96%) diff --git a/.github/workflows/build-images.yaml b/.github/workflows/build-images.yaml index c822416..cd8695c 100644 --- a/.github/workflows/build-images.yaml +++ b/.github/workflows/build-images.yaml @@ -7,7 +7,7 @@ on: branches: - main paths: - - huggingface-modelcar-builder/** + - builder-images/huggingface-modelcar-builder/** jobs: build-huggingface-modelcar-builder-image: @@ -15,7 +15,7 @@ jobs: with: registry: quay.io/redhat-ai-services image-name: huggingface-modelcar-builder - context: huggingface-modelcar-builder + context: builder-images/huggingface-modelcar-builder push-latest: true secrets: registry-username: ${{ secrets.REGISTRY_USERNAME }} diff --git a/huggingface-modelcar-builder/Containerfile b/builder-images/huggingface-modelcar-builder/Containerfile similarity index 100% rename from huggingface-modelcar-builder/Containerfile rename to builder-images/huggingface-modelcar-builder/Containerfile diff --git a/huggingface-modelcar-builder/README.md b/builder-images/huggingface-modelcar-builder/README.md similarity index 100% rename from huggingface-modelcar-builder/README.md rename to builder-images/huggingface-modelcar-builder/README.md diff --git a/huggingface-modelcar-builder/download_model.py b/builder-images/huggingface-modelcar-builder/download_model.py similarity index 100% rename from huggingface-modelcar-builder/download_model.py rename to builder-images/huggingface-modelcar-builder/download_model.py diff --git a/huggingface-modelcar-builder/pyproject.toml b/builder-images/huggingface-modelcar-builder/pyproject.toml similarity index 100% rename from huggingface-modelcar-builder/pyproject.toml rename to builder-images/huggingface-modelcar-builder/pyproject.toml diff --git a/huggingface-modelcar-builder/requirements.txt b/builder-images/huggingface-modelcar-builder/requirements.txt similarity index 100% rename from huggingface-modelcar-builder/requirements.txt rename to builder-images/huggingface-modelcar-builder/requirements.txt diff --git a/granite-3.0-2b-instruct/Containerfile b/modelcar-images/granite-3.0-2b-instruct/Containerfile similarity index 100% rename from granite-3.0-2b-instruct/Containerfile rename to modelcar-images/granite-3.0-2b-instruct/Containerfile diff --git a/granite-3.0-2b-instruct/README.md b/modelcar-images/granite-3.0-2b-instruct/README.md similarity index 83% rename from granite-3.0-2b-instruct/README.md rename to modelcar-images/granite-3.0-2b-instruct/README.md index 93d9266..0ad3ff4 100644 --- a/granite-3.0-2b-instruct/README.md +++ b/modelcar-images/granite-3.0-2b-instruct/README.md @@ -7,7 +7,7 @@ quay.io/redhat-ai-services/modelcar-catalog:granite-3.0-2b-instruct ## Building Image ``` -podman build granite-3.0-2b-instruct \ +podman build modelcar-images/granite-3.0-2b-instruct \ -t quay.io/redhat-ai-services/modelcar-catalog:granite-3.0-2b-instruct \ --platform linux/amd64 ``` diff --git a/granite-3.0-8b-instruct/Containerfile b/modelcar-images/granite-3.0-8b-instruct/Containerfile similarity index 100% rename from granite-3.0-8b-instruct/Containerfile rename to modelcar-images/granite-3.0-8b-instruct/Containerfile diff --git a/granite-3.0-8b-instruct/README.md b/modelcar-images/granite-3.0-8b-instruct/README.md similarity index 83% rename from granite-3.0-8b-instruct/README.md rename to modelcar-images/granite-3.0-8b-instruct/README.md index f57e8b6..bab6275 100644 --- a/granite-3.0-8b-instruct/README.md +++ b/modelcar-images/granite-3.0-8b-instruct/README.md @@ -7,7 +7,7 @@ quay.io/redhat-ai-services/modelcar-catalog:granite-3.0-8b-instruct ## Building Image ``` -podman build granite-3.0-8b-instruct \ +podman build modelcar-images/granite-3.0-8b-instruct \ -t quay.io/redhat-ai-services/modelcar-catalog:granite-3.0-8b-instruct \ --platform linux/amd64 ``` diff --git a/mistral-7b-instruct-v0.3/Containerfile b/modelcar-images/mistral-7b-instruct-v0.3/Containerfile similarity index 100% rename from mistral-7b-instruct-v0.3/Containerfile rename to modelcar-images/mistral-7b-instruct-v0.3/Containerfile diff --git a/mistral-7b-instruct-v0.3/README.md b/modelcar-images/mistral-7b-instruct-v0.3/README.md similarity index 96% rename from mistral-7b-instruct-v0.3/README.md rename to modelcar-images/mistral-7b-instruct-v0.3/README.md index 350d4aa..ee96d7f 100644 --- a/mistral-7b-instruct-v0.3/README.md +++ b/modelcar-images/mistral-7b-instruct-v0.3/README.md @@ -11,7 +11,7 @@ This model requires a user-token to authenticate with HuggingFace before pulling Once your token has been created, be sure to accept the terms and conditions for this model on the model home page. ``` -podman build mistral-7b-instruct-v0.3 \ +podman build modelcar-images/mistral-7b-instruct-v0.3 \ -t quay.io/redhat-ai-services/modelcar-catalog:mistral-7b-instruct-v0.3 \ --build-arg HF_TOKEN="hf_..." \ --platform linux/amd64