Skip to content

CI: raise the Core zoo job cap from 35 to 50 minutes - #16260

Merged
danielhanchen merged 2 commits into
mainfrom
ci-core-zoo-cap-50
Oct 31, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
ci-core-zoo-cap-50

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Every Core zoo cell in consolidated-tests-ci.yml is now being cancelled at its 35 minute job cap, on unrelated PRs, with the unsloth_zoo suite at 99%. It is the same failure #14240 fixed at 25 minutes: the suite has grown past the cap.

A passing cell from today, for scale: the zoo pytest -n 4 step reported 14494 passed, 2462 skipped ... in 1770.53s (0:29:30), and the whole job ran 34m57s, three seconds under the cap.

Change

  • Core zoo job: timeout-minutes: 35 -> 50, comment updated with the current numbers.
  • Unchanged: the 5 minute PYTEST_TIMEOUT per test, which is what names and stack-dumps a genuine hang. The job cap only bounds the total.

Evidence

Staging Core runs since 2026-10-30 21:28 UTC, Core zoo cells by combo:

PR HF=4.57.6 HF=default HF=latest
#16041 failure cancelled cancelled
#16249 cancelled cancelled cancelled
#16250 cancelled cancelled cancelled
#16257 cancelled cancelled cancelled
#16255 (run 1) cancelled success (34m57s) success (28m46s)
#16255 (run 2) success cancelled cancelled

The cancelled cells end with ##[error]The operation was canceled. while the suite is printing its last progress lines (98-99%).

Tests

tests/studio/test_zoo_suite_parallel_isolation.py, test_workflow_guards_run_unfiltered.py and every test that reads consolidated-tests-ci.yml: 267 passed.

Not proven

  • This PR's own CI run is the first measurement at the new cap; whether 50 minutes leaves enough headroom as the suite keeps growing is not known.

@danielhanchen danielhanchen self-assigned this Oct 31, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T06:09:13.438372Z 3eca847 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 3eca847ab0

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen

Copy link
Copy Markdown
Member Author

The Core zoo (HF=4.57.6 + TRL<1) red on this PR's staging run is test_sequence_tiling_compile.py::test_frozen_input_lora[None-inductor] hitting the 300 s per-test timeout. That is a separate limit from the job cap this PR raises. The inductor cases in that file (unslothai/unsloth-zoo#2277) compiled up to 32-tile graphs to C++ and took 80 to 146 s each even on dedicated cores, so they account for a good part of the Core zoo slowdown. unslothai/unsloth-zoo#2318 trims their sweep to three buckets, about 440 s down to about 60 s for the four cases, while aot_eager still sweeps all of them. With that in, 50 minutes may be more headroom than the job needs.

danielhanchen added a commit to unslothai/unsloth-zoo that referenced this pull request Oct 31, 2026
…2318)

`tests/test_sequence_tiling_compile.py::test_frozen_input_lora[None-inductor]`
hit the 300 s pytest timeout in the unsloth `Core zoo (HF=4.57.6 +
TRL<1)` leg (torch 2.10 CPU, 4 xdist workers), on a staging run for
unslothai/unsloth#16260. That PR raises the Core zoo job cap from 35 to
50 minutes. These inductor cases are a large part of why the job got
that long.

### Why

`test_dense_mlp` and `test_frozen_input_lora` sweep all of `SEQS` (1000
to 32768 rows), which is six tile buckets: 1, 2, 4, 8, 16, 32 tiles.
Each bucket is a recompile, and under inductor each recompile generates
and builds C++ for a graph with that many checkpointed tiles. Timed
alone on 4 dedicated cores with a cold inductor cache:

| case | before | after |
|---|---|---|
| `test_dense_mlp[None-inductor]` | 146.5 s | 32.3 s |
| `test_frozen_input_lora[None-inductor]` | 122.7 s | 13.0 s |
| `test_dense_mlp[True-inductor]` | 88.7 s | 4.8 s |
| `test_frozen_input_lora[True-inductor]` | 79.8 s | 6.7 s |

On a hosted runner shared with three other xdist workers, the first two
are well past 300 s.

### Change

The inductor parametrizations sweep `SEQS[:6]` (1000 to 4096 rows,
buckets 1, 2, 4). That still covers a reused bucket and two bucket
changes, along with inductor's lowering of the checkpoint hops and its
numerics. The aot_eager parametrizations still sweep all of `SEQS`. The
checks `_check` makes (recompiles at most buckets, zero graph breaks, at
least two checkpoint hops) read the Dynamo graph handed to the backend,
so they do not depend on which backend compiles it.

### Verification

- The 8 `test_dense_mlp` / `test_frozen_input_lora` cases pass. The
aot_eager ones still report `buckets=6` and hops up to 32, and the
inductor ones report `buckets=3`.
- Sabotage: a `torch._dynamo.graph_break()` added at the top of
`tiled_call` fails all four short-sweep inductor cases.
@danielhanchen
danielhanchen merged commit 0bb1a56 into main Oct 31, 2026
@danielhanchen
danielhanchen deleted the ci-core-zoo-cap-50 branch October 31, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant