Repository navigation
test(torch): repair meta-move and compiled-dequant cache expectations (#5325) - #6273
Merged
Merged
Conversation
…5325) A5 was a product defect, not a stale test: a meta move ran the int4pack inverse (and its aten::equal identity check) against meta operands until #5533 materialized the snapshot from its shape/dtype descriptor. A14 was realigned by #5564, and the compiled entry now stages its operands outside the traced graph (#5955), so the caches are published again. Both items are green at main 2d3261d. Extend the device-move test to assert every checkpoint operand's shape and dtype is restored, not just qweight. Restore the cache expectations the A14 tests are named for: the compiled dequant publishes the g_idx cache on the compute device, load_state_dict clears both metadata caches, and a full forward still matches F.linear after the g_idx offload.
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.
Part of #5325 (items A5, A14)