Skip to content

Commit

Permalink
push image
Browse files Browse the repository at this point in the history
  • Loading branch information
andreea-popescu-reef committed Sep 16, 2024
1 parent ddcc0a9 commit e502cd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build_push_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "CD: build & push image"

on:
push:
branches: [build-image]
branches: [build-push-llama-image]
workflow_dispatch:

env:
Expand All @@ -14,7 +14,7 @@ jobs:
deploy:
timeout-minutes: 15
runs-on:
group: bulkier
group: bulkierer
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -38,6 +38,8 @@ jobs:
cd src/compute_horde_prompt_gen
python download_model.py --model_name phi3 --huggingface_token "${{ secrets.HUGGINGFACE_API_KEY }}"
python download_model.py --model_name llama3 --huggingface_token "${{ secrets.HUGGINGFACE_API_KEY }}"
docker build -t $IMAGE_NAME .
docker push $IMAGE_NAME
2 changes: 1 addition & 1 deletion src/compute_horde_prompt_gen/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self):
pass

def generate(self, prompts: list[str], num_return_sequences: int, **_kwargs):
content = f"Here is the list of prompts:\nHow are you?\nDescribe something\nCount to ten\n"
content = "Here is the list of prompts:\nHow are you?\nDescribe something\nCount to ten\n"
return [content for _ in range(len(prompts) * num_return_sequences)]


Expand Down

0 comments on commit e502cd6

Please sign in to comment.