Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/community-ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SPDX-License-Identifier: Apache-2.0
## Current rollout

Stable keeps the existing Community CI behavior: every pull request runs the
four parallel CPU stages, and automatic GPU execution remains disabled.
five parallel CPU stages, and automatic GPU execution remains disabled.
Maintainers can still request the existing experimental GPU smoke test manually.
The Internal CI bridge, required status, and maintainer trigger are unchanged.

Expand All @@ -20,7 +20,7 @@ Both branches use one workflow file, `.github/workflows/community-ci.yml`, named
**Community CI**. There is no separate Community premerge workflow.

```text
Stable: source quality / docs / ownership / C++ and Python units → CPU result
Stable: source quality / docs / ownership / C++ and Python units / AIPerf qualification → CPU result
Dev: source quality / docs / ownership / C++ and Python units → Brev GPU → result
```

Expand Down
42 changes: 41 additions & 1 deletion .github/workflows/community-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,42 @@ jobs:
- name: Run hardened source-only units
run: python3 -m tools.community_ci unit

# The AIPerf qualification application, in its own environment: its pinned AIPerf and its plugins.
aiperf-qual:
name: Community CPU / AIPerf qualification
needs: authorize
runs-on: ubuntu-24.04
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Check out the exact PR merge
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
with:
ref: ${{ needs.authorize.outputs.merge_sha }}
fetch-depth: 0
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: "3.12"

- name: Install the application and its AIPerf plugins
run: |
set -euo pipefail
python -m pip install --requirement apps/aiperf_qual/requirements.txt \
"$(grep -x 'pytest==.*' requirements/community-ci.txt)"
python -m pip install --no-deps apps/aiperf_qual/plugins

- name: Test the application
env:
CUDA_VISIBLE_DEVICES: ""
HF_HUB_OFFLINE: "1"
PYTHONDONTWRITEBYTECODE: "1"
PYTHONPATH: apps/aiperf_qual:apps/aiperf_qual/plugins:core/builder:apps/benchmark:.
run: python -m pytest apps/aiperf_qual/tests -q -m "not gpu and not trt" -p no:cacheprovider

required:
name: Community CPU / Required
if: ${{ !cancelled() && (github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && inputs.source_snapshot != '')) }}
Expand All @@ -619,6 +655,7 @@ jobs:
- docs
- ownership-impact
- unit
- aiperf-qual
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions: {}
Expand All @@ -629,17 +666,20 @@ jobs:
DOCS_RESULT: ${{ needs.docs.result }}
OWNERSHIP_IMPACT_RESULT: ${{ needs.ownership-impact.result }}
UNIT_RESULT: ${{ needs.unit.result }}
AIPERF_QUAL_RESULT: ${{ needs.aiperf-qual.result }}
run: |
set -euo pipefail
printf '%s\n' \
"Source quality: $SOURCE_QUALITY_RESULT" \
"Docs: $DOCS_RESULT" \
"Ownership and impact: $OWNERSHIP_IMPACT_RESULT" \
"Unit / C++ and Python: $UNIT_RESULT"
"Unit / C++ and Python: $UNIT_RESULT" \
"AIPerf qualification: $AIPERF_QUAL_RESULT"
test "$SOURCE_QUALITY_RESULT" = success
test "$DOCS_RESULT" = success
test "$OWNERSHIP_IMPACT_RESULT" = success
test "$UNIT_RESULT" = success
test "$AIPERF_QUAL_RESULT" = success

gpu-authorize:
name: Community GPU / Authorize
Expand Down
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,10 @@ public CI, protected CI, or maintainer review.
### 9. Run contributor-visible Community CI

Opening a pull request or pushing a new commit automatically starts **Stable
Community CI** with the existing four parallel CPU stages: source quality,
documentation, ownership and impact, and C++/Python unit tests. The
`Community CPU / Required` result requires all four to pass.
Community CI** with five parallel CPU stages: source quality, documentation,
ownership and impact, C++/Python unit tests, and the AIPerf qualification
application's tests in its own environment. The `Community CPU / Required`
result requires all five to pass.

Stable automatic Community GPU execution remains disabled during qualification.
Maintainers retain the existing manual GPU smoke option. **Dev Community CI**
Expand Down
5 changes: 5 additions & 0 deletions apps/aiperf_qual/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,15 @@ file to change:
|---|---|---|
| `config/tasks.yaml` | the profile's Task has no defaults (no entry, no exclusion to write) | every machine |
| `config/exclusions.yaml` | the qualification cannot qualify the profile as cataloged | every machine |
| `config/models` | an image-generation request leaves a size, step or guidance control to the pipeline's default, so each side would choose its own; state it under `request` in `config/models/<profile>.yaml` | every machine |
| `environment` | not in the machine's `models.include`, or in its `models.exclude` | one machine |
| `config/platforms/<platform>.yaml` | what the hardware cannot run | one kind of hardware |
| `environment` | a checkpoint above the machine's `models.max_checkpoint_gib` | one machine |

A family that adds a profile the qualification cannot run yet does not change this application: the
`config/tasks.yaml` and `config/models` rows leave the profile out on their own, and `plan` shows it with its
reason.

The scope is every ready catalog profile (L0 smoke and regression variants aside). `run-all`, `plan`, `assign`
and `matrix` take the machine's list; `--profile` (names or glob patterns, in the order given) replaces its
`include` and is held to the same exclusions, `run --profile` too. `--ignore-exclusions` runs the named profiles
Expand Down
24 changes: 0 additions & 24 deletions apps/aiperf_qual/tests/families/test_birefnet_aiperf.py

This file was deleted.

30 changes: 0 additions & 30 deletions apps/aiperf_qual/tests/families/test_dinov3_aiperf.py

This file was deleted.

28 changes: 0 additions & 28 deletions apps/aiperf_qual/tests/families/test_electra_aiperf_outliers.py

This file was deleted.

30 changes: 0 additions & 30 deletions apps/aiperf_qual/tests/families/test_fnet_aiperf_outliers.py

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions apps/aiperf_qual/tests/families/test_llama_aiperf_awq_inputs.py

This file was deleted.

42 changes: 0 additions & 42 deletions apps/aiperf_qual/tests/families/test_roberta_aiperf_outliers.py

This file was deleted.

19 changes: 0 additions & 19 deletions apps/aiperf_qual/tests/families/test_rt_detr_v2_aiperf.py

This file was deleted.

This file was deleted.

4 changes: 3 additions & 1 deletion apps/aiperf_qual/tests/test_campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,12 @@ def test_the_catalog_excludes_profiles_without_task_defaults_then_those_config_e

from trtmc_aiperf_qual.config import CONFIG_ROOT

import shutil

tasks = yaml.safe_load((CONFIG_ROOT / "tasks.yaml").read_text())
del tasks["tasks"]["text_continuation"]
root = tmp_path / "config"
root.mkdir()
shutil.copytree(CONFIG_ROOT / "models", root / "models") # flux-2-dev states its image controls there
(root / "tasks.yaml").write_text(yaml.safe_dump(tasks))
(root / "exclusions.yaml").write_text("exclude:\n - {profile: flux-schnell, reason: a stated gap}\n"
" - {profile: qwen3-0.6b-fp16, reason: never reached}\n")
Expand Down
Loading
Loading