Repository navigation
Name the encoding on the tensor parallel index reads; give the PPO unwrap test _decode_graphs - #15209
Merged
Merged
Conversation
…wrap test _decode_graphs
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. Chef's kiss. 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 was referenced Oct 25, 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.
Summary
Two merges left
Repo tests (CPU, rest)red on main (for example on #15199, base0705fa58):model.safetensors.index.jsonwith a bareopen()atunsloth/models/tp_native.py:1636and:1660, and its new test does the same attests/test_tp_native_oracle.py:697. SFT: pick padded batches + block compile over padding-free when micro batches are host bound #15185 (padded batches vs padding-free) addedtests/test_padding_choice.py:267with a bareread_text(). The two encoding guards flag all four:The two
tp_native.pysites are product code, and the guard is right about them: a checkpoint index read under a non-UTF-8 Windows locale can fail or mis-decode.unsloth_unwrap_model_for_generation's generate in_decode_graphs.rl_generation()and calls_decode_graphs.release_for_training(model)on the way back to training.tests/test_ppo_trainer_patches.pylifts that function out ofrl.pywithastand never gave it_decode_graphs, so both unwrap tests stop withNameError: name '_decode_graphs' is not defined.Change
tp_native.py,test_tp_native_oracle.py,test_padding_choice.py:encoding = "utf-8"on the four reads.test_ppo_trainer_patches.py: the lifted function gets a_decode_graphswhoserl_generationis the real scope fromunsloth/models/_decode_graphs.py(loaded by file path), with entering it andrelease_for_trainingrecorded in the existingcallslist. The PPO-policy test now asserts the full order:for_inference,rl_generation,release_for_training,for_training. The plain-model test asserts generation happens inside the scope before the release.Verification
NameError. With this change the encoding guards give25 passed, andtest_ppo_trainer_patches.py,test_padding_choice.pyandtest_tp_native_oracle.pygive114 passed, 4 skipped.rl.py:_decode_graphs.rl_generation(): both unwrap tests failrelease_for_trainingbefore training: both unwrap tests failtests/test_tp_native_gloo.py::test_tp2_x_fsdp2_dp2_matches_one_process(5 cases) passes on main locally.