Repository navigation
Condense comments added since the last cleanup: core, CLI and tests - #16111
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. |
This was referenced Nov 7, 2026
This was referenced Nov 18, 2026
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.
Condenses the multi-line comments, docstrings and JSDoc / block comments that landed in the core package (
unsloth/), the CLI (unsloth_cli/) andtests/after the last cleanup (#12966, #12967, #12968, #12969, #15333, #15594). Same rules as before: every fact a reader needs stays (the reason for a workaround, version bounds, shapes and dtypes, env vars and flags, issue numbers, must / never rules, ordering and security reasons); narration, step-by-step restatement and history go. Informative one-line comments are not touched.No code changes: every changed file has an identical code token stream (and, for Python, an identical AST once docstrings are removed).
437 files, +2,397 / -4,483 lines.
Scope
Only sections of 2+ lines whose lines were mostly written after the last cleanup merged. A rewrite is applied only when it saves at least one line, so tight comments are left as they are.
Left untouched:
noqa,type: ignore,eslint-disable,@ts-expect-error,biome-ignore,shellcheck,#region, ...), PowerShell comment-based help, JSX{/* */}comments__doc__; module docstrings only where a reader analysis over the whole repo found no reader)$0/BASH_SOURCE/$PSCommandPath/__file__)scripts/lint_av_shapes.pykeys its baseline onunsloth/kernels(the cross entropy loss math, num_warps tables, fitted fused-vs-dense thresholds, GEMV config notes)install.ps1/studio/setup.ps1functions, a few Python helpers): every copy keeps the same comments, since tests compare the copies as textVerification
comment_tools.py check --strict-ext --allow-docstring-editspasses on every changed file (code tokens identical, all languages).scripts/lint_*.py(av_shapes, exec_literals, risky_loaders, workflow_triggers, no_parallel_clamp, no_duplicate_ts_imports, duplicate_definitions, backend_python_floor) andruff checkgive the same result on main and on this branch.--helpsurface (41unslothCLI commands, 40 scripts with a parser) is byte-identical to main.unsloth_clitests that read source text (41,578 tests), and every frontend node test (14,542 tests). No test fails only on the branch once ordering effects are rerun alone; the real readers this and staging CI turned up (a sidebar layout regex, the av_shapes baseline line, and the test that compares theinstall.ps1/studio/setup.ps1helpers) are handled by keeping those comments verbatim. Functions that were identical across files on main (PowerShell, shell, Python) are still identical on the branches.install.ps1,studio/setup.ps1or the changed shell test (64 files, run withpwsh/bash): all pass on main and on the branches.