Repository navigation
feat(inference): coordinator detects hardware silicon — retire the UnifiedMemory CPU-floor default - #1628
Merged
Conversation
…ifiedMemory CPU-floor default Joel flagged the InferenceCoordinatorModule (#1619) shipping `TargetSilicon::UnifiedMemory` as the production default — the CPU/Mac-floor anchoring "GPU or bust" forbids. This wires the coordinator to the governor's existing hardware detection (Mac's #1335 hw_probe + classify_hardware, already on canary) so the prod default FOLLOWS the hardware instead of a hardcoded floor. - `coordinator_silicon_for(GovernorSilicon) -> TargetSilicon` — the seam between governor classification and the lane scheduler: AppleM → UnifiedMemory; NvidiaCuda/AmdRocm/IntelVulkan → Gpu; None → Cpu (honest, not a silent GPU pretense). (Per Mac's #1618 review: this bridge is the net-new code I own at the seam, since the two TargetSilicon enums don't share variants.) - `CoordinatorConfig::for_silicon(silicon)` — canonical floor-shape builder retargeted to a silicon class; `realistic_floor_default()` now delegates to `for_silicon(UnifiedMemory)` (de-dup); `detected()` = probe_hardware_profile → classify_hardware → translate → for_silicon. - `InferenceCoordinatorModule::with_detected_hardware()` (new production constructor) + ipc/mod.rs boot uses it. On the RTX 5090 the coordinator now targets `Gpu`; on Apple Silicon, `UnifiedMemory`; GPU-less, `Cpu`. One-shot startup probe (a few file reads + per-backend FFI) — acceptable per CONCURRENCY-STYLE-GUIDE. Per-tier budgets stay the realistic-floor numbers until the governor's policy-file slice refines them; this fixes the SILICON label, which is what Joel called out. Validated rust:1.95 (continuum-core --lib): 6 tests pass (translation maps discrete GPU→Gpu not floor / AppleM→UnifiedMemory / None→Cpu; for_silicon targets one silicon end-to-end; detected() self-consistent), whole lib compiles (no inference→governor cycle), CARGO_EXIT=0. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…t comment (reviewer nits, #1628) Co-Authored-By: Claude Opus 4.8 <[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.
Retires the
TargetSilicon::UnifiedMemoryproduction default Joel flagged on the InferenceCoordinatorModule (#1619). Wires the coordinator to the governor's existing hardware detection (Mac's hw_probe + classify_hardware, already on canary) so the prod default follows the hardware, not a hardcoded CPU/Mac floor.coordinator_silicon_for(GovernorSilicon) -> TargetSilicon— the governor→scheduler seam (AppleM→UnifiedMemory, NvidiaCuda/AmdRocm/IntelVulkan→Gpu, None→Cpu). This is the bridge Mac's feat(governor): TierConfig + tier_configs_for — first realization slice (priority #3) #1618 review identified as net-new code I own (the two TargetSilicon enums don't share variants).CoordinatorConfig::for_silicon/detected();realistic_floor_defaultnow delegates (de-dup).InferenceCoordinatorModule::with_detected_hardware()+ ipc boot uses it.Gpu; Apple Silicon →UnifiedMemory; GPU-less →Cpu.One-shot startup probe. Per-tier budgets stay floor numbers until the governor policy-file slice; this fixes the silicon label (Joel's flag). 6 tests pass, CARGO_EXIT=0.
🤖 Generated with Claude Code