Skip to content

[BUG] Mixed-capability refusal tells GPTQModel.load users to pass max_memory, which GPTQModel.load rejects since #6473 #6569

Done

Description

@Qubitium

Summary

On a host whose GPUs have different compute capabilities, loading a quantized model across them is refused. That refusal is correct and documented (#4875). But the remedy in the error message tells the user to pass max_memory, which GPTQModel.load has rejected with TypeError since #6473.

Reproduction (RTX 5090 sm_120 + RTX 4090 sm_89 visible)

from gptqmodel import GPTQModel
GPTQModel.load("ModelCloud/Llama-3.2-1B-gptqmodel-ci-4bit", device=("accel:0", "accel:1"))
ValueError: Quantized kernel selection does not support a device map spanning different GPU compute capabilities: cuda:0=12.0, cuda:1=8.9. Place the model on one capability group with `device="cuda:N"`, a `max_memory` budget that names one card, or a `CUDA_VISIBLE_DEVICES` list.

Following that advice:

GPTQModel.load(..., max_memory={0: "20GiB"})
TypeError: GPTQModel.load() does not accept `max_memory` ... Use placement=Placement.budget({...})

Expected: the remedy names the GPT-QModel argument (placement=Placement.budget({...}) with one card, or device="accel:N"). It may still mention max_memory for the Transformers from_pretrained bridge path, which shares this message.

Location: gptqmodel/utils/importer.py, _validate_selector_device_families default remedy.

Environment: GPT-QModel main a65c46132, torch 2.15 + CUDA 13.2, transformers 5.23.0.

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