Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
andreea-popescu-reef committed Sep 4, 2024
1 parent 60e71ed commit 9cceac0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_push_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ env:
jobs:
deploy:
timeout-minutes: 15
fail-fast: false
# runs-on: ubuntu-latest
# runs-on: ubuntu-latest-4-cores
runs-on:
Expand All @@ -43,6 +42,7 @@ jobs:
ls
echo "-----"
pdm install
echo "----- done"
- name: Docker build and push
run: |
Expand All @@ -52,7 +52,7 @@ jobs:
ls
echo "----- down model "
pdm run download_model.py --huggingface_token "${{ secrets.HUGGINGFACE_API_KEY }}"
echo "-----"
echo "----- done down model"
echo "-----"
echo "-----"
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,18 @@ jobs:
- name: Run Test
run: |
cd src/compute_horde_prompt_gen
pdm run run.py --mock_model --number_of_batches 5 --number_of_prompts_per_batch 20 --uuids uuid1,uuid2,uuid3,uuid4,uuid5
echo "\nGenerated batches:"
mkdir output/
echo "building image with no model"
docker build -t compute-horde-prompt-gen .
echo "running prompt generation with mock model"
docker run -v ./output/:/app/output/ compute-horde-prompt-gen --mock_model --number_of_batches 5 --number_of_prompts_per_batch 20 --uuids uuid1,uuid2,uuid3,uuid4,uuid5
echo "\ngenerated batches:"
ls output/
echo "\nChecking if prompts are generated"
echo "\nchecking if prompts are generated fine"
for i in $(seq 1 5); do
if [ $(cat output/prompts_uuid$i.txt | wc -l) -ne 20 ]; then
echo "Missing prompts"
Expand Down

0 comments on commit 9cceac0

Please sign in to comment.