Repository navigation
feat(cluster, provider): 0.10.12 — GLM tensor parallel serves as many requests at once as both Macs admit - #1939
Closed
jonathan308 wants to merge 11 commits into
Closed
jonathan308 wants to merge 11 commits into
jonathan308 wants to merge 11 commits into
Conversation
…s admit, and one without it (red) Red first for 0.10.12's third concurrency step, stacked on #1936 (the Gemma TP width), whose sizing it reuses. GLM-5.3-Flash tensor parallel serves a fixed eight lanes on any pair: `tensorParallelLaneAdapters` names 8 whatever the Macs' memory, its LOAD reserves one request, and `ClusterConfiguration.validate` refuses a GLM tensor-parallel width. So the coordinator is told eight on a pair whose memory may hold fewer, and a pair that holds one request is told eight too. These checks state the behaviour wanted, with #1936's APIs: - PlacementSetupCheck.glmTensorParallelPair (CPU runner): GLM's golden layout with a lane charge stated as the plan tool will state it (9 GiB standing in), through the guided step on the recorded M5 Ultra pair: both setups save the widest width both Macs admit now (8 there), each lane after the first adding it to every rank's need. The golden layout without one still saves none. - ClusterPlacementTensorWidthTests: a GLM row whose family states a lane charge and no allowance saves 8, 6, 4, 2 or none as free memory falls, the smaller Mac decides, and the setup screen says that number or one. - ConfigurationCheck: a GLM TP setup keeps 2, 4, 6 or 8 with serial prefill. - InstalledBatchLanesCheck, DistributedInstalledLanesTests, DistributedInstalledCancellationTests: a GLM TP setup serves its saved width on its owner, its owner child and the rank, and one request at a time without one. On #1936's head 0092c1f each fails: the layout's lane charge is refused without an allowance, the width is refused at validation, and GLM serves eight without one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… requests at once as both Macs admit GLM-5.3-Flash tensor parallel served a fixed eight lanes on any pair: its LOAD reserved one request and the coordinator was told eight, whatever the Macs held. It now saves a width at placement, sized by both Macs' memory and reserved at LOAD, through #1936's mechanism: - GLM's lane charge (`GLM5NextTensorParallelRequestCharge.laneBytes`): an upper bound on what `reserveLane` asks for one more lane beside the others at the memory plan's request: the lane's state, its DSA and NextN history pages three times (the pages, and the page pool's growth copy: old and new slabs coexist while a lane's pages are added) and a sliced prompt frame's held arrays. Pages at FP32 rows, as LOAD prices them before the pool exists. About 9.7 GB on the registered row. - `GLM5NextPlacementFamily` states it in the layout (`ClusterTensorParallelFamilyPlan.laneBytes`), with the allocator bound its NextN head uses. - Validation accepts a lane charge without a request allowance (1 byte to a worker's capacity, and within the allowance's request part where one is stated). The planner adds each lane after the first on top of what one request is priced at (the allowance, or the layout's state where the family states none): Gemma 4's numbers are unchanged, every PlacementChecks line byte for byte. - `savesTensorParallelWidth` includes GLM, so the guided setup tries 8, 6, 4 and 2 and saves the widest both Macs admit now (capped at 8 until the M5 Ultra pair qualifies it), and `ClusterConfiguration.validate` accepts it. - LOAD reserves `reservedBytes(contextTokens:lanes:)`: one request's charge and a lane charge for each lane after the first, the figure the plan priced; the load line reports it (`reserved=`). - Without a saved width GLM serves one request at a time, as every other tensor-parallel family (`tensorParallelBatchLanes` is gone). After the Darkbloom update the control leader plans each pair again by itself (`ClusterOnboardingUpdate`), which saves its width. On the recorded M5 Ultra 256 GB pair one request needs 154.7 GB a rank and eight lanes 222.6 GB of 234.4 GB admissible now, so it keeps eight; the D6 window's load line (shard, NextN, vision, one request, buffer cache) sums to 154.4 GB, within the plan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…st in the width tests too `ClusterPlacementTensorWidthTests.otherFamiliesAndUnsizedSetupsKeepTheirLanes` still pinned GLM tensor parallel's old fixed eight (Provider Unit Tests, shard 1, on 6067d00: the run's one issue). A GLM setup saved without a width now serves one request at a time, as a Qwen TP one does; its saved width is pinned by the GLM width test beside it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Takes the parent's one-rule width search (`ClusterPlacementTensorWidth.widths`), the Gemma budget without its duplicate `chargeBytes(lanes:)` and the stronger Gemma lane checks. No conflict: the GLM lane charge's planner and layout rules hold for those checks (a lane charge of nothing, or above a stated allowance's request part, is still refused). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…families; GLM's lane charge reuses LOAD's page arithmetic Refactor pass on the GLM tensor-parallel width (behaviour unchanged): - DistributedInstalledPlan.tensorParallelLaneAdapters is a set: with GLM's fixed eight gone, every value was `defaultBatchLanes`. One predicate, `servesTensorParallelLanes` (GLM, Gemma 4 and a Qwen TP row without private images), now decides both a tensor-parallel pair's default and whether its lanes retire alone, which had each spelled it out. - GLM5NextTensorParallelRequestCharge.laneBytes (the planner's and LOAD's lane charge) re-derived the history length and the paged-history bytes that `historyTokens` and `pagedHistoryBytes` already compute for a request. Both now have a static form that the lane charge, the request charge and `reserveLane` share, so the page arithmetic lives in one place. - GLM5NextPlacementFamily.tensorParallelPlan takes the lane charge without a default: its one caller always states it. - ClusterPlacementTensorWidthTests: the lane-charge helpers serve GLM as well as Gemma, so they are named for what they do (`laneChargeFixture`, `decideLaneCharged`, `savedLanes`). Mutants of the planner's GLM growth (request need, GPU-resident bytes, the growth hidden under the state estimate), the lane charge's bounds, the setup's GLM width and the installed GLM lanes are killed by PlacementChecks, ConfigurationCheck and InstalledBatchLanesCheck. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The refactor pass renamed the lane-charge helper that returns what both Macs saved and what the setup screen says to `savedLanes`, which the Qwen width cases already name (one saved width): CI's provider test build refused the ambiguous call. It is `savedAndScreenLanes`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1936 now counts LOAD's reservation in a lane-charge width's load peak, caps Gemma TP at 2 lanes for the QAT 4-bit row, and makes a pair project each request's first token behind the prompts already holding a lane. Resolutions: - ClusterPlacementPlanner: here a width's growth sits outside the one-request floor (`nativeFloor` has no lane growth), so the load peak takes the review's form, `nativeFloor + laneGrowth`. The automatic merge kept `nativeFloor` alone, which would have left Gemma's lane charges out again. GLM's plans are unchanged: its every-rank charge already holds the load transients, so its request need still decides (PlacementChecks 1,667, the GLM decide tests and the setup checks' GLM pair unchanged). - ClusterPlacementTensorWidth: GLM keeps eight; Gemma takes `gemmaTensorParallelLanes` for its qualified row. - ClusterPlacementTensorWidthTests: #1936's Gemma tests on this branch's lane-row fixture (`LaneRow`, `laneChargeFixture`, `decideLaneCharged`, `savedAndScreenLanes`), beside the GLM test. - inference.md and two-mac-cluster.md: both families' rows and bullets. Light runners on the merge: PlacementChecks 1,667, placement setup 277, run-flow 33, ProcessChecks, installed-session and configuration pass; a scratch copy of the width tests passes for Gemma and GLM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…loads a width one lane fits (red)
Red first for the independent review of C1 (P1-1, P2-3):
- P1-1. `theRegisteredRowStatesItsLaneCharge` (Cluster Runtime Tests,
blocking): the GLM placement family built from the registered
config.json the worker's capability checks keep (its pinned SHA-256)
states a lane charge equal to `tensorParallelLaneBytes` at the memory
plan's request and MLX's allocation bounds, 9.6-10 GB (9,700,905,472
bytes before allocator rounding). Dropping `laneBytes:` from the family,
or a plan that does not forward it, fails it; until now only stand-in
charges grafted into the golden layout were checked. It passes on this
commit; it is not a red test.
- P2-3. Tonight GLM at 8 lanes did not load on Mac A: 38.68 GiB of other
programs' memory in use, 200.19 GiB admissible against the 211.10 GiB an
8-lane LOAD asks for, although one lane needs 143.8 GiB. PlacementChecks
rebuilds that sample (admissible within 1 MB of the refusal's) and the
8-lane requirement byte for byte (226,675,370,385 with the headroom):
- it refuses eight lanes, as Mac A did;
- it must load at six, the widest width it admits (193.03 GiB);
- an idle 256 GB Mac reserves all eight; an idle 128 GB Mac, which one
lane does not fit, is refused.
The width LOAD reserves is now one function of the gate's policy,
`QwenDenseStageLoadPolicy.lanesAdmitted`, with today's rule: the saved
width or nothing. The runtime does not call it yet.
PlacementChecks: 1 failed (six lanes: nil), 1,669 passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er refusing a load one lane fits (review P2-3) Tonight an 8-lane GLM pair did not load on Mac A: its LOAD gated the whole saved width (211.10 GiB) against 200.19 GiB admissible, with 38.68 GiB of other programs' memory in use, although one lane needs 143.8 GiB. The memory re-plan narrows only after two refusals, at most every 10 minutes, and nothing widens it again. The saved width is now a ceiling for GLM's LOAD. On the gate's sample, `QwenDenseStageLoadPolicy.lanesAdmitted` finds the widest width from the saved one down to one lane that the gate admits; LOAD reserves that width (the load line's `reserved_lanes=`, and a line saying so when it is narrower) and the real gate checks it. If the real gate then refuses a width wider than one, LOAD asks for one lane, so a load one lane fits is never refused. Each lane beyond the reserved width is admitted as it comes by the lane's own live gate, or refused alone, as before this width existed. Not done: the review's preferred option (b), where the width that loaded becomes the pair's advertised width. The slot's `max_concurrency` comes from the saved plan before the workers load, and READY carries no lane count, so (b) needs the ranks to agree on a width before the load agreement, READY to carry it, and the provider to register the slot from it: more than a small addition to the agreement. The pair still serves and advertises the saved width, and both ranks bind it into their load agreement unchanged. PlacementChecks: 1,670 passed (tonight's sample now loads at six; an idle 256 GB Mac reserves eight; an idle 128 GB Mac is still refused). The runtime change runs in CI's Cluster Runtime build only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…llel width #1936 made Gemma's cap one table (`gemmaQualifiedLanes`), explained why one lane keeps its load peak, and documented the projection of media requests. Resolutions: - ClusterPlacementPlanner: this branch's `nativeFloor + laneGrowth`, with #1936's explanation and what the allowance is here (none for GLM, whose request need decides). - ClusterPlacementTensorWidth: GLM's eight beside Gemma's table. - inference.md: both families' planner and cap bullets, no wave names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the review-only refactor pass over this round (it found the LOAD retry sound, the merge's planner line correct and no compile risk): - One formula for a tensor-parallel gate's requirement, `QwenDenseStageLoadPolicy.tensorParallelRequiredBytes` (the bytes and the loading headroom, never below the floor): `lanesAdmitted` and `ClusterLiveMemory.requireTensorParallel` both call it, so the first look and the gate cannot drift apart. - The retry's comment says why the gate may refuse a width its first look admitted (a later sample, or the compression it measures from its own first one). - The LOAD width check takes the loading headroom from the gate's policy instead of a literal 4 GiB, and says one lane needs 147.8 GiB with it (143.8 without, beside 211.10 and 193.03, which include it). - `checkGLMCoverage` gets back its doc comment, which the new check had taken; no review or PR labels in files. Not taken: replacing the registered row test's `lane == expected` (the requirement and the range carry it), and re-trying one width narrower before one lane. PlacementChecks 1,670, placement setup, ProcessChecks and the scratch width tests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
marked this pull request as ready for review
November 10, 2026 06:00
jonathan308
added a commit
that referenced
this pull request
Nov 10, 2026
…0.10.12 candidate; head 0d6a80d) # Conflicts: # libs/darkbloom-cluster/Sources/DarkbloomClusterRuntime/Support/ClusterMemoryFault.swift
This was referenced Nov 10, 2026
Collaborator
Author
|
Closing: this branch's head (0d6a80d) is already contained in dev. |
This branch was successfully 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.
For 0.10.12. Third step of the concurrency work: every pair option serves several requests at once, sized by both Macs' memory. Plan:
CONCURRENCY-PLAN.md§2.4. Draft. C1 ran on the M5 Ultra pair on 2026-11-10 (GLM at 6, then at 8, passed; the first 8-lane attempt was refused at Mac A's LOAD gate), and the independent review's two changes are in (round 2, below).Status (2026-11-10, review round 2)
0d6a80d09d. CI (dev) green (run 42759678191).a60a546e90(signed; resolutions in its message). The planner's load peak takes the review's form here,nativeFloor + laneGrowth, since this branch keeps the growth outside the one-request floor; the automatic merge had keptnativeFlooralone, which would have dropped Gemma's lane charges again. GLM's plans are unchanged: its every-rank charge already holds the load transients, so its request need still decides (PlacementChecks1,667, the GLMdecidetest and the setup checks' GLM pair).311ead33cd. Its CI run (42748367274) failed exactly there ("GLM LOAD width: that sample loads at six lanes … (nil)"), and the new Cluster Runtime test passed. Thened36754ff3(the fix): CI green (42752002374), the GLM runtime's LOAD change compiled in the Cluster Runtime build.5f150f8c82merges feat(cluster, provider): 0.10.12 — Gemma 4 tensor parallel serves as many requests at once as both Macs admit #1936's part,0d6a80d09dtakes this PR's): one formula for a tensor-parallel gate's requirement (QwenDenseStageLoadPolicy.tensorParallelRequiredBytes), shared bylanesAdmittedand the gate, so the first look and the gate cannot drift; the retry's comment says why the gate may refuse a width its first look admitted; the check takes the loading headroom from the policy; one lane needs 147.8 GiB with the headroom. It found the LOAD retry sound, the merge's planner line correct and no compile risk.GLM5NextNativeContextTests.theRegisteredRowStatesItsLaneCharge(blocking Cluster Runtime Tests). It reads the registeredconfig.jsonthe worker's capability checks keep (pinned SHA-256), buildsGLM5NextPlacementFamily, and requires itslaneBytesto equaltensorParallelLaneBytesat MLX's allocation bounds, within 9.6–10 GB. DroppinglaneBytes:from the family, or a plan that does not forward it, fails ittheRegisteredRowStatesItsLaneCharge() passed after 0.611 seconds, on the red run too: it protects existing behaviour)PlacementChecksrebuilds tonight's sample (admissible within 1 MB of Mac A's refusal) and the 8-lane requirement byte for byte (226,675,370,385 with the headroom). It refuses 8, as Mac A did, and must load at 6 (red: nil; green: 6). An idle 256 GB Mac still reserves 8; an idle 128 GB Mac, which one lane doesn't fit, is still refusedmax_concurrencycomes from the saved plan (DistributedInstalledSession.concurrentRequests,plan.batchLanes()) before the workers load, and READY carries no lane count. So (b) needs the ranks to agree on a width before the load agreement, READY to carry it, and the provider to register the slot from it. That is more than a small, versioned addition to the load agreement, so per the instructions it is not built.ed36754ff3):QwenDenseStageLoadPolicy.lanesAdmittedfinds the widest width, from the saved one down to one lane, that the gate admits. LOAD reserves it, and the real gate checks it. If the real gate then refuses a width wider than one (the sample moved between the two looks), LOAD asks for one lane.reserved_lanes=, and a stderr line says when it is narrower: "GLM tensor-parallel LOAD reserves 6 of its 8 lanes: the memory gate admits no more now; each further lane is admitted as it comes, or refused alone".reserveLane) or refused alone, retryably, as every lane was before this PR.ClusterConfiguration.validaterefuses a saved Gemma or GLM tensor-parallel width (called from the codec). After a rollback to 0.10.11 such a pair's setup can't be read, and the update re-plan bails out atsavedConfiguration(). Run the setup again on that pair.Stacked on #1936 (Gemma 4 tensor parallel sized by memory), whose width mechanism it reuses. Its base is
feat/gemma-tp-lanes-by-memory; it is retargeted todevonce #1936 merges.Before
DistributedInstalledPlan.tensorParallelLaneAdapters[.glm5NextLayerStage]wastensorParallelBatchLanes, 8, whatever the Macs held.requestReserve). Each further lane was admitted against live memory when it came.ClusterConfiguration.validaterefused a GLM tensor-parallelbatchLanes.max_concurrencysaid 8, even on a pair whose memory holds fewer. The lanes it could not hold were refused one by one when they arrived (through Darkbloom: "at capacity").After
GLM5NextTensorParallelRequestCharge.laneBytes) is an upper bound on whatreserveLaneasks for one more lane beside those held, at the memory plan's request (65,536 tokens):laneStateBytes: KDA recurrent and convolution state, NextN verification windows);prefillFrontierBytes).config.json, the allocator rounded to 16 KiB pages).GLM5NextPlacementFamilywrites it intoClusterTensorParallelFamilyPlan.laneBytes, with the allocator bound its NextN head already uses.ClusterPlacementPlanner.tensorRequirement).PlacementCheckslines are identical, byte figures included.savesTensorParallelWidthincludes GLM, soqualifiedLanesis 8: what GLM served before, provisional until the M5 Ultra pair qualifies it (C1).reservedBytes(contextTokens:lanes:): one request's charge and a lane charge for each lane after the first, the figure the plan priced. Where it admits fewer lanes now, LOAD reserves the widest width it admits, never fewer than one lane. The load line reportsreserved=andreserved_lanes=. Each lane is still admitted against live memory, and one the host can't hold is refused alone.ClusterConfiguration.validateaccepts a GLM tensor-parallel width of 2, 4, 6 or 8 with serial prefill. The setup screen, both owners, the slot'smax_concurrencyand the local API read it throughDistributedInstalledPlan.batchLanes, unchanged.tensorParallelBatchLanesis gone,DistributedInstalledPlan.tensorParallelLaneAdaptersis a set, and one predicate (servesTensorParallelLanes) decides both a tensor-parallel pair's default and whether its lanes retire alone.ClusterOnboardingUpdate), which saves its width then.PlacementChecksandPlacementSetupCheck): one request needs 154.7 GB a rank, eight lanes 222.6 GB, of 234.4 GB admissible now. So it keeps eight.reserveLane's live gate;flowchart LR subgraph Before A1["GLM TP placement"] --> B1["no width saved: validate refuses one"] B1 --> C1["owner and worker: fixed 8 lanes"] C1 --> D1["LOAD reserves one request"] D1 --> E1["screen and coordinator: up to 8<br/>whatever memory holds"] E1 --> F1["lanes memory can't hold:<br/>refused when they arrive"] end subgraph After A2["GLM TP placement"] --> B2["price 8, 6, 4, 2 lanes:<br/>one request + (w-1) x lane charge per rank"] B2 -->|"widest both Macs admit now (cap: 8, provisional)"| C2["setup saves width w"] B2 -->|"none fits"| C3["no width: 1 lane"] C2 --> D2["LOAD reserves one request + (r-1) x lane charge,<br/>r = widest of w..1 memory admits now"] D2 --> E2["owner, worker, screen, max_concurrency: w<br/>lanes past r admitted live"] endflowchart TD subgraph "Code flow (after)" F["GLM5NextPlacementFamily<br/>tensorParallelLaneBytes"] -->|"laneBytes, no allowance"| P["ClusterPlacementFlow.decide"] P --> W["ClusterPlacementTensorWidth.plan<br/>qualifiedLanes = 8"] W -->|"tensorParallelLanes = w"| T["ClusterPlacementPlanner.tensorRequirement<br/>max(state, floor) + (w-1) x laneBytes"] W --> S["ClusterPlacementSetup: batchLanes = w"] S --> V["ClusterConfiguration.validate<br/>savesTensorParallelWidth"] V --> I["DistributedInstalledPlan.batchLanes = w"] I --> O["owner lease, DARKBLOOM_CLUSTER_BATCH_LANES, slot max_concurrency, ClusterSetupPlanning.loads"] I --> G["GLM5NextTensorParallelResidentRuntime.load<br/>requestCharge.reservedBytes(contextTokens:lanes: w)"] endTests (red first)
8afb8d66a8(red, tests only, with #1936's own APIs), then6067d0001a(the change) and1759d4b042(an older width test still pinned GLM's fixed eight: the first CI run's one issue):0092c1fed3(8afb8d66a8)1759d4b042PlacementSetupCheck.glmTensorParallelPair(CPU runner)ConfigurationCheck(CPU runner)InstalledBatchLanesCheck(CPU runner)ClusterPlacementTensorWidthTests.aGLMTensorParallelPlacementSavesTheWidestWidthItsLaneChargeAdmitsNowDistributedInstalledLanesTests.glmTensorParallelServesItsSavedWidth,DistributedInstalledCancellationTestsotherFamiliesAndUnsizedSetupsKeepTheirLanesnow pins the unsized default at oneGLM5NextNativeContextTests.aSavedWidthIsReservedAtLoadAsThePlanPricesIt(added with the change: it calls its API)PlacementChecksGLM (10 checks, added with the change)Also local, with the change:
run-flow.sh(33 passed),ClusterConsoleChecks(79,396 expectations),ClusterInstalledSessionChecks(passed),changelog check(69 valid),docs-impact-check(coverage OK),docs-check(only paths my sparse worktree leaves out:docs/reports/,landing/, thelibs/mlx-swift-lmsubmodule).CI on
d6369b5049: green (run 42728914739): every job, Provider Unit Tests and the GLM runtime tests included, after the refactor pass and the merge of #1936's4e7a1a6f03. Before it, CI on1759d4b042: green (run 42676090227): all 25 checks, including the five Cluster Runtime Tests shards, both Provider Unit Tests shards, Cluster Release Build Checks, both Focused Checks shards and the three non-blocking two-rank Cluster GPU Tests shards. The first run, on6067d0001a, failed one provider test that still pinned GLM's old eight (fixed in1759d4b042).Inside the non-blocking GPU shards, nine GPU tests fail on #1936's head too, with the same issue counts (run 42661043947): Qwen TP batch MTP windows (
wideKernelRowsEqualEachRowsOwnWindowCall,wideKernelVariantThroughput), fused gated-delta and RMS-norm kernels, the CPU-stream sums, andfullHistoryGatherIsOnePromptFramesTransient. None comes from this change; the jobs pass because they are non-blocking.Refactor pass (independent,
bad81ce7b4..d6369b5049)Behaviour unchanged. Signed commits, with #1936's new head merged in (
bad81ce7b4, no conflict):169734fda0, the tensor-parallel lane families:tensorParallelLaneAdaptersbecame a set (with GLM's fixed eight gone every value wasdefaultBatchLanes), andservesTensorParallelLanesis the one predicate behind a tensor-parallel pair's default and its lanes retiring alone.169734fda0, GLM's lane charge:GLM5NextTensorParallelRequestCharge.laneBytesre-derived the history length and the paged-history bytes. It now shares statichistoryTokensandpagedHistoryByteswith the request charge andreserveLane, so the page arithmetic lives in one place.169734fda0, smaller cleanups:GLM5NextPlacementFamily.tensorParallelPlanlost a default no caller used.d6369b5049: one of those renames collided with the Qwen cases'savedLanes, and CI's provider test build refused it (run 42717960634, the only failure). The helper is nowsavedAndScreenLanes.PlacementChecks,ConfigurationCheckandInstalledBatchLanesCheck. They include the growth hidden under the state estimate, which is what movinglaneGrowthout ofmaxfixed. The shared width search's mutants were run on feat(cluster, provider): 0.10.12 — Gemma 4 tensor parallel serves as many requests at once as both Macs admit #1936 (its body), and the GLM cases pass in the same scratch harness throughdecide.DistributedInstalledPlan.batchLanes, as for Gemma (feat(cluster, provider): 0.10.12 — Gemma 4 tensor parallel serves as many requests at once as both Macs admit #1936's body).ClusterService.checkForUpdate→replanAfterUpdate, coordinator pairs included).Not covered by CI: the GLM layout's lane charge from the real artifact.The premise was wrong: the registeredconfig.jsonis checked in asCapabilityChecks/Fixtures/registered-glm53-flash.configuration.json. Round 2 adds the blocking test (P1-1, top).Qualification on the M5 Ultra pair (window C1, 2026-11-10)
C1WIN-1110T0113Z: L1 (one lane) passed (reserved=56124572169). LW, LWL and LF (8 lanes) were refused at Mac A's LOAD gate: 211.10 GiB needed against 200.19 GiB admissible, with 38.68 GiB of other programs' memory in use. That is P2-3, fixed above.C1WIN-1110T0148Z: LW6, LWL6 and LF6 (6 lanes) passed: every lane's tokens equal its solo run, the logprob waves bit for bit, the fault run's newest lane aborted alone.C1WIN-1110T0156Z: LW at 8 lanes passed once memory allowed: waves 1/2/4/8, every lane's tokens equal its solo run; aggregate 105.4 / 111.5 / 99.8 / 88.9 tok/s at 1 / 2 / 4 / 8.rdma_en3,encrypted_v1, at the width the setup saves (8 expected);reserved=, and its memory peak within it;darkbloom-cluster-plan layout --model-dir …on either Mac, CPU only) stateslaneBytesof about 9.7 GB, and the guided plan on the pair's own profiles saves 8;Limitations