Repository navigation
test: stop passing device_map to build_shell_model (AWQ fold inventory red since #6473) - #6496
Merged
Merged
Conversation
…y red since #6473) #6473 removed Accelerate and the `del init_kwargs["device_map"]` in build_shell_model, so a `device_map` kwarg now reaches the model class __init__ and raises TypeError. Production callers never pass it (the public API rejects device_map), but four test helpers still did: - tests/module_tree/awq_fold_inventory.py built every shell with device_map=None, so `awq_fold_inventory.py --check` errors on all 210 types and test_awq_fold_inventory.py errors on every node; the AWQ refactor guard was off on main. - three solar_open/solar_open2 tests passed device_map={"": "cpu"}. Drop the argument; shells are built on meta either way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Main is red since #6473 (Remove accelerate). That PR removed
del init_kwargs["device_map"]frombuild_shell_model, so adevice_mapkwarg now reaches the model class__init__and raisesTypeError: ...__init__() got an unexpected keyword argument 'device_map'.Production callers never pass
device_maphere, because the public API now rejects it (_reject_accelerate_placement_kwargs). Four test helpers still did:tests/module_tree/awq_fold_inventory.pybuilt every shell withdevice_map=None. As a result:python tests/module_tree/awq_fold_inventory.py --checkreports errors for all 210 types;tests/module_tree/test_awq_fold_inventory.pyerrors on every node.This is the guard every AWQ planner refactor relies on, and it has been off on main since Remove accelerate: explicit WeightLoader for weight loading, placement and offload (#6471) #6473.
The three solar tests passed
device_map={"": "cpu"}:tests/test_solar_open2_local_port.py::test_package_selection_ignores_checkpoint_python, and the lazy-turtle tests intests/models/test_solar_open.pyandtests/models/test_solar_open2.py.What Changed
device_mapargument is dropped from those fourbuild_shell_modelcalls. Shells are built on meta either way.Tests
bash format/check.shpasses.Measured Impact
Not applicable (test-only).
Model Support / Module Plan
Not applicable: no definition change.
AWQ onboarding safety
Not applicable: no AWQ grouping/search/replay/fold change. This restores the AWQ fold inventory check itself.
Logic Flow Documentation
Not applicable: no control-flow change.
Review Requirements
Kernel Accuracy Requirements
Not applicable.
Notes
None.
🤖 Generated with Claude Code