Repository navigation
test(norm): pass a CheckpointSource to the module-replacement writer (#6545) - #6546
Merged
Merged
Conversation
…6545) #6473 moved _save_module_replacement_safetensors onto CheckpointSource (root, weight_map); the test still built the old turtle namespace. Fixes #6545 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 #6545
#6473 made
_save_module_replacement_safetensorsread the source checkpoint through aCheckpointSource(root,weight_map).test_packed_rmsnorm_tuning_save_reload_preserves_quantized_tensorsstill passed the pre-#6473SimpleNamespace(model_local_path, _weight_map)and hitValueError: Module replacement save requires a checkpoint source.The public caller (save_quantized_embeddings) already passes a realcheckpoint_source.What Changed
CheckpointSource.from_checkpoint(model_local_path=..., config=None). Its assertions are unchanged: tuned norm differs, packedproj.*tensors are bit-identical, reload round trip.Tests
Lint:
uvx [email protected] check ... tests ...: All checks passed. Environment: torch 2.15.0+cu132, Python 3.14, CPU.Measured Impact
Not applicable (tests only).
Model Support / Module Plan
Not applicable.
AWQ onboarding safety
Not applicable.
Logic Flow Documentation
Not applicable.
Review Requirements
Kernel Accuracy Requirements
Not applicable.
Notes
Found by the release-readiness sweep on
origin/mainc649fcb.🤖 Generated with Claude Code