Skip to content

fix(select): name the GPT-QModel placement budget in the mixed-capability remedy (#6569) - #6572

Merged
Qubitium merged 1 commit into
mainfrom
fix/mixed-capability-remedy-6569
Dec 1, 2026
Merged

Qubitium merged 1 commit into
mainfrom
fix/mixed-capability-remedy-6569

Conversation

@Qubitium

@Qubitium Qubitium commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes #6569

When a quantized placement spans different GPU compute capabilities, kernel selection refuses it (#4875). The refusal's remedy told users to pass "a max_memory budget that names one card", and GPTQModel.load has rejected max_memory with TypeError since #6473. The text now names placement=Placement.budget({...}). max_memory stays, scoped to Transformers' from_pretrained, because the HF bridge shares this message.

What Changed

  • gptqmodel/utils/importer.py _validate_selector_device_families: default remedy text only. Control flow is unchanged, so there is no diagram.
  • tests/test_default_device_mixed_capability_4705.py: the remedy test asserts the new wording. A new test checks that _reject_accelerate_placement_kwargs accepts the suggested placement= and that max_memory still raises TypeError naming Placement.budget.

Tests

pytest -q tests/test_default_device_mixed_capability_4705.py
# origin/main: 1 failed, 6 passed (AssertionError: 'placement=Placement.budget(' not in the old message)
# this branch: 7 passed

# real RTX 5090 (sm_120) + RTX 4090 (sm_89) visible:
pytest -q tests/test_default_device_mixed_capability_4705.py tests/test_quantize_device_sequence_4875.py \
  tests/test_hf_bridge_mixed_capability_5084.py tests/test_default_device_capability_group_map_4734.py \
  tests/test_budget_kernel_devices_4632.py        # 32 passed
# GPTQModel.load(ci-4bit, device=("accel:0","accel:1")) -> ValueError with the new remedy
# GPTQModel.load(ci-4bit, placement=Placement.budget({"accel:1": "20GiB"})) -> loads on cuda:1, generate OK

uvx [email protected] check gptqmodel ... tests setup.py   # All checks passed!

🤖 Generated with Claude Code

…lity remedy (#6569)

The refusal for a quantized placement spanning GPU compute capabilities
told users to pass a max_memory budget, which GPTQModel.load rejects
with TypeError since #6473. Name placement=Placement.budget({...}) and
keep max_memory scoped to the Transformers bridge that shares the text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Qubitium
Qubitium marked this pull request as ready for review December 1, 2026 03:59
@Qubitium
Qubitium merged commit e3c205a into main Dec 1, 2026
6 checks passed
@Qubitium
Qubitium deleted the fix/mixed-capability-remedy-6569 branch December 1, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant