Repository navigation
Risky loader baseline: record the FSDP2 export's store handoff - #15379
Merged
Merged
Conversation
Member
Author
|
@codex review |
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. |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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.
Problem
tests/security/test_lint_risky_loaders.py::test_the_tree_matches_the_baselineand theSource lintrisky-loader step fail on main since #15353, so every PR based on it inherits the failure (#15374 today):#15353 added
_share_from_writer. The export's writer rank pickles a small result into the job's default c10d store: the RAM refusal string, or("ok", run())/("error", message). The other ranks wait on that key and unpickle it.Product or test
Neither is wrong; the call site just was not recorded. The bytes come only from a peer rank of the same job, through the job's own c10d store, under an
unsloth_fsdp2_export_*key. Anyone who can write that store already controls the job's collectives. A format change would be a product change:run()returns whatever the export returns, so JSON would need its own handling for each exporter. The lint's prescribed path for a trusted input is a reviewed baseline entry, and that is what this does.Fix
python scripts/lint_risky_loaders.py --update, which added exactly one entry (unsloth/models/fsdp2_save.py,pickle.loads,count: 1) and changed nothing else.Verification
python scripts/lint_risky_loaders.py:ok: 109 risky loader call site(s), all recorded(failed on main).tests/security/test_lint_risky_loaders.py: 46 passed.pickle.loadstofsdp2_save.pyis still reported as not in the baseline, because the entry is pinned tocount: 1.