Skip to content

[CI] Migrate H100 8-GPU integration test to OSDC (ARC) - #3464

Merged
huydhn merged 6 commits into
mainfrom
huydo/osdc-h100-integration
Jun 1, 2026
Merged

huydhn merged 6 commits into
mainfrom
huydo/osdc-h100-integration

Conversation

@huydhn

@huydhn huydhn commented May 30, 2026 •

Copy link
Copy Markdown
Contributor

Migrate the H100 8-GPU integration test to OSDC (ARC) runners now that capacity is available.

  • build-test runs on linux_job_v3 (mt-l-bx86iamx-176-1800-h100-8), inside the torchtitan CI image from ECR, tagged with the .ci/docker hash that set-matrix.yaml now returns.
  • ROCm is included on v3 as well to see if it passes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label May 30, 2026
@huydhn
huydhn force-pushed the huydo/osdc-h100-integration branch 4 times, most recently from a8dc89b to 04652e3 Compare May 30, 2026 06:36
@huydhn huydhn added the ciflow/h100.8 Trigger H100.8 CI label May 30, 2026
@huydhn
huydhn force-pushed the huydo/osdc-h100-integration branch from 04652e3 to 54e491b Compare May 30, 2026 07:10
@huydhn
huydhn marked this pull request as ready for review May 30, 2026 07:14
@huydhn huydhn changed the title [Draft][CI] Migrate H100 8-GPU integration test to OSDC (ARC) [CI] Migrate H100 8-GPU integration test to OSDC (ARC) May 30, 2026
Split the H100 integration workflow into two jobs:
- build-test (CUDA H100): linux_job_v3 on ARC (mt-l-bx86iamx-176-1800-h100-8),
  running inside the private-ECR torchtitan image; nightly cu130 torch/torchao
  routed through the in-cluster pypi-cache (works under --force-reinstall, where
  cache-enforcer blocks pypi.org/pythonhosted).
- build-test-rocm: kept on linux_job_v2 / EC2 (ROCm is partner hardware, no ARC
  equivalent), behavior unchanged.

Stops using the shared set-matrix.yaml here so the g5 8-GPU consumers are
untouched. Draft: ECR image hash rotates with .ci/docker, the CUDA/ROCm
per-event gating is simplified, and in-container sudo was dropped — all flagged.
@huydhn
huydhn force-pushed the huydo/osdc-h100-integration branch from 2c687ed to fc9f778 Compare May 30, 2026 08:33
The OSDC/ARC runner owns $GITHUB_WORKSPACE as uid 1001; aligning ci-user to
1001 lets linux_job_v3's Clean workspace rm/recreate it without sudo.
@huydhn
huydhn requested a review from malfet May 30, 2026 09:02
huydhn added 2 commits May 30, 2026 02:36
The image's ci-user uid no longer matches the EC2 host uid, so the mounted
workspace isn't writable by the container; point coverage's data file and xml
report at RUNNER_TEMP instead of cwd.
RUNNER_TEMP is host-owned (uid mismatch with ci-user) and not writable from the
container; /tmp is world-writable, so point COVERAGE_FILE and the xml report there.
huydhn added a commit to pytorch/test-infra that referenced this pull request Jun 1, 2026
The `Clean workspace` (`set -euxo pipefail`) and `Prepare artifacts for
upload` (`[[ … ]]`) steps had no explicit `shell:`, so in a container
job they run under the default `sh`. On images where `/bin/sh` is
**dash** (Ubuntu/Debian), `set -o pipefail` fails with `Illegal option
-o pipefail`; RHEL-family images (`/bin/sh` → bash) masked it.

Pinning `shell: bash` on those steps makes them independent of the
container's `/bin/sh`.

