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
4 changes: 4 additions & 0 deletions changelog.d/cluster-mode-question-no-speeds.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### The mode question recommends without quoting speeds

- `darkbloom cluster`'s mode question no longer shows tokens per second. The recommendation says why in words ("Recommended for Gemma 4 26B on these two Macs: Pipeline, faster here.") instead of "faster here (about 56 against 52 tokens/s, predicted)", and each mode's line drops its "N tok/s measured" or "not measured on these Macs yet". A re-plan's "Planned in the mode chosen" line drops the planner's predicted speed too. The measured or predicted speeds still decide which mode is recommended.
- A mode that serves more requests at once and is as fast now says "serves up to 8 requests at once and is as fast here" instead of calling itself faster.
7 changes: 6 additions & 1 deletion docs/architecture/inference.md
Original file line number Diff line number Diff line change
Expand Up @@ -4046,7 +4046,12 @@ away; mixed pairs are first-class).
- **Measured speed:** `ClusterServedModes.figures` over this build's served
records of this model on these Macs (`ClusterServedSpeedRecords.servedBy`), as
the planner reads them: a figure from 3 served requests on. Never a
prediction; without one the screen says "not measured on these Macs yet".
prediction; without one the model list says "not measured on these Macs yet".
The mode question uses these figures (else the planner's predictions) only
to rank the modes: its recommendation and its mode lines quote no tokens per
second (owner, 2026-11-05), and a re-plan's "Planned in the mode chosen" line
gives the size, mode and shares without the planner's predicted speed
(`ClusterOnboardingModeAdvice.fasterWords`, `OnboardingLive.localPlanModels`).
- **The current model:** on a set-up pair the list preselects the model serving
now (or the last one used); it keeps the mode the saved setup served in when
the plan still lists it (`keepMode`, from `ClusterOnboardingResume.servingMode`),
Expand Down
15 changes: 8 additions & 7 deletions docs/provider/two-mac-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,14 @@ On the leader, the pair's model list follows, like `darkbloom start`'s picker:
A model that runs more than one way here asks how both Macs split it. The
question's first line names the model and recommends a mode for these two Macs,
with why: "Recommended for Gemma 4 26B on these two Macs: Tensor parallel,
faster here (about 106 against 41 tokens/s, measured) and serves up to 8
requests at once." In a colour terminal the mode is in bold. In a narrow window
the reason is shortened ("faster, up to 8 at once"), then left out; the model's
and the mode's names never are. That mode's line ends "· recommended for these
Macs", and Enter takes it (`ClusterOnboardingModeAdvice.advise`). The leading
Mac makes the recommendation from its plans, so both Macs' screens show the
same words:
faster here and serves up to 8 requests at once." The speeds rank the modes but
the question never quotes them: neither the recommendation nor a mode's line
shows tokens per second. In a colour terminal the mode is in bold. In a narrow
window the reason is shortened ("faster, up to 8 at once"), then left out; the
model's and the mode's names never are. That mode's line ends "· recommended
for these Macs", and Enter takes it (`ClusterOnboardingModeAdvice.advise`). The
leading Mac makes the recommendation from its plans, so both Macs' screens show
the same words:

- Only modes whose own plan fits both Macs' free memory now count (while a
model serves, its memory is freed first, so fitting now doesn't decide). One
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,14 +413,6 @@ public struct ClusterOnboardingMode: Codable, Sendable, Equatable {
concurrentRequests.map { $0 <= 1 ? "serves one at a time" : "serves up to \($0) at once" }
}

/// Its speed, short: "106 tok/s", "not measured".
var shortSpeedWords: String { measuredTokensPerSecond.map { "\(Int($0.rounded())) tok/s" } ?? "not measured" }

/// Its speed on these Macs, measured or not.
var speedWords: String {
measuredTokensPerSecond.map { "\(Int($0.rounded())) tok/s measured" } ?? "not measured on these Macs yet"
}

/// The list's words for a model's modes, the default first: "pipeline 46 tok/s or tensor parallel (not measured on
/// these Macs yet)", or, none measured, "tensor parallel or pipeline · not measured on these Macs yet".
static func listWords(_ modes: [ClusterOnboardingMode]) -> String? {
Expand Down Expand Up @@ -472,6 +464,10 @@ public struct ClusterOnboardingModeAdvice: Codable, Sendable, Equatable {
/// Speeds closer than this are the same to the advice: the planner's own figures differ by about as much.
static let sameSpeed = 0.05

/// Why the faster mode is recommended, with no figures (owner, 2026-11-05: "it should not show tok/s"): the
/// speeds only rank the modes, measured or predicted; the words never quote them.
static let fasterWords = "faster here"

/// The recommendation among `options` (nil with fewer than two). `throughDarkbloom`: the pair serves through Darkbloom,
/// where requests beyond those a mode serves at once are turned away as "at capacity". `serving`: a model serves now,
/// so the list counts its memory as taken; the start frees it, so fitting now does not decide.
Expand Down Expand Up @@ -504,9 +500,6 @@ public struct ClusterOnboardingModeAdvice: Codable, Sendable, Equatable {
let speeds: [Double]? = measured ? open.map { $0.measuredTokensPerSecond! }
: open.allSatisfy({ $0.predictedTokensPerSecond != nil }) ? open.map { $0.predictedTokensPerSecond! } : nil
let basis = measured ? "measured" : "predicted"
func speedWords(_ fast: Int, _ other: Int) -> String {
"faster here (about \(Int(speeds![fast].rounded())) against \(Int(speeds![other].rounded())) tokens/s, \(basis))"
}
if let speeds {
let fastest = speeds.indices.max { speeds[$0] < speeds[$1] }!
let runnerUp = speeds.indices.filter { $0 != fastest }.max { speeds[$0] < speeds[$1] }!
Expand All @@ -516,14 +509,15 @@ public struct ClusterOnboardingModeAdvice: Codable, Sendable, Equatable {
let index = open.firstIndex(of: most)!
let other = open.indices.first { $0 != index }!
let slower = speeds[index] < speeds[other]
let faster = speeds[index] > speeds[other] * (1 + sameSpeed)
return .init(mode: most.mode, reason: atOnce(most) + (slower ? "; the others take fewer, and Darkbloom turns the rest away"
: ", and " + speedWords(index, other)))
: faster ? " and is " + Self.fasterWords : " and is as fast here"))
}
guard clearlyFaster else {
return .init(mode: nil, reason: "they are about as fast on these Macs (\(basis)) and serve as many requests at once")
}
let lanesNote = lanesKnown && lanes(open[fastest])! > 1 ? " and " + atOnce(open[fastest]) : ""
return .init(mode: open[fastest].mode, reason: speedWords(fastest, runnerUp) + lanesNote)
return .init(mode: open[fastest].mode, reason: Self.fasterWords + lanesNote)
}
if lanesDiffer, let most = mostLanes {
return .init(mode: most.mode, reason: atOnce(most) + "; no speed is known for these Macs yet")
Expand Down Expand Up @@ -1654,22 +1648,22 @@ public enum ClusterOnboardingDriver {
/// the recommendation's line does (R6-2, M5 Ultra pair: "… the other Mac 44 layers) · ser…" at 120 columns): the
/// split, then what each Mac does, then the long words; the mode's name and how many requests it serves at once
/// stay, on more than one row when one row cannot hold them.
/// No speed figure: the mode question recommends from the speeds but never quotes them (owner, 2026-11-05).
public static func modeLine(_ mode: ClusterOnboardingMode, recommended: Bool = false, room: Int? = nil) -> String {
let requests = mode.requestsWords.map { " · " + $0 } ?? ""
let marker = recommended ? " · " + ClusterOnboardingModeAdvice.marker : ""
let full = menuLine(mode.label, mode.what + (mode.split.map { " (\($0))" } ?? "") + requests + " · " + mode.speedWords + marker)
let full = menuLine(mode.label, mode.what + (mode.split.map { " (\($0))" } ?? "") + requests + marker)
guard let room else { return full }
let short = [mode.label, mode.shortRequestsWords, mode.shortSpeedWords, recommended ? "recommended" : nil].compactMap { $0 }
let short = [mode.label, mode.shortRequestsWords, recommended ? "recommended" : nil].compactMap { $0 }
let tail = requests + marker, shortTail = requests + (recommended ? " · recommended" : "")
let lines = [
full,
menuLine(mode.label, mode.what + requests + " · " + mode.speedWords + marker),
menuLine(mode.label, String((requests + " · " + mode.speedWords + marker).dropFirst(3))),
menuLine(mode.label, String((requests + " · " + mode.speedWords + (recommended ? " · recommended" : "")).dropFirst(3))),
short.joined(separator: " · "),
short.filter { $0 != mode.shortSpeedWords }.joined(separator: " · "),
]
menuLine(mode.label, mode.what + tail),
] + (tail.isEmpty ? [] : [menuLine(mode.label, String(tail.dropFirst(3)))])
+ (shortTail.isEmpty ? [] : [menuLine(mode.label, String(shortTail.dropFirst(3)))])
+ [short.joined(separator: " · ")]
if let fits = lines.first(where: { ClusterOnboardingBrand.textColumns($0) <= room }) { return fits }
return rows(short.filter { $0 != mode.shortSpeedWords }, room: room)
return rows(short, room: room)
}

/// `parts` joined with " · " on as few rows of `room` columns as hold them, each part whole on its row unless it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -912,10 +912,10 @@ final class OnboardingLive: @unchecked Sendable {
validated: approved(option.model.artifactSHA256))
}
let offer = option.onOtherMac != false ? nil : copyOffer(model: option.model, peer: peer)
// One line: size, how it is split (the planner's choice), each Mac's share, the expected speed.
let speed = plan.absolute ? "about \(Int(plan.decodeTokensPerSecond.rounded())) tokens/s\(plan.measured ? "" : " (estimate)")" : nil
// One line: size, how it is split (the planner's choice) and each Mac's share; no predicted speed
// (owner, 2026-11-05: the model and mode choice never quote tok/s).
let line = ClusterOnboardingDeployment.choiceLine(size: gigabytes, mode: plan.mode,
shares: planShares(plan.ranks, localName: localName, perspective: true), speed: speed)
shares: planShares(plan.ranks, localName: localName, perspective: true), speed: nil)
// Recorded and carried by the start for both Macs, so each Mac is named by its hardware.
let deployment = ClusterOnboardingDeployment.line(model: title, mode: plan.mode, shares: planShares(plan.ranks, localName: localName))
keys.append((option.model.folder, ClusterSetupState.planKey(option.model, plan), modelID, plan.alone.filter(\.holds).map(\.memberID),
Expand Down
Loading
Loading