Repository navigation
GGUF-packed follow-ups: utf-8 for the dense writer JSON, the real packed check in the loader fixture, hint check per failure path (red on main since #20022) - #20078
Merged
Conversation
…acked check in the loader fixture, hint check per failure path (red on main since #20022)
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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. Keep it up! 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.
Summary
Three more checks in
Repo tests (CPU, rest)have been red onmainsince #20022 (Train LoRA on packed GGUF weights). They account for 22 failures, most recently on #20071's staging run. Each one was judged separately:test_runtime_text_encoding.py::test_shipping_code_names_an_encodingunsloth/models/gguf_packed.py:1237and:1243openmodel.safetensors.index.jsonandconfig.jsonfor writing without an encodingutf-8, so the Windows locale cannot decide.test_optimized_precision_conflicts.py(20 cases)from_pretrained reached from .gguf_packed import check_gguf_packed_request: stub it in the loader fixtureFastLanguageModel.from_pretrainednow validates agguf_packedrequest at its entry point, which is correct. The fixture's relative-import guard did its job and named the missing binding.test_offloaded_parameter_hint.py::test_both_save_failure_paths_use_itassert 3 == 2Changes
unsloth/models/gguf_packed.py: both JSON writes in the dense writer passencoding = "utf-8".check_gguf_packed_request, compiled from source likegguf_drop_bitsandbytes, instead of a stub._real_functionnow brings along the module-level literal constants the function reads (GGUF_PACKED_KWARGhere). Without that, the real function would fail on aNameError.test_the_real_gguf_packed_check_runs_at_the_entry_point:gguf_packed = Truewithout agguf_fileis refused with aValueErrorbefore any config probe or dispatch. This proves the real check runs, rather than a stub that always says "off".test_every_save_failure_path_uses_itwalks everyraise RuntimeError(f"Failed to save...")insave.py. It requires each message to include_offloaded_parameter_hint(...), and requires both the merge and the plain-save messages to still exist. A new failure path then has to carry the hint, whatever the count.Verification
mainthese three files have 22 failures. With this change they pass (44 passed).lambda kwargs, **flags: Falsein the fixture failstest_the_real_gguf_packed_check_runs_at_the_entry_point.encoding = "utf-8"is the state onmain, which the encoding guard reports.