Repository navigation
Studio: fix stale GGUF load-marker ordering test after llama_extra_args relocation - #7252
Merged
Merged
Conversation
…location #6414 moved the llama_extra_args inheritance out of the GGUF branch in _load_model_impl into _guard_chat_load_against_training, which runs before the branch, so 'if request.llama_extra_args is None' is no longer inside the gguf_branch slice that test_load_marker_precedes_hub_guard_and_unload checks. The assertion failed on that now-missing landmark even though the guarantee it protects (the gguf_load_in_flight marker is entered before the hub-download guard and the unload) is intact. Drop the relocated landmark from the ordering so the test matches the current structure.
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the test test_load_marker_precedes_hub_guard_and_unload in test_gguf_load_cache_reuse.py by removing an assertion check for request.llama_extra_args is None and adding an explanatory comment about its relocation to _guard_chat_load_against_training. There are no review comments, so I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
VectorCipher
pushed a commit
to VectorCipher/unsloth
that referenced
this pull request
Jul 20, 2026
…location (unslothai#7252) unslothai#6414 moved the llama_extra_args inheritance out of the GGUF branch in _load_model_impl into _guard_chat_load_against_training, which runs before the branch, so 'if request.llama_extra_args is None' is no longer inside the gguf_branch slice that test_load_marker_precedes_hub_guard_and_unload checks. The assertion failed on that now-missing landmark even though the guarantee it protects (the gguf_load_in_flight marker is entered before the hub-download guard and the unload) is intact. Drop the relocated landmark from the ordering so the test matches the current structure. Co-authored-by: danielhanchen <[email protected]>
This was referenced Jul 22, 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.
#6414 relocated the llama_extra_args inheritance block out of the GGUF branch in
_load_model_impland into_guard_chat_load_against_training, which runs before the branch.test_load_marker_precedes_hub_guard_and_unloadslicesroutes/inference.pyfromif config.is_gguf:to the end and asserts an ordering that still listsif request.llama_extra_args is Noneas a landmark, which now sits ahead of that slice, sostr.indexraisesValueError: substring not found.The Backend tests job only runs on pull_request, not on push to main, so main went red on this test without surfacing on the default branch. It fails the (Python 3.10) Backend tests job on every open PR whose merge picks up the relocation.
The guarantee the test protects is intact: the
gguf_load_in_flightmarker is entered before the hub-download guard and the unload. This drops the relocated landmark from the ordering so the assertion matches the current structure, and adds a short comment noting where the inheritance now runs.Verified locally:
test_gguf_load_cache_reuse.py::TestLoadHubDownloadExclusion-> 10 passed.