Repository navigation
fix(select): name the GPT-QModel placement budget in the mixed-capability remedy (#6569) - #6572
Merged
Merged
Conversation
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_memorybudget that names one card", andGPTQModel.loadhas rejectedmax_memorywithTypeErrorsince #6473. The text now namesplacement=Placement.budget({...}).max_memorystays, 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_kwargsaccepts the suggestedplacement=and thatmax_memorystill raisesTypeErrornamingPlacement.budget.Tests
🤖 Generated with Claude Code