Repository navigation
fix(ports): record #6473's gemma3n/gemma4 hand edits as vendor patches (#6525) - #6526
Merged
Merged
Conversation
#6525) #6473 replaced the Accelerate hook import in the vendored gemma3n and gemma4 modeling files with gptqmodel.weight_loader.add_hook_to_module without recording the edit, so MANIFEST.json still pinned both files as verbatim and a re-vendor would restore the Accelerate import. Re-record with vendor_transformers_ports.py --all --record-patches. Fixes #6525 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
Fixes #6525
#6473 hand-edited the vendored
native/gemma3n/modeling_gemma3n.pyandnative/gemma4/modeling_gemma4.py(Accelerate hook import ->gptqmodel.weight_loader.add_hook_to_module) but did not record the edits as vendor patches or updatenative/MANIFEST.json.tests/test_native_vendor_manifest.pyis red on main, and a re-vendor (--all --refresh) would restorefrom accelerate.hooks import add_hook_to_modulein both families.What Changed
scripts/vendor_patches/gemma3n.patchandscripts/vendor_patches/gemma4.patch, generated by the documented--record-patchesflow.native/MANIFEST.json: both files move fromverbatimtopatchedwith the committed sha256. No other entries changed.Tests
tests/test_native_vendor_manifest.pyis the regression and is red on main.Lint:
uvx [email protected] check gptqmodel ... tests setup.py: All checks passed.Environment: transformers 5.23.0 (installed wheel as generator source), Python 3.14.
Measured Impact
Not applicable: metadata-only change, no runtime behaviour change.
Model Support / Module Plan
Not applicable: no
MODEL_MAPor definition changes.AWQ onboarding safety
Not applicable.
Logic Flow Documentation
Not applicable: no control-flow change.
Review Requirements
--record-patchesworkflow.Kernel Accuracy Requirements
Not applicable.
Notes
Found by the release-readiness test sweep on
origin/mainc649fcb.🤖 Generated with Claude Code