2023-05-23 09:42:19 -06:00
|
|
|
name: Nightly load test
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * 1-5'
|
2024-11-21 10:11:42 -07:00
|
|
|
workflow_call:
|
|
|
|
workflow_dispatch:
|
2023-05-23 09:42:19 -06:00
|
|
|
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- ".github/workflows/load_test.yaml"
|
2024-11-21 10:11:42 -07:00
|
|
|
|
|
|
|
env:
|
|
|
|
AWS_DEFAULT_REGION: us-east-1
|
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.S3_AWS_ACCESS_KEY_ID }}
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_AWS_SECRET_ACCESS_KEY }}
|
2023-05-23 09:42:19 -06:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
load-tests:
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
2024-07-19 23:06:40 -06:00
|
|
|
runs-on:
|
2024-11-21 10:11:42 -07:00
|
|
|
group: aws-g6-12xl-plus-priv-cache
|
2023-05-23 09:42:19 -06:00
|
|
|
env:
|
|
|
|
DOCKER_VOLUME: /cache
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2024-11-21 10:11:42 -07:00
|
|
|
- name: Install Python 3.11
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.11
|
2023-05-23 09:42:19 -06:00
|
|
|
|
2024-11-21 10:11:42 -07:00
|
|
|
- name: Install poetry
|
2023-05-23 09:42:19 -06:00
|
|
|
run: |
|
2024-11-21 10:11:42 -07:00
|
|
|
curl -sSL https://install.python-poetry.org | python3 -
|
|
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
|
|
poetry --version
|
2023-05-23 09:42:19 -06:00
|
|
|
|
2024-11-21 10:11:42 -07:00
|
|
|
- name: Run bench test
|
2023-05-23 09:42:19 -06:00
|
|
|
run: |
|
2024-11-21 10:11:42 -07:00
|
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
|
|
cd load_tests
|
|
|
|
poetry install
|
|
|
|
poetry run python benchmarks.py --sha ${{ github.sha }} --results-file "s3://text-generation-inference-ci/benchmarks/ci/${{ github.sha }}.parquet"
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
HF_TOKEN: ${{ secrets.HF_TOKEN_BENCHMARK }}
|