Repository navigation
Add cu129 / torch-2.13 Beaker image and move GPU CI to it - #862
Conversation
torch 2.13 dropped the cu128 wheel, so the CUDA-12 line moves to cu129. This image stays on CUDA 12.x (runs on the current H100/B200 CI driver, unlike the CUDA-13 images) while torch 2.13 bundles triton 3.7.1 and nccl 2.29.7 — which unblocks flash-linear-attention 0.5.2 and makes the RMA NCCL swap unnecessary. - Makefile: CUDA129_ARGS (torch 2.13.0, CUDA 12.9.1, nvcc 12.9.86; sm_90/100, keeps FA3) + RMA_CU129_ARGS (12.9 devel base + NVSHMEM, no NCCL override) and beaker-image-cu129 / beaker-image-cu129-rma targets. - pyproject: fla 0.4.1 -> 0.5.2. Requires the cu129/torch-2.13 image (or torch >= 2.13); the older torch 2.10/2.11 images ship triton 3.6.0 and can't run it. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
olmo-core's MXFP8 path constructs MXFP8Tensor(with_gemm_swizzled_scales=...), a kwarg added in TransformerEngine 2.12; the base image's TE 2.9 predates it, so the cu129 validation hit "QuantizedTensor.__new__() got an unexpected keyword argument 'with_gemm_swizzled_scales'". Pin TE 2.18.0 in CUDA129_ARGS so it only affects the torch-2.13 image (the torch-2.10/2.11 images may not support TE 2.18). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
On a devel/RMA base the system NCCL headers trigger TE's NCCL expert-parallel extension (csrc/extensions/ep.cpp), and TE >= 2.18 there uses ncclWindow_vidmem, which the image's NCCL (2.29.7) doesn't provide -> the TE build fails with "cannot convert 'ncclWindow_t' to 'ncclWindow_vidmem*'". olmo-core doesn't use TE's NCCL-EP (it has its own EP: symm_mem_vdev2d / nccl_rma_p2p); only TE's MXFP8 path is needed. Setting NVTE_WITH_NCCL_EP=0 skips ep.cpp while keeping MXFP8, unblocking the TE 2.18 build on the cu129/torch-2.13 image. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
transformer-engine >= 2.18 dlopens libcuda at import, so the post-build validation container needs the NVIDIA driver exposed. Plain `docker run` (no --gpus) fails with "libcuda.so.1: cannot open shared object file" even on a GPU host unless nvidia is the default runtime. Add --gpus all so the import check works on a GPU build host + nvidia-container-toolkit. (TE 2.9 didn't eager-load libcuda, which is why this passed before.) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
beaker-image-cu129-sm80 builds the CUDA-12.9 / torch-2.13 image with sm_80 added (TORCH_CUDA_ARCH_LIST="8.0 9.0 10.0", FLASH_ATTN_CUDA_ARCHS="80;90;100") so it runs on A100, for the general (non-MoE) CI jobs that fall back to A100. Non-RMA: A100 can't run the symm-mem / NVSHMEM EP kernels (sm_90+), so the RMA stack would be dead weight. The plain cu129 / cu129-rma images stay sm_90/100 (H100/B200). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ell) test_mxfp8_te_preallocated_rceil_matches_olmo compares olmo's MXFP8 quantization against TransformerEngine's, but TE MXFP8 requires compute capability >= 10.0 (Blackwell) — its quantization.py returns "Device compute capability 10.0 or higher required for MXFP8 execution." On Hopper (sm_90) TE's quantizer produces invalid (partially-zero) output while olmo's Triton kernel works, so the byte-equality assertion fails. It was gated min_cc=9, so it ran (and failed) on H100. Bump to min_cc=10 so it skips on Hopper and validates only on B200/B300. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The pinned dion (7452a58, 2026-01) is ~98 commits stale and its HSDP path deadlocks on an ALLREDUCE on torch 2.13 (test_hsdp_dion hangs -> NCCL watchdog timeout -> SIGABRT); it passes on torch 2.10. HEAD (e64832041) carries the relevant fixes: megabatch_orthogonalize_async hang (#74), per-step allreduce sync change (#75), FSDP2 padding regression (#97), and the PyTorch-2.13 / Triton-3.7.1 inductor-miscompile fix (#117). Needs a rebuild + re-run of the dion tests (single-GPU and HSDP) to confirm; a 98-commit bump may require adjusting olmo-core's dion integration. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
With dion bumped to e64832041 the HSDP deadlock is gone, but on torch 2.13 test_hsdp_dion[shard1_replica2] hits PyTorch's new static Triton launcher with "CUDA driver error: invalid argument" (static_triton_launcher._launch_kernel). Setting TORCHINDUCTOR_STATIC_CUDA_LAUNCHER=0 in the spawned worker falls back to the dynamic launcher and both HSDP variants pass. Scoped to the dion test (not image-wide) to avoid the launch-overhead cost on non-dion compiled paths. TODO: remove once dion fixes its compiled kernels for torch 2.13 (it did the analogous NorDion2 fix upstream in PR #117). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
transformer-engine >= 2.18 eager-loads cudart (and nvrtc) at import and locates them via `ldconfig -p`. On a plain-ubuntu (non-devel) base — e.g. the -sm80 and non-RMA images — those CUDA libs ship only as torch pip wheels and aren't in the linker cache, so `import transformer_engine` fails with "cudart shared object not found" (the sm80 build's smoke test). Register the wheel dirs with ldconfig, guarded to only add a lib the system doesn't already provide (devel/RMA bases have them under /usr/local/cuda) and excluding NCCL so the RMA images' pinned system NCCL isn't shadowed. Generalizes the previously B300-only nvrtc handling. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The sm80 image used the plain ubuntu base, but transformer-engine >= 2.18 loads a system libcudart at import (transformer_engine.common: _load_cuda_library_from_python -> "cudart shared object not found"). The RMA images work because their CUDA 'devel' base provides /usr/local/cuda/lib64/libcudart; the plain base doesn't (torch's wheel cudart lives under site-packages/nvidia/cuda_runtime, which TE's loader doesn't pick up). Point sm80 at the same devel base (minus NVSHMEM). Also reverts the earlier ldconfig attempt, which didn't help since TE's loader doesn't consult the linker cache. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Running the full suite on A100 (sm_80) surfaced tests that require Hopper+
features and fail there rather than skipping:
- TE fused attention needs sm_90 (Hopper); on A100 it errors ("Operation
creation failed" / cutlass window_size_left). Skip the `te` backend on cc < 9
in test_attention, test_attention_backend, test_sdpa, and
test_context_parallel_attention_ulysses.
- FP8 e4m3 (fp8e4nv) needs sm_89+/Hopper; A100 only supports fp8e4b15/fp8e5, so
test_routed_experts_refresh_marks_owned_prequant_caches_versionless fails.
Gate it to compute capability >= 9.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
test_hsdp_dion crashes on A100 under torch 2.13 (SIGABRT / CUDA driver error) even with the static-launcher workaround that makes it pass on Hopper. Gate it to compute capability >= 9 so it skips on A100 and still runs on H100/B200, with a TODO to revisit once the A100-specific dion/torch-2.13 issue is resolved. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…t it The TORCHINDUCTOR_STATIC_CUDA_LAUNCHER=0 workaround was set inside _run_hsdp_dion (the spawned worker), but that runs after the worker imports torch, and Inductor reads the flag at import — so it was a no-op in the real run (dion HSDP hung on H100: NCCL COALESCED timeout -> SIGABRT). Set it in the parent test before run_distributed_test instead; `spawn` copies the parent's os.environ into each fresh worker, which then imports torch with the flag already set. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The TORCHINDUCTOR_STATIC_CUDA_LAUNCHER env var is read once by Inductor at torch
import, so setting it inside the test (worker or parent) is a no-op — dion HSDP
kept failing on H100 ("CUDA driver error: invalid argument"). Set
torch._inductor.config.use_static_cuda_launcher = False in the worker instead;
that attribute is read at compile time, so it takes effect before the dion kernel
compiles. Targeted to this test (no image-wide launch-overhead cost).
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
… bug)
With the static launcher disabled, dion's replica-only HSDP path (num_replicas>1)
feeds a CPU tensor into a Triton kernel in its adamw/scalar update on torch 2.13
("Pointer argument cannot be accessed from Triton"). This is an upstream dion bug,
not fixable test-side. xfail(strict=False) that one parametrization on torch>=2.13
so it auto-flips to pass once dion fixes it; the sharded case is unaffected.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
dion HSDP is broken on torch 2.13 in multiple ways: the replica-only path deterministically feeds a CPU tensor into a Triton kernel in its adamw/scalar update, and the sharded path intermittently hangs on an ALLREDUCE (NCCL watchdog -> SIGABRT). It also crashes on A100. Replace the earlier per-param xfail/cc gate with a single skipif on torch>=2.13 -- a flaky hang can't be cleanly xfailed (it burns the 120s NCCL timeout and flips run-to-run). Coverage stays on torch<2.13. Also drops the now-dead static-launcher config workaround. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Switch the GPU test matrix to the new cu129/torch-2.13 images: the sm80 image (built for sm_80/90/100 on a CUDA devel base, so it runs on both A100 and H100 and imports TransformerEngine) becomes the universal image for all jobs except the MoE kernels, and the rma image (bundles NVSHMEM for the symm_mem_vdev2d EP kernels) serves the H100-only MoE kernels job. The bulk jobs keep --gpu-type h100 --gpu-type a100 so either GPU's availability works; the Hopper-only tests (te-attn, FP8) are compute-capability-gated and self-skip on A100. Attention and MoE kernels stay pinned to H100 to guarantee their Hopper coverage actually runs. Drop the separate torch-2.11 job (redundant now that the universal image covers both GPU types) and refresh the stale torch-2.9/2.10 comments. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The te-attn variant of the Ulysses context-parallel tests (attention + transformer) fails intermittently on Hopper. Mark just those two parametrizations xfail with strict=False so the attention/transformer GPU jobs stay green whether the test flakes or passes. Other te-attn parametrizations are unaffected. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Temporary: add the integration branch to the pull_request trigger so this PR runs CI. Revert before merge. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 60c52fcc71
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| # 3.7.1 (and nccl 2.29.7 + a matching torchaudio), so it works on the CUDA-12.9 / torch-2.13 image | ||
| # (see `beaker-image-cu129` in the Makefile). Requires that image (or torch >= 2.13); the older | ||
| # torch 2.10/2.11 images ship triton 3.6.0 and cannot run fla 0.5.2. | ||
| fla = ["flash-linear-attention==0.5.2"] |
There was a problem hiding this comment.
Keep the FLA extra compatible with supported default images
The project still supports torch>=2.10.0, while make docker-image, the cu128/cu130 targets, and OLMoCoreBeakerImage.stable remain on torch 2.10/2.11; the preceding comment acknowledges that FLA 0.5.2 cannot run with those versions' Triton. Because every image installs .[all], GDN experiments using the documented stable launch path receive an unusable FLA installation and fail when its kernels are loaded. Keep 0.4.1 for these environments, express an appropriate torch/Triton constraint, or update every supported default together.
AGENTS.md reference: AGENTS.md:L145-L151
Useful? React with 👍 / 👎.
| # fixes: the megabatch_orthogonalize_async hang fix (#74), allreduce-sync change (#75), FSDP2 | ||
| # padding fix (#97), and the PyTorch-2.13/Triton-3.7.1 inductor-miscompile fix (#117). The old pin's | ||
| # HSDP path deadlocks on an ALLREDUCE on torch 2.13 (works on 2.10). | ||
| DION_SHA = "e64832041d8e01989abf609c9550f6307efbff2a" |
There was a problem hiding this comment.
Update the uv Dion source alongside the Docker pin
This updates the Docker/Makefile pin to e648320..., but [tool.uv.sources] in pyproject.toml still resolves Dion to 7452a582.... Consequently, uv-based editable installs such as the repository's setup-python-env action continue using the old revision and do not receive the stated torch-2.13 distributed fixes, including the HSDP deadlock fix; update that source revision to match this pin.
Useful? React with 👍 / 👎.
fla 0.5.2's hard guard needs triton >= 3.7.1, which only torch 2.13 ships (2.10/2.11 have 3.6.0, 2.12 has 3.7.0). Add torch>=2.13.0 to the fla extra so .[all] requires it up front instead of silently installing an unusable fla on older torch. Point OLMoCoreBeakerImage.stable at the cu129/torch-2.13 image to match that floor, and drop stable_cu128 (torch 2.12+ no longer builds cu128 wheels). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
[tool.uv.sources] still resolved dion to 7452a582, so uv-based editable installs (the setup-python-env action, local pip install -e) got the old revision without the torch-2.13 fixes the Docker image bakes in. Bump it to e64832041 to match DION_SHA in the Makefile. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1fa054127d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
|
||
| # NOTE: when updating default images here, should also update images used in tests at .github/workflows/main.yml | ||
| stable = f"akshitab/olmo-core-tch{_DEFAULT_TORCH}cu{_DEFAULT_CUDA}-sm80-2026-08-25" | ||
| stable = f"akshitab/olmo-core-tch{_DEFAULT_TORCH}cu{_DEFAULT_CUDA}-sm80-2026-09-10" |
There was a problem hiding this comment.
Keep the default image off the broken Dion/HSDP stack
When an experiment uses the default Beaker image with Dion and HSDP, this promotes it from torch 2.10 to torch 2.13 even though src/test/optim/dion_test.py:98-106 now explicitly skips that combination because the replica path deterministically errors and the sharded path can hang until the NCCL watchdog aborts; the previous default was identified there as working on 2.10. Keep the default on a compatible image, or fix/disable Dion HSDP before promotion so default-launched experiments do not fail or hang.
AGENTS.md reference: AGENTS.md:L145-L149
Useful? React with 👍 / 👎.
| # (see `beaker-image-cu129` in the Makefile). torch 2.10/2.11 ship triton 3.6.0 and torch 2.12 ships | ||
| # 3.7.0, none of which satisfy the guard -- so the torch>=2.13 pin below enforces the floor. Since | ||
| # `all` pulls in `fla`, this also makes `.[all]` require torch>=2.13. | ||
| fla = ["flash-linear-attention==0.5.2", "torch>=2.13.0"] |
There was a problem hiding this comment.
Preserve torch pins in the legacy image targets
When make docker-image, beaker-image-cu128, or any cu130 target is built, the Dockerfile first installs and compiles extensions against torch 2.10/2.11, then runs pip install '.[all]'; this new torch>=2.13.0 requirement makes that second install replace the pinned torch (or fail resolution), leaving the image tag and compiled extensions inconsistent. Fresh evidence beyond the earlier review comment is that the attempted fix now adds this explicit floor while the Makefile still retains those 2.10/2.11 targets; constrain the Docker dependency install or split FLA by image family instead.
AGENTS.md reference: AGENTS.md:L130-L142
Useful? React with 👍 / 👎.
| beaker-image-cu129 : | ||
| $(MAKE) beaker-image $(CUDA129_ARGS) |
There was a problem hiding this comment.
Use a CUDA runtime base for the plain cu129 image
When make beaker-image-cu129 is used, CUDA129_ARGS selects TransformerEngine 2.18 but this target leaves BASE_IMAGE as plain Ubuntu. The newly added cu129-sm80 target documents that TE 2.18 needs a system libcudart at import and therefore uses the CUDA devel release base; the plain cu129 target lacks the same runtime and consequently fails its transformer_engine.pytorch validation or produces an unusable image. Apply the CUDA 12.9 runtime/devel base to the whole cu129 family.
AGENTS.md reference: AGENTS.md:L130-L132
Useful? React with 👍 / 👎.
gantry's --gpu-type a100 expands to every a100 cluster, including ai2/prometheus (3 nodes reserved for other budgets), which shows up in scheduling as "reserved for other users or budgets". Switch to explicit --cluster flags so jobs only target clusters the oe-other budget can actually use: ai2/jupiter + ai2/ceres (h100) for every job, plus ai2/saturn (a100) for the ones that also run on a100. This drops prometheus (reserved) and titan/b200 (no grouped_gemm build). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3e0828b313
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| # (see `beaker-image-cu129` in the Makefile). torch 2.10/2.11 ship triton 3.6.0 and torch 2.12 ships | ||
| # 3.7.0, none of which satisfy the guard -- so the torch>=2.13 pin below enforces the floor. Since | ||
| # `all` pulls in `fla`, this also makes `.[all]` require torch>=2.13. | ||
| fla = ["flash-linear-attention==0.5.2", "torch>=2.13.0"] |
There was a problem hiding this comment.
Preserve the CPU torch pin in the setup action
Fresh evidence beyond the legacy-image issue is .github/actions/setup-python-env/action.yml:14-18,47-48: the default checks and release setup first installs torch 2.10 with the CPU backend, then installs .[all]. This new floor forces that second command to replace the requested torch version, without carrying the CPU backend selection into the resolver, so CPU CI stops testing the supported 2.10 baseline and may pull the default CUDA distribution. Update the action's pin/backend handling or keep its install set independent of the FLA extra.
Useful? React with 👍 / 👎.
| @# --gpus all: transformer-engine (>= 2.18) dlopens libcuda at import, so the validation | ||
| @# container needs the driver exposed. Requires a GPU host + nvidia-container-toolkit. | ||
| @docker run --rm --gpus all olmo-core:$(IMAGE_TAG) python -c '$(DOCKER_VALIDATE_IMPORTS)' |
There was a problem hiding this comment.
Allow Docker image builds without a local GPU
When make docker-image, make ghcr-image, or make beaker-image runs on a normal CPU-only image builder, this unconditional --gpus all validation fails after the expensive build because no NVIDIA runtime/device is available; the adjacent comment explicitly confirms that new requirement. Restrict GPU-backed validation to the TE 2.18 targets or provide a non-GPU validation path so the documented local build commands remain usable.
AGENTS.md reference: AGENTS.md:L130-L142
Useful? React with 👍 / 👎.
| stable_cu130 = "akshitab/olmo-core-tch2110cu130-2026-07-28" | ||
| """ | ||
| The stable image with CUDA pinned to 13.0. | ||
| """ | ||
| stable_cu128 = f"akshitab/olmo-core-tch{_DEFAULT_TORCH}cu128-sm80-2026-08-25" | ||
| """ | ||
| The stable image with CUDA pinned to 12.8. | ||
| The stable image with CUDA pinned to 13.0 (torch 2.11). |
There was a problem hiding this comment.
Preserve the stable_cu128 enum alias
External training scripts that reference the exported OLMoCoreBeakerImage.stable_cu128 member now fail with AttributeError. A repo-wide search confirms that only the differently named tch2100_cu128 member remains, pointing to the same legacy image, so retaining stable_cu128 as an alias would avoid an unnecessary public API break while allowing stable to move to CUDA 12.9.
Useful? React with 👍 / 👎.
| # te-attn Ulysses CP is flaky on Hopper (intermittent numerical/collective | ||
| # failure); strict=False so it stays green whether it fails or passes. | ||
| pytest.mark.xfail( | ||
| reason="te-attn Ulysses CP is flaky on Hopper", | ||
| strict=False, |
There was a problem hiding this comment.
Limit the Hopper xfail to Hopper devices
On Blackwell GPUs, this unconditional mark converts every TE Ulysses failure into an expected failure even though the documented flakiness is Hopper-specific and the surrounding support checks permit compute capability 10+. The same unconditional mark appears in src/test/nn/transformer/model_test.py:390-393, so both attention and transformer regression coverage are silently disabled on B200/B300; make the xfail conditional on the Hopper capability.
Useful? React with 👍 / 👎.
The plain beaker-image-cu129 target left BASE_IMAGE as plain ubuntu, but TE >= 2.18 loads a system libcudart at import that only the CUDA devel base provides -- so that image failed its transformer_engine.pytorch validation. Move the devel base into the shared CUDA129_ARGS so all cu129 targets (plain, -sm80, -rma) inherit it, and drop the now-redundant per-target BASE_IMAGE overrides. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 18f99db6a0
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| .PHONY : beaker-image-cu129 | ||
| beaker-image-cu129 : | ||
| $(MAKE) beaker-image $(CUDA129_ARGS) |
There was a problem hiding this comment.
Add the cu129 family to the image validation matrix
When maintainers use src/scripts/beaker/run_ci_tests_on_images.py to validate the newly added images, its IMAGE_TAG_STEMS at lines 40-47 still exposes only cu128/cu130, so the default run ignores cu129 and --images cu129 is rejected by argparse. Add the cu129 variants there and update compatible_gpus() at lines 66-68 as well; otherwise cu129 would be incorrectly treated as B300-compatible even though this Makefile section limits it to H100/B200.
Useful? React with 👍 / 👎.
| # TEMP: run CI on PRs into the integration branch; revert before merge. | ||
| - akshitab/moe-v2-core |
There was a problem hiding this comment.
Remove the temporary integration-branch trigger
If this commit lands on main with this temporary entry intact, every future PR targeting akshitab/moe-v2-core will continue launching the full workflow, including the GPU Beaker matrix, consuming CI capacity for a personal integration branch. The adjacent comment explicitly says this must be reverted before merge, so remove the branch filter from the final change.
Useful? React with 👍 / 👎.
Bump --min-runtime from 0 to 15m so the GPU test jobs aren't preempted mid-run on the shared clusters (matches the 15m task timeout). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Remove the legacy CUDA-12.8 / torch-2.10 image targets and make the CUDA-12.9 / torch-2.13 config the default build (torch 2.13, TE 2.18, CUDA devel base), so `make beaker-image` builds cu129 directly and the cu129 targets no longer need a CUDA129_ARGS bundle. Bump the CUDA-13 family from torch 2.11 to 2.13 as well, so torch 2.13 is the only torch across the matrix -- which also resolves the earlier concern that `.[all]` (with fla's torch>=2.13 pin) would break on torch-2.10/2.11 images, since there are no longer any. Update build_all_images.sh and run_ci_tests_on_images.py to the cu129/cu130 (tch2130) labels. Also add a fail-fast guard: Dion + HSDP raises a clear RuntimeError on torch>=2.13 (broken upstream: CPU-tensor Triton error in the replica-only path, flaky ALLREDUCE hang in the sharded path) instead of erroring or hanging deep in the optimizer step -- since the default image is now torch 2.13. NOTE: the cu130/torch-2.13 image is a new combination and has not been built/ validated yet. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Reverts the earlier --min-runtime 15m change; back to 0. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Update stable_cu130 from the old torch-2.11 base image to the new torch-2.13 cu130 image (fa4 + rma variant), matching the Makefile bump of the CUDA-13 family to torch 2.13. Serves H100 + B200 + B300. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Add --cluster ai2/titan to the six general GPU jobs (catch-all, checkpoint, transformer, MoE, optim, integration) so they can also schedule on b200, and bump the universal sm80 image to the 2026-09-11 build (Triton ptxas-path fix for Blackwell + the symm-mem kernel block-size fix). The h100-only jobs (attention, MoE kernels) are unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0454816619
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| # The v2 MoE GPU tests need TransformerEngine + torch 2.10, which this image | ||
| # lacks, so they run in the "Test MoE kernels" job below; exclude them here. | ||
| # (The fused block/model tests moved to src/test/nn/ddp, which this job's | ||
| clusters: --cluster ai2/jupiter --cluster ai2/ceres --cluster ai2/saturn --cluster ai2/titan |
There was a problem hiding this comment.
Exclude Titan from the grouped-GEMM job
When Gantry selects ai2/titan from this allowed-cluster list, the job runs on B200 (src/olmo_core/internal/common.py:167-169), even though the immediately preceding workflow comment states that these grouped-GEMM tests cannot run on Blackwell/sm_100. The previous GPU-type constraint explicitly excluded B200, so this change makes the MoE job fail depending on which eligible cluster schedules it; remove Titan from this job's alternatives.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
This sounds right to me
|
|
||
| # NOTE: when updating default images here, should also update images used in tests at .github/workflows/main.yml | ||
| stable = f"akshitab/olmo-core-tch{_DEFAULT_TORCH}cu{_DEFAULT_CUDA}-sm80-2026-08-25" | ||
| stable = f"akshitab/olmo-core-tch{_DEFAULT_TORCH}cu{_DEFAULT_CUDA}-sm80-2026-09-10" |
There was a problem hiding this comment.
Point stable at the image exercised by GPU CI
The launch default now selects the 2026-09-10 sm80 image, while the GPU workflow at .github/workflows/main.yml:169 tests the distinct 2026-09-11 image. Because launches only install the checked-out source with pip install -e . and rely on the image for preinstalled optional/GPU dependencies, the CI results do not validate the actual default environment users receive; use the same immutable image tag in both places.
AGENTS.md reference: AGENTS.md:L145-L151
Useful? React with 👍 / 👎.
Extend --cluster ai2/titan to the remaining GPU jobs (attention, MoE kernels) so every GPU task can schedule on b200, and bump the MoE-kernels rma image to the 2026-09-11 build (ptxas + symm-mem block-size fixes). The symm_mem_vdev2d kernels now build and run on sm_100; the v1 grouped_gemm CUTLASS caveat on b200 is noted in the MoE-kernels comment. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0a4bc83d76
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| # CUTLASS kernels have no Blackwell/sm_100 build, so any grouped_gemm test that isn't | ||
| # gated to skip off sm_90 will fail on b200 with "Grouped GEMM execution not possible | ||
| # with HW"; the symm_mem_vdev2d kernels build and run on sm_100 as of the block-size fix. | ||
| clusters: --cluster ai2/jupiter --cluster ai2/ceres --cluster ai2/titan |
There was a problem hiding this comment.
Keep the MoE-kernel job off B200
This is a second affected job beyond the already-flagged Test MoE entry: if Gantry schedules Test MoE kernels (GPU) on ai2/titan, its src/test/nn/ddp/ selection includes multiple @requires_grouped_gemm tests, and that marker only checks whether the package imports rather than excluding sm_100. As the adjacent comment acknowledges, those CUTLASS kernels cannot execute on B200, so this matrix entry can fail solely based on which eligible cluster wins; remove Titan here or exclude/gate the grouped-GEMM tests on sm_100.
Useful? React with 👍 / 👎.
Point the OLMO_DDP launch preset at the new torch-2.13 cu130 fa4-rma image (akshitab/olmo-core-tch2130cu130-fa4-rma-2026-09-11), replacing the old torch-2.11 build, matching the CUDA-13 family bump. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Make the gpu_checks job's timeout-minutes per-task (default 15) and set the catch-all "Test (GPU)" job to 25m. It runs a larger slice of the suite, and the GitHub Actions step was timing out before the beaker run + image pull could finish and stream logs back. CI-side timeout only; the beaker --task-timeout is unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Make --task-timeout per-task (default 15m) and set the catch-all "Test (GPU)" job to 20m, sitting under its 25m GH Actions step timeout (leaving room for image pull + log streaming). Pairs with the earlier CI-side timeout bump so the larger catch-all slice actually has time to run. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
| branches: | ||
| - main | ||
| # TEMP: run CI on PRs into the integration branch; revert before merge. | ||
| - akshitab/moe-v2-core |
There was a problem hiding this comment.
Reminder to remove this
Raise both the GH Actions step timeout and the beaker task-timeout for the catch-all Test (GPU) job to 30m (from 25m/20m). Also revert the temporary pull_request trigger that ran CI on PRs into akshitab/moe-v2-core; the workflow again triggers only on main. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
abhishekraok
left a comment
There was a problem hiding this comment.
Review written by Claude Code (Fable 5.1) on behalf of Abhishek Rao (@abhishekraok).
Read the full diff and the CI history for the branch. The image/pin side looks right and CI is green everywhere except Test (GPU), which has not passed on any commit of this branch. Findings, most important first; inline comments carry the detail for the first five.
- Test (GPU) does not fit its budget, and raising timeouts will not fix it. Run 34648263207 (43f3fa9) landed on B200 and was killed by the 20m Beaker task-timeout at 58% of the 199 selected tests (
job has exceeded its timeout of 20m0son job 01M2953C8XJRBPR5KVXQCVQ8GY). At that pace the slice needs ~35m, past the new 30m too. The cause is thatsrc/test/nn/ddpnow executes in this job (the old sm80 image had no TE, so it skipped) and in the MoE-kernels job. Ignoringnn/ddphere restores the pre-PR split and should bring the job back under 15m. - CPU CI now tests torch 2.14, not 2.13. The
Testjob installs torch 2.10 CPU, then.[all]hits the newtorch>=2.13floor (no ceiling) and replaces it:- torch==2.10.0+cpu / + torch==2.14.0(run 34648263207). The action'storch-versioninput is now dead and the CPU suite runs a torch no image ships. - Dropping the temp trigger also dropped CI for this PR. Since 5095699 the workflow no longer fires for PRs into
akshitab/moe-v2-core, so the 30m bump has no run and none of the later commits will get one. Worth either re-targeting tomainfor a final run or verifying the Test (GPU) fix manually before merge. - A kernel change is riding in an image PR.
ROWWISE_MXFP8_Q_CHUNK_BLOCKS128 -> 32 (commit "reduce block size") quarters the per-warp staging buffer in the MXFP8 rowwise dispatch kernel and is not mentioned in the description. It looks like a ptxas 12.9 / sm_100 shared-memory workaround; it deserves a rationale and a perf number, or its own PR. OLMoCoreBeakerImage.stable(sm80 2026-09-10) is not the image CI tests (sm80 2026-09-11), despite the comment above it.- The cu130 family has no CI coverage.
stable_cu130and theolmo-ddppreset now point attch2130cu130-fa4-rma-2026-09-11, but every job runs cu129; the only validation of that image is the build-time import check. Since it is the B300 image, a manual holmes smoke run would be reassuring. - Description is stale on placement. It says bulk jobs keep
--gpu-type h100 --gpu-type a100and attention is pinned to h100; the diff uses--clusterlists and attention ran on B200 (titan) in the last two runs. Likewise the "keep this job off b200" comment on Test MoE contradicts titan being in its list, and the job passed on B200 both times, so the comment is what is wrong. - Smaller:
xfail(strict=False)on the TE Ulysses tests has no tracking issue, so a real regression there is invisible; Dion+HSDP now hard-fails on the default image (better than a hang, but worth a line in the description); stale defaultsTE_VERSION=2.9insrc/Dockerfileandtorch-version: '2.10.0'in the setup action.
Of the earlier Codex comments, most are resolved by later commits; still open are the stable-tag mismatch (5), the B200 comment (7), and three low-priority ones (stable_cu128 alias removed, no A100 entry in run_ci_tests_on_images.py, the Blackwell-unconditional xfail).
| timeout_minutes: 30 | ||
| task_timeout: 30m | ||
| clusters: --cluster ai2/jupiter --cluster ai2/ceres --cluster ai2/saturn --cluster ai2/titan | ||
| run: | |
There was a problem hiding this comment.
This job now runs src/test/nn/ddp (the new image has TE, so those tests no longer skip), which is also the bulk of the MoE-kernels job below. Run 34648263207 on B200 reached 58% before the 20m Beaker cap; ~35m at that pace, so 30m will still miss. Suggest adding --ignore-glob='src/test/nn/ddp*' here (the dropped torch-2.11 job had it) and reverting the timeout bumps.
| # (see `beaker-image-cu129` in the Makefile). torch 2.10/2.11 ship triton 3.6.0 and torch 2.12 ships | ||
| # 3.7.0, none of which satisfy the guard -- so the torch>=2.13 pin below enforces the floor. Since | ||
| # `all` pulls in `fla`, this also makes `.[all]` require torch>=2.13. | ||
| fla = ["flash-linear-attention==0.5.2", "torch>=2.13.0"] |
There was a problem hiding this comment.
No ceiling here, so the CPU Test job's uv pip install -e .[all] upgrades the torch 2.10 CPU wheel the action just installed to torch==2.14.0 from PyPI (visible in the job log: - torch==2.10.0+cpu / + torch==2.14.0). CPU CI is therefore testing a torch no image ships and the action's torch-version input is dead. torch>=2.13.0,<2.14 here, or make the action install 2.13 CPU and constrain the second install, would keep CPU and GPU CI on the same torch.
|
|
||
| # NOTE: when updating default images here, should also update images used in tests at .github/workflows/main.yml | ||
| stable = f"akshitab/olmo-core-tch{_DEFAULT_TORCH}cu{_DEFAULT_CUDA}-sm80-2026-08-25" | ||
| stable = f"akshitab/olmo-core-tch{_DEFAULT_TORCH}cu{_DEFAULT_CUDA}-sm80-2026-09-10" |
There was a problem hiding this comment.
CI tests akshitab/olmo-core-tch2130cu129-sm80-2026-09-11; this is the 09-10 build. The NOTE above asks for these to match.
| #define ROWWISE_WEIGHTED_PUT_ELEMS_PER_THREAD 32 | ||
| #define ROWWISE_MXFP8_BLOCK_SIZE 32 | ||
| #define ROWWISE_MXFP8_Q_CHUNK_BLOCKS 128 | ||
| #define ROWWISE_MXFP8_Q_CHUNK_BLOCKS 32 |
There was a problem hiding this comment.
This quarters shared_q per warp in dispatchRowsPutScaledWeighted (32*32 = 1 KiB vs 4 KiB) and multiplies the scale-group loop iterations by 4. The commit message is "reduce block size" and the PR description does not mention it. What forced it (ptxas 12.9 shared-memory limit on the sm_100 build?), and is there a before/after number for the rowwise EP path? If it is a real tuning change it probably wants its own PR.
| # We don't use it (olmo-core has its own EP: symm_mem_vdev2d / nccl_rma_p2p), and on a devel/RMA | ||
| # base it otherwise compiles against the system NCCL headers — TE >= 2.18 needs a newer NCCL | ||
| # (ncclWindow_vidmem) than the image ships, breaking the build. Only TE's MXFP8 path is needed. | ||
| ARG TE_VERSION=2.9 |
There was a problem hiding this comment.
Default is still 2.9 while the Makefile passes 2.18.0; harmless via make, but a bare docker build gets a TE that the new NVTE_WITH_NCCL_EP=0 comment above does not describe.
- Ignore src/test/nn/ddp in the catch-all Test (GPU) job: the fused MoE-v2 block tests there started executing once the image gained TE (they skipped on the old no-TE image) and also run in the MoE-kernels job, blowing this job's time budget. This restores the pre-PR split; revert the per-task timeout overrides added earlier (they treated the symptom, not the cause). - Drop the stale "keep this job off b200" comment on Test MoE: v1 dropless MoE (grouped_gemm) passes on b200 in practice, so the comment was wrong. - Re-add the temporary akshitab/moe-v2-core pull_request trigger so this PR gets a CI run for these changes (revert before merge). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The fla extra's torch>=2.13 floor had no ceiling, so `.[all]` floated the CPU CI torch up to 2.14 (an unshipped version), overriding the action's torch-version input. Add a <2.14 ceiling to the base and fla torch specs, and bump the setup-python-env default torch-version from 2.10.0 to 2.13.0 so CPU CI tests a torch the images actually ship. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ges script - Dockerfile: bump the default ARG TE_VERSION 2.9 -> 2.18.0 to match the Makefile. - beaker.py: fix OLMoCoreBeakerImage.stable to the 2026-09-11 sm80 image CI uses. - olmo_symm_mem_common.cuh: document why ROWWISE_MXFP8_Q_CHUNK_BLOCKS is 32 (sm_100 48 KB static shared-memory cap; 128 overflowed and nvlink rejected it on b200). - run_ci_tests_on_images.py: add an a100 entry (ai2/saturn) and mark cu129-sm80 as a100-compatible (it builds sm_80), so the script can target A100. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
fla >= 0.5 imports triton eagerly at import, so a CPU-only torch wheel (which doesn't bundle triton) can have fla installed yet unimportable. has_fla() returned True in that case, so the fla-gated tests ran and died on `import triton` (ModuleNotFoundError) on CPU CI. Gate has_fla() on triton availability too, so the derived skip marks (testing.utils.has_fla / FLA_MARKS / init_test._has_fla) skip these tests on CPU; they still run on GPU CI where triton is present. This surfaced after pinning CPU CI to a real torch 2.13 cpu wheel -- previously the unbounded torch>=2.13 floor forced .[all] to pull a CUDA torch wheel that bundled triton, so fla imported by accident. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3fec168f32
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| # 3.7.0, none of which satisfy the guard -- so the torch>=2.13 pin below enforces the floor. Since | ||
| # `all` pulls in `fla`, this also makes `.[all]` require torch>=2.13. The <2.14 ceiling matches the | ||
| # torch we build/test images with and stops `.[all]` from floating up to an unshipped torch (2.14). | ||
| fla = ["flash-linear-attention==0.5.2", "torch>=2.13.0,<2.14"] |
There was a problem hiding this comment.
Align the Dockerfile's default torch stack
When the Dockerfile is built directly, or by any caller that omits the Makefile arguments, its defaults still select CUDA 12.8, torch 2.10, and a plain Ubuntu release base (src/Dockerfile:3-6,46). This new .[all] constraint then upgrades torch to 2.13 only after grouped-gemm, flash-attn, and TransformerEngine were installed against 2.10, producing an ABI-inconsistent image. Fresh evidence beyond the earlier legacy-target report is that those Make targets are gone but the Dockerfile's own defaults remain stale; update those defaults to the new cu129/torch-2.13 stack.
AGENTS.md reference: AGENTS.md:L130-L132
Useful? React with 👍 / 👎.
Excluding nn/ddp wasn't enough: the catch-all Test (GPU) job still runs ~27m of mostly distributed tests and was cancelled at the 15m step timeout (reached 55%). Re-introduce per-task timeouts (default 15m) and set Test (GPU) to a 35m beaker task-timeout under a 40m GH Actions step timeout (headroom for image pull + log streaming). Other GPU jobs keep 15m. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
With the symm_mem ext now importable by pytest (PYTHONPATH fix), the MoE-kernels job actually runs the EP tests on top of kernels + nn/ddp, and was cancelled at the 15m cap (reached 80%). Give it a 30m beaker task-timeout under a 35m GH step timeout. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 34e3ecead6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| # Release-stage base. A CUDA 'devel' base (nvcc + CUDA headers) is the default: TE >= 2.18 loads a | ||
| # system libcudart at import, and the RMA extensions (symm_mem_vdev2d, nccl_rma_p2p) JIT-compile at | ||
| # runtime. The CUDA-13 targets override this with the matching cu13 devel base. | ||
| BASE_IMAGE = nvidia/cuda:12.9.1-cudnn-devel-ubuntu$(UBUNTU_VERSION) |
There was a problem hiding this comment.
Derive the release base from the requested CUDA version
When the manually dispatchable Docker workflow reaches its CUDA 13.0.2 matrix entry, it overrides CUDA_VERSION but not BASE_IMAGE, so the build stage uses CUDA 13 while the release stage now remains fixed to CUDA 12.9.1. Since the newly selected TransformerEngine explicitly loads the system CUDA runtime, the resulting CUDA-13 environment can fail to import or run after being copied into this CUDA-12 release image; derive the base from CUDA_VERSION or pass a matching base from every caller.
AGENTS.md reference: AGENTS.md:L130-L132
Useful? React with 👍 / 👎.
The job runs right up against the 15m cap (~14m57s), one slow run from being cancelled. Give it a 20m beaker task-timeout under a 25m GH step timeout. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
BASE_IMAGE was hardcoded to a CUDA-12.9 devel base, so a caller that overrides only CUDA_VERSION (e.g. the docker.yml matrix's 13.0.2 entry) built with CUDA 13 but kept a CUDA-12.9 release base -- and TE >= 2.18 loads the system CUDA runtime, so the CUDA-13 env could fail to import/run in the mismatched base. Derive BASE_IMAGE from CUDA_VERSION so the release base always matches the build stage, and drop the now -redundant explicit BASE_IMAGE in CUDA13_ARGS (CUDA_VERSION is the single source). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Summary
Adds a CUDA 12.9 / torch 2.13 Beaker image and moves GPU CI onto it. This lets
flash-linear-attentionbe un-pinned back to 0.5.2 — 0.5.2 refuses its gated-delta-net backward on Hopper unless triton ≥ 3.7.1, which comes with torch 2.13.Image
beaker-image-cu129/-cu129-rma/-cu129-sm80Makefile targets: torch 2.13.0, CUDA 12.9.1, TransformerEngine 2.18. The CUDA-13 family and the default build are also on torch 2.13 now.sm80variant builds for sm_80/90/100 on a CUDA devel base, so it runs on A100, H100, and B200, and imports TransformerEngine (the devel base provides the system libcudart TE loads at import).NVTE_WITH_NCCL_EP=0) — olmo-core doesn't use TE's NCCL-EP API, and it fails to compile against the bundled NCCL.flash-linear-attentionun-pinned to 0.5.2;dionbumped toe64832041for torch-2.13 compatibility.ROWWISE_MXFP8_Q_CHUNK_BLOCKS) is reduced 128 → 32 so it fits sm_100's 48 KB static shared-memory cap — at 128 the kernel needs ~80 KB and nvlink rejects it on B200 ("uses too much shared data"). sm_90 is unaffected.CI
sm80is the universal image for the general jobs and the attention job;rmaserves the MoE kernels job (needs NVSHMEM for thesymm_mem_vdev2dEP kernels).--clusterlists rather than--gpu-type(jupiter/ceres = H100, saturn = A100, titan = B200), so scheduling only lands on clusters this budget can use. Every GPU job can run on B200; the attention and MoE-kernels jobs run on H100 + B200; the general jobs also on A100.torchis pinned<2.14and the CPU-CI setup action defaults to torch 2.13, so CI tests a torch the images actually ship (previously.[all]'s unbounded fla floor floated CPU CI up to 2.14).Test gating for the new arch reality
Dion.build_parallelism_configalso raises a clearRuntimeErrorwhen HSDP is configured on torch ≥ 2.13, instead of erroring or hanging deep in the optimizer step.strict=False) so those jobs stay green whether the test flakes or passes.🤖 Generated with Claude Code
Tests on all GPU types: