Repository navigation
cluster: Qwen3.8-27B pairs decode with the speculative assistant through Darkbloom (parity evidence; served speeds keyed by how they were served; includes #1718) - #1819
Merged
Conversation
…eclares it A build can now declare Qwen3.8-27B's resident speculative assistant public for its tensor-parallel pairs (ClusterPublicTensorAssistant on the ClusterPublicModels entry: depth, the inline head's inventory fingerprint, singleton verification and the SHA-256 of its evidence report). This build declares none, so nothing changes until the owner signs a declaration after the real-pair evidence. With a declaration: - ClusterConfiguration.validate admits a tensorAssistant beside nativeMember only when it is exactly the declared policy (the leader's and the other Mac's approval checks run it before any part stops). - The guided setup plans a coordinator-served cluster under mtp_mode = auto with the declared assistant (declared depth, singleton verification, no cohort argument) and requires the native quote to return exactly it. - The declared assistant's launch arguments and evidence digest join the model's resource policy (DistributedInstalledNativeStart.resourcePolicySHA256), so release facts, approvals and every committed start name it. Without a declaration the digest is the five-field formula, byte for byte. - A pair slot whose READY names the resident assistant reports MTP as configured in its posture and heartbeats, with the pair runtime's counts. The plan's public-traffic line says a placement with the declared assistant is qualified. Tests cover the declaration's shape, validation beside an approval on both Macs (declared, other depth, inventory, verification or artifact), the resource-policy digest (unchanged without a declaration), the committed start and model-approval runtime block, planning arguments and quote checks, the public-traffic line and the slot's MTP posture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The resident-assistant section said readAutomatic asks for a depth-three cohort quote; that is a local cluster's plan. A cluster served through Darkbloom quotes the declared assistant (singleton) or none, as the numbered rules below it say. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e exists yet Refactor pass on the public assistant declaration. Docs, changelog and one comment; no behavior change. - inference.md, Qwen27 resident assistant: explicit `on` plans the declared assistant the same way as `auto` (without a declaration it plans a local cluster's depth-three cohort assistant); the resource policy digest follows the build's declaration for the artifact, not the setup, so a pair planned with mtp_mode "off" carries the same value; the pair's MTP posture reaches `darkbloom status` and the engine_v2_slot_posture telemetry event, not the coordinator heartbeat. - changelog: lead with "nothing changes in serving until a build declares the assistant public" and name the one change visible now, the wording of the refusal beside a cluster approval. - ProviderLoop+ClusterPairSlot: the same posture correction in the comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts: - ClusterSetupWizardLiveOperations.swift (#1724's saved widths): the discovered quote's widths are `widths(of: discovered, mode: mtpMode)`; this branch's `discoveredWidening` block is dropped, and `widths(of:mode:)` asks `readAutomatic` with `coordinator: coordinator`, so every width quotes the assistant this build declares public, as the singleton does. - docs/architecture/inference.md, docs/reference/configuration.md: the "Last updated" stamps keep dev's later dates (2026-11-03, 2026-11-02). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…m dev (835e5fb) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… assistant decoded it A served speed record now carries the way the request reached the pair (through Darkbloom or the leader's local API) and whether the setup decoded with Qwen's resident tensor assistant. Planning, the setup screen's served figures and the router take only the records served the way they will serve, and served calibration never credits the assistant's rounds to a Mac as its one-token rate. Pair-2's Qwen served tensor parallel at 34-36 tok/s locally with the assistant and 14-20 through Darkbloom without it; under one key, the served race (read at the fast end) gave the Darkbloom plan the local assistant's figure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ce is the tensor-parallel qualification A declared assistant names when it was qualified, may declare either verification (the local automatic policy verifies admitted cohorts), and a release's facts give the model's tensor-parallel parity qualifications the assistant's evidence digest and instant, so the qualification a coordinator derives names the speculative decoding it covers. The refusal beside an approval is shortened to fit the other Mac's 240-character relay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pairs that serve Qwen3.8-27B in tensor parallel through Darkbloom now plan and keep the model's resident assistant (depth 3, admitted cohorts, the registered artifact's head inventory 6bf428ca...), the policy local clusters plan by themselves. The evidence report records same-request speculative and plain decodes on one pair (build 0.10.7-dev.branch.95): 12 of 12 greedy prompts identical at 200 and 1,024 tokens, 4 of 4 seeded sampled rows, the tool call and the image row identical; logprobs rows run the plain path. The model's tensor-parallel parity qualifications in a release's facts rest on that report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This comment has been minimized.
This comment has been minimized.
… in two flat guards `requireDiscoveredQuote` nested the declared and automatic checks in an if/else of guards. The same two conditions now throw the same errors from two flat checks; behavior is unchanged. Its two doc comments say "verification" instead of "singleton verification": a declaration may name either policy, and this build declares admitted cohorts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ation - `ClusterPairRequestTelemetry.serving`: a record without it is read as served either way (`Setup.servedAs`), and `servedBy` already leaves it out; it said "neither way". - `ClusterPlacementFlow.decide`: an assisted setup is offered to the coordinator where the build declares the assistant, not "never". - `ClusterPublicTensorAssistantTests`: this build declares Qwen3.8-27B's assistant. - configuration reference: the declared assistant's depth and verification (it is admitted cohorts). Comments and docs only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…el and says why; only the serial qualification cites the assistant Review findings on the Qwen3.8-27B public assistant: - A failed or mismatched assistant quote no longer blocks a pair served through Darkbloom: it plans the ordinary target, as before the declaration, and the plan's one-line reason shows under the model on the screen and in `darkbloom cluster status` (kept with the adopted plan). A local cluster's refusal still stands. - Only the serial-schedule tensor-parallel qualification cites the assistant's evidence: the assistant needs serial prefill, so one-chunk-lookahead pairs decode plain and keep the model's evidence. - The evidence report says the 2.3x figure compares different layer splits; its digest is pinned again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… model says why
A pair of M5 Ultras served Qwen 3.8 27B in tensor parallel with 7 prompts of
71,545 to 94,423 tokens (2026-11-05, 10:06-10:22Z). Their prompt plus answer
is over the 65,536-token context the 27B's tensor-parallel request allowance
covers, so every later plan of the 27B on that pair threw ("Tensor-parallel
request allowance does not cover the requested context and chunk", from
`ClusterPlacementPlanner.evaluate`) while calibrating the served records. The
plan failed, the setup list keeps only choices without a blocker, and the 27B,
tensor parallel only on that pair, left `darkbloom cluster` without a word;
`darkbloom start` could not start it either.
- `ClusterServedCalibration.measurements(entries:)` never fails the plan on a
record: when a setup's calibration throws, each pair request the planner
cannot evaluate on that placement is skipped, and the rest are calibrated as
before (a setup that still cannot be calibrated is skipped whole). The
skipped are counted in one plain line under the plan's served speeds. A
setup whose calibration does not throw is calibrated exactly as before.
The skip sits inside the calibration, so it holds whichever way the worker
build filter (`servedBy`) ran first: an earlier build's records are left out
before they are evaluated, the same build's (an update that kept the worker)
are evaluated and skipped.
- `darkbloom cluster` names each approved model it cannot offer, with its
reason, in one line above the model list ("Qwen 3.8 27B: not offered on
these two Macs: <reason>"), instead of hiding it.
Tests: PlacementChecks plans the 27B (its product layout with the
tensor-parallel allowance, saved as
Golden/served/qwen38-27b-tensor-parallel-priced-layout.json) on the pair's
anonymized records (Golden/served/m5ultra-pair-qwen-over-limit-2026-11-05.json:
token counts, durations and modes as served; members, builds and request IDs
synthetic); PlacementSetupCheck runs the provider's own decision on them;
OnboardingChecks shows a blocked approved model with its reason.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tp-assistant-public Planning skips a served record it cannot evaluate; the served-speed key keeps naming local vs Darkbloom and whether the assistant decoded it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s blocker Behaviour-neutral: the same line for the same choices, read through if-let. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pass) into feat/qwen-tp-assistant-public Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 tasks done
This was referenced Nov 6, 2026
Draft
jonathan308
added a commit
that referenced
this pull request
Nov 6, 2026
…st and the default follow the advice The independent review (approve with nits) found three things to fix before merge. - The claim about updates was wrong for mainnet. The mode question reads an earlier build's figures only from records that say how they were served, which builds write from #1819 (provider 0.10.11, DevNet .100) on. So the update from 0.10.10 to 0.10.11 still recommends from the planner's predictions until a mode has served with 0.10.11, and on pair-2 .92's records are skipped: tensor parallel is recommended from .110's record alone ("the only one measured on these Macs so far"). The changelog, two-mac-cluster.md and inference.md now say so. No safe scope can be read from a 0.10.10 record: it names neither how it was served nor Qwen's assistant, and equal tensor-parallel shares serve through Darkbloom and locally alike (pair-2's Qwen: 34-36 tok/s locally with the assistant, 14-20 through Darkbloom without it). - The list's order, a model named on the command line and the question's cursor now start from one default: ClusterOnboardingMode.defaultIndex(_: recommended:) gives the recommended mode when it is listed, else the fastest measured with this build, else the planner's first. Right after an update the list no longer reads "pipeline or tensor parallel" while the question recommends tensor parallel. A model started again still keeps its mode. - cli-reference.md, agent-setup.md and the wizard's model-step help no longer describe speeds on the list. Tests: - theListAndTheDefaultFollowTheRecommendation (onboarding checks): the list's order with and without a recommendation, a recommendation the list doesn't hold, and the mode a named model loads. - ClusterSetupModeEvidenceTests replays pair-2's records as written (.92's unscoped), and an update whose earlier records all predate #1819 (the predictions decide). Checks, CPU only (empty kernel libraries in the test build; no Metal client): - ClusterOnboardingChecks: 1853 passed, 0 failed. With defaultIndex ignoring the recommendation: 1851 passed, 2 failed (the list's order; the named model's mode). - ProviderCoreTests with the PR's filter: 61 tests in 7 suites pass. - docs-check 208 OK, docs-impact OK, changelog 13 valid fragments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 6, 2026
This branch had an error being deployed
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.
What this does
Two-Mac pairs that serve Qwen3.8-27B in tensor parallel through Darkbloom now decode with the model's speculative
assistant. Local clusters and single Macs (MTP) already did. Until now a pair served through Darkbloom dropped the
assistant because no parity qualification covered it (F1, 0.10.6). This PR adds that qualification, with hardware
evidence. On pair-2 (M3 Ultra + M5 Max, one request at a time) decode went from 17.4 tok/s (plain, equal layer split) to 39.7 tok/s (assistant, 2:3 split); that comparison is not like for like on the split.
This PR includes #1718 (WS-3,
jonathan308, opened 11-01, not yet reviewed). #1718 added the mechanism that lets abuild declare the assistant public. Its commits are merged in here (
9ca483f670), so one review covers both. Close#1718 as included once this merges.
Changes
The declaration (
ClusterPublicModels.qwen27TensorAssistant, on the Qwen3.8-27B entry):admitted_target_cohort_v1, head inventory6bf428ca…. This is the policy local clusters already planby themselves. The inventory is the one the native helper returns for the registered artifact (checked with
darkbloom-cluster-plan tensor-batch-scope);docs/reports/2026-11-05-qwen27-public-assistant.md; its SHA-256 is pinned and a test holds them equal.The parity qualification lives in the release's
cluster_runtimeblock.tensor_parallel_v1qualifications take the assistant report'sevidence_sha256andqualified_at(ClusterRuntimeApprovalFacts.parityQualifications).serial prefill, so one-chunk-lookahead (2) pairs decode plain, and that qualification keeps the model's
evidence.
resource_policy_sha256carries the build's declaration (cluster: let a build declare Qwen3.8-27B's tensor-parallel assistant public (none declared yet) #1718): depth, inventory, verification andevidence. So the release facts, the approval and every start name the build's declared assistant. The digest
does not pin what one setup runs. A pair planned with
mtp_mode = "off"carries the same value. What stops adifferent assistant from serving is
ClusterConfiguration.validate(an exact match besidenativeMember),plus both workers binding
--mtp-depthand--tp-mtp-inventory-sha256at LOAD.The served-speed key nit from fix(cluster): the mode question trusts a measured mode over a predicted one #1812's review.
serving(darkbloomorlocal) andtensorAssistant, and the leader keeps eachcombination's records apart.
ClusterPlacementFlow.decide), the setup screen's served figures (ClusterSetupPlanning.modes) and therouter (
ClusterRequestRoutingBasis) use only the records served the way they will serve(
ClusterServedSpeedRecords.Setup.servedAs).it in practice on pair-2: the setup screen showed "tensor parallel 38 tok/s" for a pair that served 14–17 through
Darkbloom.
The refusal beside an approval is shortened, so it fits the 240-character relay between the Macs.
A refused assistant quote through Darkbloom plans plain tensor parallel instead of blocking the pair (review
nit 2). The causes are a helper error or timeout, or an inventory other than the declared one. The plan says why in
one line (
ClusterSetupPlanning.assistantRefusedLine):ClusterOnboardingLeadership.speculationNote);darkbloom cluster statusunder "Serves:".A local cluster's refusal still stands. Test:
throughDarkbloomARefusedAssistantQuoteFallsBackToPlainTensorParallelfails with the fix disabled ("Expectation failed: darkbloom.option.plan") and passes with it.
speculationNoteLinechecks the status line.Coordinator
No platform change is needed. Production
97189cd696sees onlytensor_parallel_v1:ClusterPlanModeFamilyandparityQualification(coordinator/registry/cluster_parity_qualification.go) match onmode family, classes and cuts;
resource_policy_sha256andevidence_sha256are opaque digests to it.Parity evidence (pair-2, build
0.10.7-dev.branch.95, leader's local API so that every request reached this pair)A request that asks for logprobs decodes one token a step on an assisted pair. So the same request with and without
logprobs, on one loaded pair, compares the assistant's rounds with that pair's plain path (same shares, weights and
build).
cn_equal, every third row sampled)Stated honestly: a pair planned without the assistant answered 8 of the 12 greedy prompts differently from the
assisted pair. The assistant does not cause this. The local plan with the assistant split the layers 2:3, and the
plan without it split them equally. The logprobs row runs no speculation on either pair, yet it already differs at the
first token (−0.070116 vs −0.070133), which comes from the prompt's last row. Through Darkbloom both setups use equal
shares. The first DevNet build with this PR must repeat the same-request check through Darkbloom.
Also found: DevNet's
X-Darkbloom-Route: selfreaches every provider on the account. During these runs it sentsome Qwen requests to an Apple M5 Ultra single-Mac provider (
x-provider-chip: Apple M5 Ultra). So parity work usedthe local API, and the "after" benchmarks must check
x-provider-idon each request.Speed (pair-2, local API, same build and hour; decode tok/s)
The two pair rows are not like for like on the layer split. The plain plan split the layers equally (the plan
made for Darkbloom), and the assisted plan split them 2:3 (a local plan). The 2.3× ratio therefore mixes the
assistant's speed-up with the split's. The DevNet run after merge measures both on equal shares.
Compared like with like, pair with speculation against one Mac with MTP: 39.7 against 69–74, so 0.55× (2× would be
~140). The Studio's display takes 40–55 % of its GPU, and engine work (W3) is still out. Plain pair against plain one
Mac: one Mac without MTP was not measured here.
Tests
dev835e5fb)ClusterPublicTensorAssistantTests|ClusterConfigurationTests|ClusterRuntimeApprovalFactsTests|ClusterApprovalTensorAssistantTests|ClusterApprovalSyncTests|DistributedAutomaticBatchPlannerTests|ClusterPairSlotTests|ClusterApprovalTensorSharesTests|ClusterObservabilityTests|ClusterOwnerServingTests|ClusterApprovalLifetimeTests|ClusterApprovalWatchTests|NativePairMemberContractTests|ClusterRosterMemberTests)ClusterOnboardingPeerLabelTests, after mergingdev; headf7068eef30)ClusterPlacementChecks/run.sh)libs/darkbloom-cluster/Tests/PlacementChecks/run.sh)ClusterOnboardingChecks/run.sh)diagnosticsReportCarriesTheObservabilitySectionfails the same way ondev. It is not touched here.ClusterApprovalLifetimeTests:114is a timing flake in code this PR doesn't touch; the reviewer saw it pass 2/2 on rerun, and it passed in my runs.dev, because the APIs are absent. They are:thisBuildDeclaresQwensAssistantForPairsServedThroughDarkbloom;theTensorParallelQualificationsRestOnTheAssistantsEvidence;aDeclarationNamesItsPolicyReportAndQualificationInstant;speedRecordsNameTheWayTheyWereServedAndPlansKeepTheirOwn;retiredRequestBecomesOnePairTelemetryRecord.refused):
aPlacementThatDecodesWithTheAssistantIsOfferedOnlyWhereDeclared,aPlanWithTheAssistantIsQualifiedForPublicTrafficOnlyWhereDeclared, and the facts test.scripts/provider-release-swift.sh). CI's"Provider Unit Tests" fails at "Select SDK 27 provider toolchain" on the runner image. That is an infrastructure
problem, not this code.
BASE=origin/dev) and changelog-check pass.Before / after
flowchart LR subgraph Before A1[Qwen 27B pair, mtp_mode auto] --> B1{served through Darkbloom?} B1 -- local --> C1[assistant on: ~40 tok/s] B1 -- Darkbloom --> D1[discoveryMode: auto → off] --> E1[plain TP: ~17 tok/s] F1[served-speed record: model, mode, cut, builds] --> G1[one figure for local+assistant and Darkbloom plain] end subgraph After A2[Qwen 27B pair, mtp_mode auto] --> B2{served through Darkbloom?} B2 -- local --> C2[assistant on] B2 -- Darkbloom --> D2[declared assistant planned: depth 3, cohorts, pinned inventory] --> E2[approval + start pin it in resource_policy_sha256] E2 --> H2[TP qualification evidence = assistant report] F2[served-speed record + serving + tensorAssistant] --> G2[plans use only records served their own way] endRelease condition for 0.10.10
Before 0.10.10 goes to mainnet, the same-request parity check must pass again through DevNet, on equal shares.
This is plan A in the agent's
REPORT.md, a run after merge on the DevNet build that carries this PR:logprobs;
x-provider-idmust be pair-2's leader;If it fails, the declaration comes out of 0.10.10.
Limitations
equal. The same-request check must be repeated through Darkbloom on the DevNet build. No M5 Ultra run yet: the list
for that is in the agent report.
autowherever the head is present and its reservation fits. That is the same rule asone Mac's MTP, and it depends on no hardware. A per-pair fallback chosen from measurements, used when a pair measures
the assistant slower, is not built. Every measurement so far shows it faster (pair-2 2.3×, across different splits; M5 Ultras ~2×, per the
docs).
27313336f4(flat guards) andb5dabc2c06(stale comments). Review: "ship with nits". Nits 2, 3 and 6, the pinning wording, and the releasecondition are addressed here, and nit 8 (a comment moved). Not changed:
servingmatching every scope;servedByalready drops old builds' records;