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
GPTQModel engine passes device_map= to GPTQModel.load, which GPT-QModel main now rejects (TypeError) #153
Since ModelCloud/GPTQModel#6473 (Accelerate removal, now on GPT-QModel main), GPTQModel.load rejects every Accelerate placement keyword, including device_map=None, and takes placement= instead:
TypeError: GPTQModel.load() does not accept `device_map`: GPT-QModel does not consume Accelerate's placement arguments. Use placement= (gptqmodel.weight_loader.Placement).
So every evalution.GPTQModel(...).build(Model(path=...)) call fails before loading anything when paired with current GPT-QModel. Evalution 0.0.17 through 0.0.20 (latest on PyPI) and main (a00fdc7) are all affected.
Reproduce
GPT-QModel main (c649fcb5f), Evalution 0.0.20, any quantized checkpoint:
importevalutionengine=evalution.GPTQModel(device="cuda:0")
engine.build(evalution.Model(path="<any GPTQ checkpoint>"))
# TypeError: GPTQModel.load() does not accept `device_map` ...
GPT-QModel's own eval-backed tests (tests/eval.py consumers such as tests/test_simple_quant.py, tests/test_requant_embed_lm_head_e2e.py) fail the same way.
Expected
Default (device_map=None) loads with device= only. An explicit device_map is translated to placement= when GPTQModel.load accepts it ("auto" -> "accel:auto"; device strings and module-path mappings pass through), and older GPT-QModel releases without placement= keep receiving device_map.
Activity
fix(gptqmodel engine): stop passing device_map= to GPTQModel.load; us…