Repository navigation
Tests: stub _unmerge_flags_on_error in the merged hub destination harness - #14961
Conversation
|
@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. What shall we delve into next? 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". |
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! 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". |
Summary
Two save test harnesses fail on main since #14823, 18 tests in
tests/test_merged_hub_destination.py(Backend CI) and 7 intests/saving/test_save_method_lora_routing.py(every Core matrix cell):Both harnesses rebuild
unsloth_generic_saveand its neighbours fromunsloth/save.pyby AST and runs them against a stub namespace. #14823 wrapped the merge inwith relative, _unmerge_flags_on_error(streamed):(save.py:6531), and the new helper is not in that namespace. Saving itself is unaffected: insave.pythe helper is defined at module level.Change
Stub
_unmerge_flags_on_errorascontextlib.nullcontext(), next to the existinglora_relative_to_original_basestub in each harness, and list it in the routing harness's_GENERIC_SAVE_STUBBED_HELPERS, whichtest_every_helper_the_generic_save_calls_is_loaded_or_stubbedchecks. The helper only unmerges FSDP2 streamed layers when a save raises, and these fixtures never stream. Pulling in the real function instead does not work here, because the harness strips decorators and it is a@contextmanager. Test-only change.Testing
tests/test_merged_hub_destination.pyon main: 18 failed, 38 passed. With this change: 56 passed.tests/saving/test_save_method_lora_routing.pyon main: 7 failed. With this change, both files: 114 passed.