-
Notifications
You must be signed in to change notification settings - Fork 2
ci: Split L5 GPU workflows from L4 #164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fe46824
feat: update GPU test workflows for L4 and L5 with new configurations…
67179ce
fix: update timeout settings and cron schedule for L4 and L5 GPU work…
b8213ee
fix: update cron schedule for L5 GPU workflow to run nightly at 5am UTC
17a669c
fix: update cron schedule for L5 GPU workflow to run weekly on Monday…
648c810
fix: update cron schedule for L4 and L5 GPU workflows to run nightly …
5735a02
chore: remove L4 GPU workflow configuration from gpu_tests.yml
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| name: "L4: Golden Checkpoint Parity (GPU)" | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| paths: | ||
| - 'src/**' | ||
| - 'tests/**' | ||
| - 'testdata/**' | ||
| - 'scripts/**' | ||
| schedule: | ||
| # Run weekly on Monday at 4am UTC (after golden regen on Sunday) | ||
| - cron: '0 4 * * 1' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: gpu-l4-tests-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| golden-tests: | ||
| name: L4 - Verify ONNX output matches HuggingFace golden checkpoints | ||
| runs-on: | ||
| - self-hosted | ||
| - "1ES.Pool=onnxruntime-ep-mobius-github-linux-a10" | ||
| - "JobId=gpu-golden-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}" | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: Setup Python | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.12" | ||
|
|
||
| - name: Cache pip packages | ||
| uses: actions/cache@v5 | ||
| with: | ||
| path: ~/.cache/pip | ||
| key: pip-gpu-${{ hashFiles('pyproject.toml', 'requirements/ci/requirements.txt') }} | ||
| restore-keys: | | ||
| pip-gpu- | ||
|
|
||
| - name: Cache HuggingFace models | ||
| uses: actions/cache@v5 | ||
| with: | ||
| path: ~/.cache/huggingface | ||
| key: hf-gpu-${{ hashFiles('testdata/cases/**/*.yaml') }} | ||
| restore-keys: | | ||
| hf-gpu- | ||
|
|
||
| - name: Install PyTorch (CUDA) | ||
| run: pip install torch --index-url https://download.pytorch.org/whl/cu124 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| pip install -r requirements/ci/requirements.txt | ||
| pip install -e '.[testing,transformers]' | ||
|
|
||
| - name: Run L4 checkpoint-verified tests | ||
| env: | ||
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
| run: | | ||
| pytest tests/e2e_golden_test.py \ | ||
| -m golden \ | ||
| -v \ | ||
| --timeout=300 \ | ||
| --junitxml=junit-l4.xml \ | ||
| --cov=src --cov-report=xml --cov-branch \ | ||
| --tb=short | ||
| timeout-minutes: 30 | ||
|
|
||
| - name: Upload coverage to Codecov | ||
| if: always() | ||
| uses: codecov/codecov-action@v6 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| flags: gpu-l4 | ||
| - name: Upload L4 test results to Codecov | ||
| if: ${{ !cancelled() }} | ||
| uses: codecov/codecov-action@v6 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| flags: gpu-l4 | ||
| report-type: test_results | ||
| files: junit-l4.xml | ||
|
|
||
| - name: Upload test results | ||
| if: always() | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: gpu-l4-test-results | ||
| path: junit-l4.xml | ||
| retention-days: 30 | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| name: "L5: End-to-End Generation (GPU)" | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| paths: | ||
| - 'src/**' | ||
| - 'tests/**' | ||
| - 'testdata/**' | ||
| - 'scripts/**' | ||
| schedule: | ||
| # Run weekly on Monday at 5am UTC (after L4 golden tests) | ||
| - cron: '0 5 * * 1' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: gpu-l5-tests-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| generation-tests: | ||
| name: L5 - Full token generation and decoding correctness | ||
| runs-on: | ||
| - self-hosted | ||
| - "1ES.Pool=onnxruntime-ep-mobius-github-linux-a10" | ||
| - "JobId=gpu-l5-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}" | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: Setup Python | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.12" | ||
|
|
||
| - name: Cache pip packages | ||
| uses: actions/cache@v5 | ||
| with: | ||
| path: ~/.cache/pip | ||
| key: pip-gpu-${{ hashFiles('pyproject.toml', 'requirements/ci/requirements.txt') }} | ||
| restore-keys: | | ||
| pip-gpu- | ||
|
|
||
| - name: Cache HuggingFace models | ||
| uses: actions/cache@v5 | ||
| with: | ||
| path: ~/.cache/huggingface | ||
| key: hf-gpu-${{ hashFiles('testdata/cases/**/*.yaml') }} | ||
| restore-keys: | | ||
| hf-gpu- | ||
|
|
||
| - name: Install PyTorch (CUDA) | ||
| run: pip install torch --index-url https://download.pytorch.org/whl/cu124 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| pip install -r requirements/ci/requirements.txt | ||
| pip install -e '.[testing,transformers]' | ||
|
|
||
| - name: Run L5 generation E2E tests | ||
| env: | ||
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
| run: | | ||
| pytest tests/e2e_golden_test.py \ | ||
| -m generation \ | ||
| -v \ | ||
| --timeout=300 \ | ||
| --junitxml=junit-l5.xml \ | ||
| --cov=src --cov-report=xml --cov-branch \ | ||
| --tb=short | ||
| timeout-minutes: 30 | ||
|
|
||
| - name: Upload coverage to Codecov | ||
| if: always() | ||
| uses: codecov/codecov-action@v6 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| flags: gpu-l5 | ||
| - name: Upload L5 test results to Codecov | ||
| if: ${{ !cancelled() }} | ||
| uses: codecov/codecov-action@v6 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| flags: gpu-l5 | ||
| report-type: test_results | ||
| files: junit-l5.xml | ||
|
|
||
| - name: Upload test results | ||
| if: always() | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: gpu-l5-test-results | ||
| path: junit-l5.xml | ||
| retention-days: 30 |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.