Repro: a v3 job on an Ubuntu-based image fails at Clean workspace
([torchtitan#3464](pytorch/torchtitan#3464));
the same workflow on `almalinux-builder` passes.
"${TORCH_SPEC}" --index-url ${{ matrix.index-url }}

# Pre-install torch's pure-python deps from the in-cluster pypi-cache for speed.
python -m pip install filelock typing-extensions "setuptools<82" sympy networkx jinja2 fsspec numpy

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I've mentioned in another PR, those shenanigans makes me really uncomfortable. Is there a high-pri issue that one is tracking somewhere to make those workarounds unnecessary

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@huydhn
huydhn merged commit b598831 into main Jun 1, 2026
21 of 23 checks passed
huydhn added a commit that referenced this pull request Jun 2, 2026
…3479)

Migrate the two remaining `linux.aws.h100.8` integration tests to the
OSDC (ARC) H100 runners (`mt-l-bx86iamx-176-1800-h100-8`), following the
same pattern as #3464, which migrated `integration_test_8gpu_h100.yaml`.

### Workflows migrated
- `.github/workflows/integration_test_8gpu_graph_trainer_h100.yaml`
- `.github/workflows/integration_test_8gpu_rl_h100.yaml`

### Changes (both files)
- Route through `set-matrix.yaml` with `runner-cuda:
mt-l-bx86iamx-176-1800-h100-8` and `is-experimental: true` (CUDA-only,
no ROCm) — matching the other experiment workflows
(`integration_test_4gpu_rl`, `8gpu_torchft`,
`8gpu_transformers_modeling_backend`).
- `linux_job_v2.yml` → `linux_job_v3.yml`.
- Pull the private-ECR image tagged with the `.ci/docker` tree hash that
`set-matrix.yaml` returns, instead of the bare public image name.
- Install torch from `${{ matrix.index-url }}` and clear
`PIP_EXTRA_INDEX_URL` so the in-cluster cpu pypi-cache can't supply a
`+cpu` torch build (FA3's `test/cu130` index in the RL workflow is
preserved as-is).
- Drop `sudo mkdir/chown` for the artifacts dir (the v3 container user
uid matches the OSDC runner); fix the `permissions:` block indentation.

### Behavior note
As with the sibling experiment workflows, the CUDA job runs on push to
`main`, on the cron schedule, and on PR `synchronize` while the relevant
ciflow label (`ciflow/h100.8` / `ciflow/rl`) is present. The bare
`labeled` event itself produces an empty matrix (a property of the
shared `set-matrix.yaml` + `is-experimental` path), so a subsequent push
triggers the actual run.

### Motivation
`linux.aws.h100.8` capacity is being consolidated onto OSDC/ARC H100
runners; this finishes the migration started in #3464.

---------

Signed-off-by: Huy Do <[email protected]>
saforem2 added a commit to saforem2/torchtitan that referenced this pull request Jun 2, 2026
…orch#3436 thread

Merged 7 upstream commits (b72d986..04a3098). Headline is PR
pytorch#3450 — the upstream-canonical fix for the histc->scatter swap
that our PR pytorch#3436 was tracking. Approach: build boolean
routing_map_BLE via scatter_ in router, compute
num_tokens_per_expert via routing_map.sum, thread the map through
to dispatcher. Same scatter direction we recommended, done better
(computed once, reused).

API change at the boundary: router returns 4-tuple; dispatch()
takes new num_local_tokens_per_expert_E positional arg. ezpz
doesn't override these methods or unpack router output directly,
inherits cleanly. set_moe_sharding_config call into upstream's
helper picks up the new shard declaration automatically. No
ezpz replay needed.

Other 6 commits: HybridEP compile (pytorch#3360), MXFP8 consolidation
(pytorch#3473), graph_trainer DTensor fix (pytorch#3480), graph_trainer test
skips (pytorch#3432), two CI migrations (pytorch#3464, pytorch#3479). None touch ezpz.

Live 2N smoke deferred to Aurora: the project .venv/bin/python
symlinks at an Aurora-only Spack hash (python-3.12.12-5zo3wzv)
that Sunspot doesn't have (Sunspot equivalent is the nvje3vk
hash). Smoke per the journal's "always smoke after GroupedExperts
touches" lesson should run on Aurora.

Also: updated ~/.ezpz/utils.sh from bit.ly canonical (now exposes
unified ezpz_setup; backup at utils.sh-20260602-065437).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/h100.8 Trigger H100.8 CI ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants