You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_writer_dynamic_order: module-replacement saves fail on main (LazyTurtle-style source double) #6523
FAILED tests/test_writer_dynamic_order.py::test_dynamic_rule_order_survives_save[{dynamic0,dynamic1,dynamic2,None}-True]
FAILED tests/test_writer_dynamic_order.py::test_repeated_module_replacement_save_drops_prior_layout[False|True]
gptqmodel/models/writer.py:2533: ValueError: Module replacement save requires a checkpoint source.
Cause: stale test double
Since #6473, requantize() records the loaded checkpoint as a gptqmodel.weight_loader.session.CheckpointSession, and save_quantized_embeddings requires a source with root / weight_map (and optional index_filename). These tests still hand the writer a SimpleNamespace(model_local_path=..., _weight_map=..., _index_filename=...) shaped like the removed LazyTurtle, so the writer rightly rejects it. #6499 fixed three similar tests; this file was missed.
The product path is fine: the real requantize(...) + save_quantized_embeddings round trip passes in tests/test_requant_embed_lm_head_e2e.py.
Fix
Use a real CheckpointSession(str(source)) (single-file and indexed). PR to follow.
Activity
test(writer): drive module-replacement saves with a real CheckpointSe…