Skip to content

eval extra broken on main: Evalution's GPTQModel engine passes device_map= which GPTQModel.load now rejects #6511

Backlog

Description

@Qubitium

Summary

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.

Impact on GPT-QModel main (c649fcb):

  • pip install gptqmodel[eval] + evalution.GPTQModel(...).build(...) -> TypeError.
  • 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

  1. Qubitium commented on Dec 1, 2026

    @Qubitium
    CollaboratorAuthor

    Fix PR: ModelCloud/Evalution#154 (draft). After an Evalution release with it, raise the eval extra pin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions