[object Object]

← back to Exo

check cached files in workflow

ce41e653c0b072b7ca326ebe0f4f45d963cc7a4e · 2024-07-20 17:50:56 -0700 · Alex Cheema

Files touched

Diff

commit ce41e653c0b072b7ca326ebe0f4f45d963cc7a4e
Author: Alex Cheema <alexcheema123@gmail.com>
Date:   Sat Jul 20 17:50:56 2024 -0700

    check cached files in workflow
---
 .github/workflows/test.yml | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index d11db660..5193fb90 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -23,7 +23,12 @@ jobs:
         pip install .
 
     - name: Run tests
-      run: METAL_XCODE=1 python3 -m exo.inference.test_inference_engine
+      run: |
+        # Check if cached files are present
+        ls ~/.cache/huggingface/hub/models--mlx-community--Meta-Llama-3-8B-Instruct-4bit/**/*
+
+        # Run unit tests
+        METAL_XCODE=1 python3 -m exo.inference.test_inference_engine
 
   discovery_integration_test:
     runs-on: macos-latest
@@ -42,9 +47,6 @@ jobs:
 
     - name: Run discovery integration test
       run: |
-        # Check if cached files are present
-        ls ~/.cache/huggingface/hub/models--mlx-community--Meta-Llama-3-8B-Instruct-4bit/**/*
-
         # Start first instance
         DEBUG_DISCOVERY=9 DEBUG=9 python3 main.py --listen-port 5678 --broadcast-port 5679 --chatgpt-api-port 8000 > output1.log 2>&1 &
         PID1=$!
@@ -105,6 +107,9 @@ jobs:
 
     - name: Run chatgpt api integration test
       run: |
+        # Check if cached files are present
+        ls ~/.cache/huggingface/hub/models--mlx-community--Meta-Llama-3-8B-Instruct-4bit/**/*
+
         # Start first instance
         DEBUG_DISCOVERY=9 DEBUG=9 python3 main.py --listen-port 5678 --broadcast-port 5679 --chatgpt-api-port 8000 --chatgpt-api-response-timeout-secs 1200 > output1.log 2>&1 &
         PID1=$!

← 3d82338c debug cached files in workflow  ·  back to Exo  ·  cache isolation per workflow job 052ee1c7 →