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
[BUG] Mixed-capability refusal tells GPTQModel.load users to pass max_memory, which GPTQModel.load rejects since #6473 #6569
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.
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.
Activity
fix(select): name the GPT-QModel placement budget in the mixed-capabi…