Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog.d/cluster-model-approvals.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### A Mac pair keeps its DevNet cluster approval across provider updates

- The coordinator can serve a model approval: a cluster approval that names the model, its prefill schedule and its serving terms, but no build. The pair takes it when its model, schedule and artifact are the saved setup's, and it computes no build facts for it. Entries pinned to one build are matched as before.
- After an update, the re-adopted setups find the same model approval at the next check, so the pair is registered with the coordinator again with no new entry from the operator.
- Under a model approval each Mac registers its plan with its own runtime (worker, capability, resource policy and profile), and a session starts only with that runtime. Each Mac hashes its worker against its saved setup and its metallib and resource library against the digests it took when it registered.
- When the pair set a model approval aside because its parts kept failing, the next update can take it again. The same build does not take it again.
12 changes: 11 additions & 1 deletion docs/architecture/inference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2887,7 +2887,13 @@ a share of every layer, and one fewer than the members otherwise, as the
coordinator requires. A setup with unequal tensor-parallel shares is refused at
registration, because the provider does not encode the plan's
`tensor_parallel_shares` yet: a plan without them is an equal split to the
coordinator. For a cluster that serves through Darkbloom, the onboarding's start
coordinator. Under a model approval, which names no build, the plan also carries
the member's own runtime block (`ClusterPlan.runtime`: worker, capability,
resource policy and profile from its saved setup,
`DistributedInstalledNativeStart.runtimeBlock`), so both members must run the
same runtime to register the same plan; the start must carry that block
([model approvals](../reference/configuration.md#model-approvals)). For a
cluster that serves through Darkbloom, the onboarding's start
line says it serves its owner's requests, and public requests where Darkbloom
has qualified the model and split
(`provider-swift/Sources/ProviderCore/Inference/Distributed/Onboarding/ClusterOnboardingFlow.swift`);
Expand Down Expand Up @@ -5231,6 +5237,10 @@ that no person types them
value, which the member and its owner compare with the installed approval
(`NativePairMemberPolicy.require`).

A model approval needs none of these facts: the member takes the same values
from its own saved setup and files
([model approvals](../reference/configuration.md#model-approvals)).

Code map: `provider-swift/Sources/ProviderCore/Config/ClusterRuntimeApprovalFacts.swift`
(`ClusterRuntimeApprovalFacts`),
`provider-swift/Sources/ProviderCore/Inference/Distributed/Installed/DistributedInstalledFiles.swift`,
Expand Down
17 changes: 10 additions & 7 deletions docs/provider/two-mac-cluster.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Two Macs as one provider (guided setup)

> Last updated: 2026-10-29
> Last updated: 2026-10-30

Two Apple Silicon Macs joined by one Thunderbolt 5 cable serve a model together:
each Mac holds part of its layers, and the pair serves as one provider. Setting
Expand Down Expand Up @@ -112,18 +112,21 @@ start fails and says why. To serve without any coordinator, use
## Registered with the coordinator as a cluster member (DevNet)

When the coordinator's operator approval file holds a cluster approval for this
pair's installed app and model (DevNet only), the pair registers with the
coordinator by itself. Nothing is typed and no file is copied. Production and
staging serve no approvals, and the pair serves as described above. The pair
pair's model (DevNet only), the pair registers with the coordinator by itself.
Nothing is typed and no file is copied. Production and staging serve no
approvals, and the pair serves as described above. The pair
serves its owner's own requests, and public requests too once the coordinator's
operator has turned public cluster routing on and qualified the pair's model and
split ([serving a pair](../reference/cluster-control-protocol.md#serving-a-pair)).
A tensor-parallel pair registers like a pipeline one; its plan names no cut.

1. Run `darkbloom cluster` and choose a model, as in [the steps](#the-steps-once).
After the Test stage passes, the leader reads the approvals the coordinator
serves (`GET /v1/cluster/approvals`) and takes the one whose model, prefill
schedule and eight digests match this pair's installed app and model. Each
serves (`GET /v1/cluster/approvals`) and takes the one whose model and
prefill schedule match this pair's setup. A build-pinned approval must also
match the installed app's digests. A model approval names no build and must
match only the model's artifact, so it stays valid after an update
([model approvals](../reference/configuration.md#model-approvals)). Each
Mac checks it against its own files, and both Macs save it, or neither
does. Both Macs then start their parts again as cluster members.
2. Read the ready screen. Instead of the API line it says:
Expand All @@ -135,7 +138,7 @@ A tensor-parallel pair registers like a pipeline one; its plan names no cut.
There is no local API in this mode. `darkbloom cluster` status shows the
same line.

An approval ends at its `not_after` (14 days after the operator added it). The
An approval ends at its `not_after`, which the operator sets. The
leader asks again at each start of its cluster service, after each Darkbloom
update and every minute while the pair is registered, and takes a later
matching approval when the saved one ends within a day. A Mac whose approval
Expand Down
Loading
Loading