Skip to content

Commit

Permalink
jobname
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen authored and Glen committed Dec 8, 2024
1 parent fb44eb0 commit 755dd47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/bench_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
model:
required: true
type: string
calling_job_name: # New input parameter
required: true
type: string
jobs:
generate-matrix:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -54,13 +57,13 @@ jobs:
aws_access_key_id: ${{ secrets.S3_EXO_BENCHMARKS_AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.S3_EXO_BENCHMARKS_AWS_SECRET_ACCESS_KEY }}
run: |
CALLING_JOB=$(echo "${{ github.workflow_ref }}" | awk -F'/' '{print $NF}')
CALLING_JOB="${{ inputs.calling_job_name }}"
UNIQUE_JOB_ID="${CALLING_JOB}_${GITHUB_RUN_ID}"
ALL_NODE_IDS=$(for i in $(seq ${{ strategy.job-total }} -1 0); do echo -n "${UNIQUE_JOB_ID}_${i},"; done | sed 's/,$//')
MY_NODE_ID="${UNIQUE_JOB_ID}_${{ strategy.job-index }}"
source env/bin/activate
export PATH="/usr/local/bin:/opt/homebrew/bin:$PATH"
exo --node-id="${MY_NODE_ID}" --node-id-filter="${ALL_NODE_IDS}" --chatgpt-api-port 52415 --disable-tui > output1.log 2>&1 &
exo --node-id="${MY_NODE_ID}" --node-id-filter="${ALL_NODE_IDS}" --chatgpt-api-port 52415 > output1.log 2>&1 &
PID1=$!
tail -f output1.log &
TAIL1=$!
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ jobs:
with:
config: '{"M4PRO_GPU16_24GB": 2}'
model: 'llama-3.2-1b'
calling_job_name: 'test-m4-cluster'
secrets: inherit

0 comments on commit 755dd47

Please sign in to comment.