Skip to content

chore: drop the last accelerate-style device_map helpers - #6497

Merged
Qubitium merged 1 commit into
mainfrom
wl-device-map-leftovers
Nov 30, 2026
Merged

Qubitium merged 1 commit into
mainfrom
wl-device-map-leftovers

Conversation

@Qubitium

Copy link
Copy Markdown
Collaborator

Follow-up to #6473 / #6494 (tracking: #6471).

  • Remove DEVICE.to_device_map() (models/_const.py): no callers; GPT-QModel no longer builds accelerate device maps.
  • Remove p2p.accelerator_devices_from_device_map() and its unit test: no library callers.
  • tests/offload_test_utils.py: comment the intentional except FileNotFoundError: pass (github-code-quality review on Delete the dead hook-based offload machinery (#6471) #6494).

Not touched: tests/eval.py still forwards device_map — that is the external evalution engine's option, not GPT-QModel's loader.

Validation: tests/test_p2p.py 85 passed; ruff gate passes.

🤖 Generated with Claude Code

DEVICE.to_device_map() and p2p.accelerator_devices_from_device_map() have
no callers since GPT-QModel stopped consuming device maps (#6471). Also
document the intentional pass in the offload test fixture (code-quality
review on #6494).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Qubitium
Qubitium marked this pull request as ready for review November 30, 2026 13:07
@Qubitium
Qubitium merged commit a4bfb71 into main Nov 30, 2026
6 checks passed
@Qubitium
Qubitium deleted the wl-device-map-leftovers branch November 30, 2026 13:07
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.

1 participant