Skip to content

Remove the molab notebooks and their generator - #394

Merged
Etherll merged 1 commit into
unslothai:mainfrom
Etherll:molab-rm
Oct 10, 2026
Merged

Etherll merged 1 commit into
unslothai:mainfrom
Etherll:molab-rm

Conversation

@Etherll

@Etherll Etherll commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Deletes the marimo (molab) notebook tree and everything that generated or tested it. The molab/ directory (149 notebooks), scripts/molab_*.py, and the tests/test_molab_*.py files are removed, along with tests/_molab_test_utils.py.

The molab section is removed from README.md. The molab/** 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 of update_all_notebooks.py, so regenerating notebooks no longer writes molab/ or edits the README.

Dependencies

  • Removes the generator optional dependency group from pyproject.toml (marimo==0.23.8, ruff==0.15.16).
  • uv.lock drops 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 -q and python update_all_notebooks.py and confirm the working tree stays clean.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 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 ⚠️ Failed 2026-10-10T00:36:42.285178Z 00bdc54 PR opened
ℹ️ 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.

@Etherll
Etherll merged commit 6e65a08 into unslothai:main Oct 10, 2026
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.
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