Skip to content

feat(inference): coordinator detects hardware silicon — retire the UnifiedMemory CPU-floor default - #1628

Merged
joelteply merged 2 commits into
canaryfrom
feat/coordinator-detect-silicon
Jun 15, 2026
Merged

joelteply merged 2 commits into
canaryfrom
feat/coordinator-detect-silicon

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Retires the TargetSilicon::UnifiedMemory production 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_default now delegates (de-dup). InferenceCoordinatorModule::with_detected_hardware() + ipc boot uses it.
  • On the RTX 5090 → 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

…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]>
@joelteply
joelteply merged commit 5871619 into canary Jun 15, 2026
@joelteply
joelteply deleted the feat/coordinator-detect-silicon branch June 15, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant