Skip to content

test(torch): repair meta-move and compiled-dequant cache expectations (#5325) - #6273

Merged
Qubitium merged 1 commit into
mainfrom
fix/5325-cuda-issue
Nov 29, 2026
Merged

Qubitium merged 1 commit into
mainfrom
fix/5325-cuda-issue

Conversation

@Qubitium

Copy link
Copy Markdown
Collaborator

Part of #5325 (items A5, A14)

…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.
@Qubitium
Qubitium marked this pull request as ready for review November 29, 2026 08:16
@Qubitium
Qubitium merged commit bacce81 into main Nov 29, 2026
6 checks passed
@Qubitium
Qubitium deleted the fix/5325-cuda-issue branch November 29, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant