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
eval extra broken on main: Evalution's GPTQModel engine passes device_map= which GPTQModel.load now rejects #6511
After #6473, GPTQModel.load raises TypeError for any Accelerate placement keyword, including device_map=None. Every released Evalution (>=0.0.17 is our eval extra pin; 0.0.20 is latest) calls GPTQModel.load(..., device_map=config.device_map, ...) unconditionally in evalution/engines/gptqmodel_engine.py, so evaluating any checkpoint by path through Evalution's GPTQModel engine fails before loading.
tests/eval.py::evaluate with a model path -> TypeError, so every eval-backed test fails, e.g. tests/test_simple_quant.py::test_simple_quant, tests/test_requant_embed_lm_head_e2e.py::test_requantize_both_save_reload_and_generate, and the tests/models/ accuracy suite.
evalution/engines/gptqmodel_engine.py:214: in load_gptqmodel_runtime
wrapper = gptqmodel_module.GPTQModel.load(
gptqmodel/models/auto.py:987: in load
_reject_accelerate_placement_kwargs("GPTQModel.load", kwargs)
E TypeError: GPTQModel.load() does not accept `device_map`: GPT-QModel does not consume Accelerate's placement arguments. Use placement= (gptqmodel.weight_loader.Placement).
Owner / fix
The caller (Evalution) owns the integration: ModelCloud/Evalution#153, fix PR linked there. Per the weight-loader contract GPT-QModel must keep rejecting device_map, so no GPT-QModel code change is proposed. Once an Evalution release ships the fix, the eval extra pin in pyproject.toml (Evalution>=0.0.17) should be raised to that release, which is a release blocker for the eval extra.
Verification
With the Evalution fix on PYTHONPATH, tests/test_requant_embed_lm_head_e2e.py passes on an RTX 4090 (1 passed, 490 s); on unmodified Evalution 0.0.17 it fails in 5 s with the TypeError above.
Activity
Qubitium commentedon Dec 1, 2026
Fix PR: ModelCloud/Evalution#154 (draft). After an Evalution release with it, raise the
evalextra pin.