Repository navigation
Remove the molab notebooks and their generator - #394
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Penguinjanator
pushed a commit
to Penguinjanator/notebooks
that referenced
this pull request
Oct 16, 2026
…nslothai#402) unsloth==2026.10.5 carries everything the forced-reinstall cell existed for (unslothai/unsloth#11440, unsloth-zoo#1310, the reentrant pin, and the chunked JSD wiring from unslothai/unsloth#12136), checked against the installed wheel rather than the tags, so the cell now only drags users off a release onto main. Removing it exposes a hole: the shared install says a bare `pip install unsloth`, which pip treats as satisfied by ANY installed version. Measured: with 2026.9.7 present, `pip install unsloth` left 2026.9.7 in place, and that release has no chunked loss. Both install variants now pass --upgrade with a minimum, Kaggle's included, and the notebook checks the capability before training. The check probes RL_FUNCTIONS["gkd_trainer"] rather than a version, because replace_common rewrites every YYYY.M.D literal in a cell to 2026.2.1, which 2026.9.7 satisfies; a version assert shipped defanged. It imports unsloth before unsloth_zoo, which refuses to import until UNSLOTH_IS_PRESENT is set. And it runs after the config and UNSLOTH_COMPILE_DISABLE cells, because unsloth_zoo/temporary_patches/common.py:43 freezes that flag at import, so an earlier unsloth import silently lost the gemma-4 workaround. The memory claim is also no longer true. Measured at the settings this notebook ships, with UNSLOTH_GKD_CHUNKED=0 as the dense control: dense 9.94 GiB peak, loss 0.375788, 49.3 s chunked 3.03 GiB peak, loss 0.375766, 63.5 s 3.3x off the peak for the same loss to 2.2e-05, at about 30% more time at batch 1; level at batch 2, and faster on gemma-4 at batch 2 (11.1 s vs 14.8 s) while dropping 51.34 GiB to 23.63 GiB. The qwen3 table row is re-measured on a free single Colab T4 (loss 0.367, 392/392 adapters, 3.36 GB, verified from the executed notebook) and the table says which rows predate the chunked loss. Rebased onto current main: the earlier branch was 25 commits behind and would have reverted four workflow files Dependabot had updated, which is also why only CodeQL ran on it. molab was removed from the repo meanwhile (unslothai#394), so that artefact is gone rather than regenerated. Verified: gemma-4 frozen compile-disable True, the guard raises AssertionError on 2026.9.7 with UNSLOTH_IS_PRESENT unset, and the notebook runs end to end at loss 0.370, 392/392 adapters, 3.28 GB. The suite's 18 failures are on the Qwen3 (4B) tool-use notebooks from unslothai#395 and reproduce unchanged on clean main.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Deletes the marimo (molab) notebook tree and everything that generated or tested it. The
molab/directory (149 notebooks),scripts/molab_*.py, and thetests/test_molab_*.pyfiles are removed, along withtests/_molab_test_utils.py.The molab section is removed from
README.md. Themolab/**trigger, the marimo/ruff install step, and the molab test steps are removed from.github/workflows/notebooks-tests-ci.yml. The molab generation step is removed from the end ofupdate_all_notebooks.py, so regenerating notebooks no longer writesmolab/or edits the README.Dependencies
generatoroptional dependency group frompyproject.toml(marimo==0.23.8,ruff==0.15.16).uv.lockdrops marimo, ruff and their 17 other dependencies (anyio, click, docutils, h11, idna, itsdangerous, loro, markdown, msgspec, narwhals, pymdown-extensions, python-multipart, pyyaml, starlette, tomlkit, uvicorn, websockets).Testing
Not run. Before merging, run
python -m pytest tests -qandpython update_all_notebooks.pyand confirm the working tree stays clean.