Skip to content

Notebooks CI: refresh the Colab oracle snapshots to the current GPU runtime - #16373

Merged
danielhanchen merged 1 commit into
mainfrom
colab-oracle-refresh-nov
Nov 1, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
colab-oracle-refresh-nov

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

The scheduled Notebooks CI run on main fails static + transitive resolve (cron / dispatch only) in its Diff Colab oracle vs committed snapshots (--strict on cron) step. It has failed on every scheduled run since at least 2026-10-26, most recently 2026-11-01 (run 41280938100):

=== pip-freeze.gpu.txt: upstream=719 snapshot=720 diff=149 (new=0 removed=1 changed=148) ===
=== apt-list-gpu.txt: upstream=1163 snapshot=1163 diff=88 (new=2 removed=2 changed=84) ===
=== os-info-gpu.txt: upstream=4 snapshot=4 diff=1 (new=0 removed=0 changed=1) ===
  (rule-bearing key drifted: python)
##[error]A rule-bearing Colab oracle drifted from its committed snapshot; run `notebook_validator.py refresh-colab --all --snapshot-dir scripts/data` to acknowledge.

The Colab GPU runtime has moved on since #14182 refreshed these snapshots on 2026-10-18. The step exists to make someone acknowledge that. Nothing in Unsloth is wrong; the committed snapshots are behind.

Change

python scripts/notebook_validator.py refresh-colab --all --snapshot-dir scripts/data, as the step asks. Only the three snapshot files change. The parts the rules and the smoke seed read:

before after
Python 3.13.15 3.13.16
torch / torchvision / torchaudio unchanged unchanged
transformers 5.18.0 5.22.0
peft 0.21.1 0.21.2
numpy 2.1.3 2.4.6
antlr4-python3-runtime 4.9.3 removed (omegaconf 2.4.0 no longer pulls it)

colab_to_cpu_pin.json needs no change this time: no CUDA wheel was renamed, and every skip entry is still in the freeze. antlr4-python3-runtime stays in its no_binary list; the seed step intersects that list with the freeze, so the entry is inert until something brings the package back.

Testing

  • colab-diff --strict against the live oracle: exit 1 before the refresh, exit 0 after.
  • tests/notebooks/test_smoke_install_contract.py, test_validator_fixtures.py and test_notebook_validator_shell_parsing.py: 303 passed, 2 skipped on the refreshed files. These include the checks that every skip entry is present in the freeze, the skip list is closed under the freeze's dependencies, and every CUDA-only wheel is skipped.
  • notebook_validator.py lint --colab-pin against unslothai/notebooks@main (d85d113) with the old and the new freeze: both give 86 errors and 6 warnings on the same rules, notebooks and cells. That lint step is advisory on cron (continue-on-error), and its backlog is unchanged.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 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-11-01T06:59:51.970922Z b9aef7d 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: b9aef7d365

ℹ️ 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
danielhanchen merged commit 9f748da into main Nov 1, 2026
@danielhanchen
danielhanchen deleted the colab-oracle-refresh-nov branch November 1, 2026 07:05
danielhanchen added a commit that referenced this pull request Nov 5, 2026
…PU runtime (#16738)

## Summary

The scheduled `Notebooks CI` run on main (run 41980876609, 2026-11-05)
fails `static + transitive resolve (cron / dispatch only)` in its `Diff
Colab oracle vs committed snapshots (--strict on cron)` step:

```
=== pip-freeze.gpu.txt: upstream=719 snapshot=719 diff=51 (new=0 removed=0 changed=51) ===
=== apt-list-gpu.txt: upstream=1163 snapshot=1163 diff=0 (new=0 removed=0 changed=0) ===
=== os-info-gpu.txt: upstream=4 snapshot=4 diff=0 (new=0 removed=0 changed=0) ===
##[error]A rule-bearing Colab oracle drifted from its committed snapshot; run `notebook_validator.py refresh-colab --all --snapshot-dir scripts/data` to acknowledge.
```

The Colab GPU runtime moved to torch 2.14.1 after #16373 refreshed these
snapshots on 2026-11-01. As before, nothing in Unsloth is wrong; the
committed snapshot is behind.

## Change

`python scripts/notebook_validator.py refresh-colab --all --snapshot-dir
scripts/data`, as the step asks. Only
`scripts/data/colab_pip_freeze.gpu.txt` changes (51 lines); the apt list
and OS info are identical. The parts the rules and the smoke seed read:

| | before | after |
|---|---|---|
| torch | 2.11.0+cu130 | 2.14.1+cu130 |
| torchvision | 0.26.0+cu130 | 0.29.1+cu130 |
| torchaudio | 2.11.0+cu130 | unchanged |
| torchcodec | 0.11.0+cu130 | 0.17.0+cu130 |
| triton | 3.6.0 | 3.8.0 |
| transformers | 5.22.0 | 5.22.1 |
| Python, peft, numpy | unchanged | unchanged |

`colab_to_cpu_pin.json` needs no change: no CUDA wheel was renamed or
removed, and every skip entry is still in the freeze. Colab keeps
torchaudio at 2.11.0 next to torch 2.14.1, so I checked that the seed's
CPU torch pins still resolve together: `torch==2.14.1`,
`torchvision==0.29.1` and `torchaudio==2.11.0` resolve from the PyTorch
CPU index.

## Testing

- `colab-diff --strict` against the live oracle: exit 1 before the
refresh, exit 0 after.
- `tests/notebooks/test_smoke_install_contract.py`,
`test_validator_fixtures.py` and
`test_notebook_validator_shell_parsing.py`: 303 passed, 2 skipped on the
refreshed file. These include the checks that every skip entry is
present in the freeze, the skip list is closed under the freeze's
dependencies, and every CUDA-only wheel is skipped.
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