Model Job - test-e2e-b2fb44cf #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: NVIDIA Model Benchmark Job | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| run_id: | |
| description: 'Unique identifier for this run' | |
| required: true | |
| type: string | |
| payload: | |
| description: 'Content of the user submission config, as compressed json string' | |
| required: true | |
| type: string | |
| run-name: 'Model Job - ${{ github.event.inputs.run_id }}' | |
| jobs: | |
| run: | |
| runs-on: [nvidia-docker-b200-8-x86-64] | |
| timeout-minutes: 60 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Create input files | |
| shell: bash | |
| run: | | |
| # Extract the payload content without printing it | |
| apt-get update && apt-get install -y jq | |
| PAYLOAD=$(jq -r '.inputs.payload' $GITHUB_EVENT_PATH) | |
| # Apply mask to the extracted content | |
| echo "::add-mask::$PAYLOAD" | |
| # Now write to file (won't be logged since it's masked) | |
| echo "$PAYLOAD" > payload.json | |
| - name: Setup Virtual Environment and Install Dependencies | |
| shell: bash | |
| run: | | |
| pip install --upgrade pip | |
| pip install -r "requirements-dev.txt" | |
| pip install -e . | |
| - name: Run model benchmark | |
| shell: bash | |
| run: | | |
| python3 src/runners/github-runner.py | |
| - name: Upload benchmark results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: run-result | |
| path: result.json |