Repository navigation
0.10.12 candidate d - #2038
Merged
Merged
0.10.12 candidate d#2038
Conversation
#2021's Provider Unit Tests shard 2 failed at "Prepare selected MiMo audio fixture" twice (run 43132089921): its SDK pin move selects the MiMo audio gate (scripts/ci-component-paths.py MIMO_AUDIO lists libs/mlx-swift-lm), and as a pull request into release/candidate-0.10.12c it cannot read the Darkbloom cache copy that #1970 (into dev) restored, so it downloaded the 1.87 GB codec from models.darkbloom.ai. At about 2 MB/s each 900 s curl attempt stopped short (1.60 and 1.79 of 1.87 GB) and curl's --retry restarted from byte 0, so the step failed after 30 min. download() now runs up to eight 900 s attempts within 45 min, each with --continue-at - so it resumes the partial file, with 5-60 s pauses; curl's own --retry is gone (it restarts from zero). A partial longer than the file is restarted, and a file with the wrong digest is deleted so no later run resumes it. scripts/test-prepare-mimo-audio-fixtures.py (offline, 5 tests, run in provider-tests.yml's offline fixture step) fails 5/5 on the old script; a real fetch of tokenizer.json with two throttled 2 s attempts resumed to the pinned digest on the third. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ate in force A refused request starts no work, so it measures nothing. On an ordinary engine with one slow isolated-prefill sample and no calibration anchor, every later request is projected at that sample's rate and refused until the 30-minute idle expiry, however old the sample is. Add failing tests for the intended rule through the real submission path with a scripted engine (no model, GPU or real throughput): - three refusals on an idle Mac with evidence older than the freshness window are followed by an admission that remeasures the rate; - a Mac that remeasures as slow goes back to refusing; - an admitted request that measures nothing does not reopen admission straight away; - a full streak waits for an idle Mac. And guards that already hold and must keep holding: a request whose absolute deadline has passed is refused, fresh slow evidence keeps refusing, the kill switch keeps the previous behavior, and refusals beside another model's work are not counted. Co-Authored-By: Claude <noreply@anthropic.com>
A deadline_unreachable refusal admits nothing, so it measures nothing. On an ordinary engine an isolated prefill estimate that refuses an idle Mac could therefore only be replaced by the idle rules of IsolatedPrefillAdmissionRate: the calibration anchor after 120 s at nominal posture, or no projection after thirty minutes. With no anchor, with an anchor that is itself slow, or off nominal posture, one slow sample kept refusing long prompts for the full thirty minutes. DeadlineRefusalStreak counts consecutive refusals that only the isolated prefill rate explains: ordinary engine, idle Mac, a bounded projection of nothing but this request's own prompt, no reviewed calibration and no native media. After three with no admission in between, evidence older than the 120 s measurement freshness window stops blocking the next request that finds the Mac idle. That request is submitted like one with no measured rate, so its absolute deadline still applies, and its isolated prefill replaces the expired estimate. Fresh evidence refuses as measured. An admission that ends a full streak starts a 120 s retry interval, so a Mac that really is too slow gets one such admission per interval even when the request ends before it measures. Unbounded (fail-closed) projections never count, so memory admission is unchanged. Native engines keep their own recovery probe. DARKBLOOM_TTFT_ADMISSION_FIXES=0 turns the rule off with the other estimator corrections. No wire or output change. Co-Authored-By: Claude <noreply@anthropic.com>
Document the rule in the deadline section of the inference architecture page and in the hardware-support page's deadline admission rates, list the new cases in the test guide, extend the DARKBLOOM_TTFT_ADMISSION_FIXES row and note that `unmeasured_prefill` also covers a measured rate the provider set aside as expired. Add the changelog fragment. Co-Authored-By: Claude <noreply@anthropic.com>
The dedicated refactor pass renamed three methods on DeadlineRefusalStreak: `refused()` to `recordRefusal()`, `admitted(at:)` to `recordAdmission(at:)` and `estimateExpired(at:)` to `expiresStaleEvidence(at:)`. The first two mutate and read as queries in the past participle; the third is also true while evidence is fresh, so it should not sit beside `isolatedPrefillEvidenceExpired()` under a name that claims the same thing. Identifiers only: conditions, order and mutation points are unchanged. Co-Authored-By: Claude <noreply@anthropic.com>
… streak A calibration cell wider than one row refreshes its prompt-size bucket without touching the isolated-prefill aggregate. The refusal streak checks only the aggregate's age, so with such a bucket fresh it would set aside a measurement made seconds ago. This test fails until the next commit. Co-Authored-By: Claude <noreply@anthropic.com>
The refusal streak set aside the isolated-prefill estimate whenever the aggregate was older than the freshness window. A calibration cell wider than one row refreshes its prompt-size bucket and not the aggregate, so a measurement made seconds ago in this prompt's size domain could be set aside with it. The streak now also requires that no fresh bucket covers the prompt, which keeps "fresh evidence refuses as measured" true for both sources the projection reads. Co-Authored-By: Claude <noreply@anthropic.com>
… only A full refusal streak admitted the next request of any size without a time projection. A Mac that is honestly too slow for long prompts would then run one long prompt to its first-content deadline every 120 seconds where it used to refuse at once. Pin the limit the native recovery probe already uses (`PrefillEvidenceRecovery.maximumPromptTokens`, 1,024 tokens): - a prompt over the limit is still refused after a full streak, and the streak stays full for the next small prompt; - a slow calibrated Mac refuses long prompts however many it refuses. The streak tests now submit a 1,000-token prompt so they stay inside the limit. The two new tests fail until the next commit. Co-Authored-By: Claude <noreply@anthropic.com>
…only After a full refusal streak the next request on an idle Mac was submitted without a time projection whatever its size. Only the absolute deadline ends such a request, and that deadline grows with the prompt, so a Mac that is honestly too slow for long prompts ran one long prompt to its deadline every retry interval where it refused at once before. The unprojected admission now takes a prompt of at most PrefillEvidenceRecovery.maximumPromptTokens (1,024), the limit the native recovery probe already uses. A small prompt is enough to remeasure the rate. A longer prompt is refused from the expired evidence as before and leaves the streak full, so the next small prompt is the one admitted. A Mac that is sent only longer prompts is not helped by the streak: it refuses until a small request arrives or the 30-minute idle expiry, as before this branch. Docs and the changelog fragment state the limit. Co-Authored-By: Claude <noreply@anthropic.com>
…count, and a full streak must probe Red on 0e6ac37 + #1956 b4e1d94 (review-1956-1957.md §5 must-fixes 1-3 and the recommended design): - a full streak still refuses a small request from the stale estimate; no request is submitted unprojected (fails: #1956 admits it); - after a full streak a late retry (300 ms left) is refused at once (fails); - refusals priced at a fresh rate, late retries (3 s left) and refusals at the calibration anchor do not count (fail: #1956 counts all three); - a projected admission ends a partial streak (passes on #1956; kills its surviving mutant m3); - on a toy Qwen EngineV2, three real refusals over stale evidence re-run one solo calibration probe and the next request is priced from it (fails: #1956 starts no probe and admits the request unprojected). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…be, never an unprojected request Review-1956-1957.md §5's recommended design, with must-fixes 1-3: - No customer request is ever submitted unprojected because of a streak (removes #1956's `return nil` admission), so none is admitted that is already out of time (must-fix 1 by construction). - `recordDeadlineRefusal` counts only refusals the stale estimate explains (must-fix 2): the isolated aggregate had expired, no fresh prompt-size bucket priced the prompt, the rate was below the calibration anchor when there is one, and the request still had `minimumRemainingBudget` (5 s): late retries never count. The existing idle / bounded / prefill-only / ordinary-engine conditions stay. - A full streak makes `staleEvidenceProbeDue` true; the next capacity tick's `startModelCalibrationIfNeeded` then re-runs one solo uncached cell (`ModelCalibrationPolicy.evidenceRefresh`: 512 prompt + 32 output tokens, no shape warmup) through the existing idle-calibration owner: idle Mac only, nominal posture, preempted by any foreground request, published as a calibration cell (replaces the estimate and the anchor). - Starting the probe ends the streak and starts `probeInterval` (120 s): at most one probe per Mac and model per interval, preempted or not. It logs one `info` line (`darkbloom.DeadlineRefusals`: model, refused rate, evidence age, anchor, last prompt tokens). - `expiresStaleEvidence()` is replaced by `permitsEvidenceProbe(at:)` (what it now permits); the admit-path tests become probe tests; m3's test is the red commit's `projectedAdmissionEndsPartialStreak`. No wire, coordinator, configuration or SDK change; `DARKBLOOM_TTFT_ADMISSION_FIXES=0` still turns it off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fragment is renamed to deadline-refusal-streak-probe.md and rewritten: the streak re-measures with the idle calibration probe and never admits a request unprojected. inference.md (deadlines and startup calibration), hardware-support.md, test.md and configuration.md follow; prediction-decision-telemetry.md returns to its 0.10.12 text (a streak no longer produces `unmeasured_prefill`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One logical line, one source line under 120 columns. No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t's retirement A refusal counts only on an idle Mac, and the bridge retires a finished request on its own actor hop after the stream ends. Without the wait the next refusal could find the request still active and not count (seen once in nine local runs, under an unrelated mutant). 15 of 15 runs pass with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/test-provider-ci-workflow.py pins the exact commands of provider-tests.yml's "Test the prompt fixture downloaders offline" step, so #2023's new line (python3 scripts/test-prepare-mimo-audio-fixtures.py) turned "Check the CI plans" red (CI run 43145287715). The pinned list now has it. Red first: with this list, test_the_gate_requires_the_ci_plan_checks_of_ every_run fails against provider-tests.yml at 0b52123 (no audio test line) and passes with #2023's workflow; with the old list it fails against #2023's workflow. scripts/test-provider-ci-workflow.py: 35 tests OK; the other "Check the CI plans" commands and the four offline fixture tests pass locally. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#2024 moves from release/candidate-0.10.12c to release/candidate-0.10.12d, the merged 0.10.12 candidate in dev (step-3 folds and the redone Prepare). No conflicts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a branch scope The Darkbloom cache is each runner host's own (127.0.0.1:3129): #2017, a pull request into dev, missed on one attempt and hit on the next, and #2022, into the candidate branch, missed and downloaded in 53 s. The fragment no longer blames the pull request's base branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…settle The DevNet 0.10.12 release run 43162424068 (shard 5, attempt 1) failed `testNativeAudioReleaseAcceptsOpenRouterAACVideoThroughAuthenticatedHTTP` at its reservation check: 1, expected 0. Attempt 2 passed, CI (dev) run 43158852996 passed the same tree, and the check raced the engine: - the bridge returns the request's terminal to the client before the row's native retirement (`EngineV2Bridge+Events.swift:226-231`), and the lease the test joins is host-task ownership only; - the managed media reservation leaves the transaction's map only once its native side retires too: the SDK's `work.afterRetirement` runs the transaction's `retire` closure on the engine queue (`MiMoV26NativeLoadTransaction.swift:970-976`, `:1096-1103`). On a slow runner that retirement lands just after the join. In the failed run the rest of the test passed: retirement reached `.retired`, which needs an empty reservation map (`:1321`), and the ledger was back to 0. `assertNativeHTTPMedia` (the AAC video and PCM8 WAV tests) now waits up to 10 s for the count to reach 0 before asserting it, so a leaked reservation still fails. Red-first on Mac A with a 0.3 s sleep injected into that `retire` closure: the old check failed 5 of 5 (at `0b52123a18` and `0e6ac37885`); waiting for the count passed 3 of 3, reaching 0 after 0.31 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… single Mac libs/mlx-swift moves 1b3520fe94 -> 49c145c2c9, the head of mlx-swift#71 on the fork's release/provider-0.10.12 (= 1b3520fe94 + this change only): a single Mac's HadamardQuantizedLinear calls of fewer than 12 rows (decode steps of up to 11 requests, tiny prompts, a chunk's tail) take the per-row path again, as in 0.10.11, which restores concurrent decode speed (two requests on an M5 Ultra: 71.5 tok/s batched against 78.4 per-row); prompt chunks of 12 rows or more stay batched (6-7x 0.10.11's prefill). Pairs are unchanged. Only Swift in Source/MLXNN changes; Source/Cmlx/mlx 72dffa2d and mlx-c 2ac897e3 are unchanged, so mlx.metallib is unchanged. After #71's review the pin moves to its merge commit. Docs: inference.md's Bonsai section (the row-count table, why 12, and that outputs can still depend on neighbouring requests through the SDK's batched plain in_proj_a/in_proj_b, as in 0.10.11), hardware-support.md, test.md. Changelog fragment bonsai-27b-concurrent-decode.md. The consumer test's doc comment says the default batches calls of 12 or more rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ts, and a relative probe bar (red) Review-2024 §5 should-fixes 1, 2 and 4, and the CI failure of run 43150900923. - `staleRefusalStreakRerunsTheProbe` (GPU): the absolute `measured > 1_000` failed on a loaded CI VM that measured 905.45 tok/s although the probe ran. The bar is now relative to the stale 50 tok/s (at least twice it, which fits the follow-up 1,000-token prompt in 12 s) and the probe's cell must be the anchor. Should-fix 1: starting the probe ends the streak and sets `probeAvailableAt` to start + 120 s (kills g-start-record). - `unprojectedAdmissionEndsPartialStreak` (the reviewer's sf2 patch) and `cancelledAdmissionEndsPartialStreak` (a scripted `CBv2FirstTokenAdmissionCancellation`, `PrefillScriptEngine.cancelAfterAdmit`) kill the two surviving reset mutants (r-unproj-reset, r-cancel-reset). Both pass on correct code. - Red, against scaffolding that exists but is not read yet: `DARKBLOOM_TTFT_REFUSAL_PROBE` parsing and its launchd passthrough; with it off, refusals neither count nor ask for a probe while the estimator corrections stay on; on battery a full streak does not probe until AC power returns. Local run: 38 tests, 3 fail with 10 issues (the three red ones). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nt is served (red) SUPER-IMAGE-504: the Super provider serves one image at a time and answers any image that arrives while one is active with an instant `busy` (`NemotronSuperLocalImageBinding.runEncoded`: `guard active == nil`), which `SuperHTTPErrors.map` sends as 429 `queue_full`: a coordinator bounce, and after three, `429 oversized_request`. The slot (`active`) is released only after the request's settlement: the bridge closes the request's stream before the row's native retirement, then `execute` waits for the terminal observation (native settlement), then the cleanup task releases the media charges, then `active` is cleared. An image that arrives in that window is refused although this Mac would serve it a moment later. Plumbing and a DEBUG-only seam, no behaviour change: each request carries an `AnswerEnded` mark, set when its engine stream closes (or it is cancelled); the seam holds the settlement after that mark, as a slow settlement would. The test (synthetic Super owner, Metal): a second image arrives while the first's settlement is held 300 ms; it must be served, with every media charge released at the end; and with an 1.8 s settlement, a request must still be refused, but only after waiting about 1 s. Red on today's admission: the second image is refused `busy` at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s on battery Review-2024 §5 should-fixes 4 and 5 (the probe's part): - `DARKBLOOM_TTFT_REFUSAL_PROBE` (default on; `0`/`false`/`no`/`off`, trimmed, case-insensitive, turn it off): with it off, refusals neither count nor ask for a probe, and the estimator corrections (`DARKBLOOM_TTFT_ADMISSION_FIXES`) stay on. Forwarded to the launchd provider job like the other rollbacks (`LaunchAgent.inferencePassthroughEnvKeys`). `DeadlineAdmissionFixes.isOn` is the shared parser. - A due probe at nominal posture also needs AC power (`DeadlinePowerPolicyReader.activeSource() == "ac"`, the IOKit reader the deadline posture monitor already uses; read only once a probe is due). Unknown or battery: no probe, Low Power Mode or not; the streak waits for AC. The startup calibration is unchanged. No user-activity gate: neither calibration nor the provider has one to reuse. Local run: 111 CPU tests in 14 suites pass, the three red tests included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…settlement is served (red)
Super's owner serves one request at a time by default
(`DARKBLOOM_NEMOTRON_SUPER_MAX_CONCURRENT`, default 1): `SuperHTTPEngine`
admits through `owner.admitLocalRequest()` before the route, and answers a
second request, text or image, with 429 `queue_full` ("the Super owner is
busy"). The admission returns only after the image's settlement, its media
charge release and the relay's terminal.
Live loopback HTTP, synthetic Super owner (Metal): an image's settlement is
held 400 ms after its answer ended (the binding's test seam); a second
request, an image and then a text one, must be served. Red today: 429.
`busyOwnerRefusesWith429BeforeAnyResponse`, which holds a request before its
answer ends, keeps pinning the immediate refusal there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`DARKBLOOM_TTFT_REFUSAL_PROBE` in configuration.md (its own row) and in cli-reference.md's launchd passthrough table; inference.md's deadlines section (the switch, never on battery, no user-activity gate in either calibration) and its "Three estimator corrections and a refusal probe" (review-2024 nit); hardware-support.md; test.md's new tests and the relative probe bar; the changelog fragment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…p to 1 s instead of bouncing Where the slot is released (`0b52123a18`): the owner admission (`SuperHTTPEngine`: `owner.admitLocalRequest()`, one request by default) and the image binding's `active` are held until the request's settlement: the bridge closes the stream at the engine terminal, then the binding waits for the terminal observation (native retirement), then its cleanup releases the media charges, then `active` clears, then the relay sends the terminal and the task returns the owner admission. A request arriving in that window was refused at once: 429 `queue_full`, a coordinator bounce. Now, with every admitted request's answer ended (the relay saw its terminal usage), `Owner.admitLocalRequest(waitingUpTo:)` waits up to `NemotronSuperServingPolicy.finishingWait` (1 s) for an admission instead of refusing; the image binding's `admit()` does the same for its active media request once its stream closed (or it was cancelled). The previous request's media charge is released before the next one reserves, so no memory is admitted twice. Mid-answer arrivals are still refused at once (`busyOwnerRefusesWith429BeforeAnyResponse`), and the wait is bounded. Turns the two red tests green; adds `fullOwnerWaitsOnlyForARequestWhoseAnswerHasEnded`. Docs: direct-mode refusal table, inference.md's Super media section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
W1-D1 (0.10.12 W1, pair-2): on a Mac that serves only you, `darkbloom status` listed no answers while local answers ran. The standalone server writes the state file status reads (StandaloneServer+LifecycleControl), without DaemonState.runningRequests; only the coordinator-connected ProviderLoop fills it. The test serves one local request on a held engine through an Only me server's resident slot, writes three tokens, and expects the state file to list it (model, tokens, the request's hash), then to empty when it finishes. Red on the candidate: the list never appears. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ly you W1-D1: `darkbloom status` listed no answers while local answers ran on an Only me Mac. The list was filled only by the coordinator-connected provider (ProviderLoop.refreshRunningRequests → currentDaemonState); the standalone server that serves Only me wrote its state file (StandaloneServer+LifecycleControl) without runningRequests. - StandaloneServer.runningRequestsForState samples every resident slot's bridge (EngineV2Bridge.runningRequestSamples, the counters each request already keeps) through the same RunningRequestProgressTracker, at most every 2 s, carrying elapsed times on to each 250 ms state write; the lifecycle publisher writes them as DaemonState.runningRequests. - Docs (cli-reference, direct-mode, inference.md) and a changelog fragment. A pair that serves only on its local API (cluster local) still lists none: its DistributedLocalServer process writes no state file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…to settle too The red-first run on CI (#2027: a 0.3 s slower native media retirement) failed exactly three tests at their single reservation read: the two audio HTTP tests fixed in the previous commit, and `MiMoV26EncodedMediaIngressTests.testNativeMediaReleasePNGJPEGAndMP4GenerateThroughAuthenticatedRoutes` (`:375`), which reads the count once after joining its leases: the same race. It now waits up to 10 s for the count to reach 0 as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g wait docs/AGENTS.md section 5: a content change refreshes the stamp. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…range is ignored The review of #2023 (review-2023.md, S1-S3 and N1, N3) and its verified patch sf-clamp-range.patch, applied as is: - S1: each attempt's --max-time is min(900, time left), at least 1 s (curl reads 0 as no limit), and no pause runs past the deadline. The step's worst case is 2,700 s again (it was 61.0 min: the last attempt could start at 44:59 and run 900 s; the job limit is 60 min). - S2: curl exit 33 (the server answered 200 to a range request) deletes the partial, so the next attempt starts over instead of every later run failing the same way. - S3: test_the_attempts_fit_in_the_budget (fake clock; pins --max-time 900 first, --fail, --speed-limit 102400 --speed-time 60 and the budget) and test_a_server_that_ignores_the_range_starts_the_file_over. - N1: unlink(missing_ok=True) after a digest mismatch. - N3: docs/developer/test.md no longer says "retries up to 5 times"; build.md lists the new offline test. The CI fragment says "never past 45 minutes from the first" and names the release qualification lane. Red first: the two new tests on 40f3b95's script fail (2715.0 not less than or equal to 2701; the exit-33 test errors) and pass with the script change. Offline: test-prepare-mimo-audio-fixtures.py 7 OK, test-provider-ci-workflow.py 35 OK, the other fixture and plan self-tests OK (Python 3.14). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review nit: "TF32 (NAX) on M5, FP32 steel on M1 to M4" describes MLX's matrix kernels only; batched decode steps below MLX's vector limit run its vector kernels. The inference.md table now says both. Docs only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ved (red) SUPER-SLOT v2. On the single-request owner (the default) an image that arrives while another image's answer is streaming is refused at once with 429 `queue_full`: a coordinator bounce. With one image's decode taking about 2 s (production: first content to end p50 2.0 s, p90 4.1 s), most of those images could be served by the same Mac moments later. Live loopback HTTP, synthetic Super owner (Metal): the first image is held after its content, before its native terminal (the bridge's existing terminal hook). A second image must wait, reserving nothing, and be served (200) once the first finishes. Meanwhile a third image and a text request are refused at once: one request waits at a time, and text never waits mid-answer. Red on #2029 v1: the second image gets 429 at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ts first-content budget SUPER-SLOT v2, on top of #2029's finishing wait. A Super Mac serves one image at a time; an image arriving while another image's answer is streaming was refused at once with 429 `queue_full`. Offline replay of 11-11 production (no oracle, one waiter per Mac): waiting up to 3 s, only behind images already streaming, would have served about 755 of the 1,605 bounced image requests that were never served, with 233 waits that time out (80 of them on requests the coordinator served elsewhere). - Owner admission (`admitLocalRequest(waitingUpTo:stackedUntil:cancelled:)`): besides #2029's finishing wait, a media request may wait until `stackedUntil` while every admitted request is a media answer already streaming (first chunk passed) or ended. Progress is noted per request (`LocalRequestProgress`: first chunk, answer end, finish), replacing #2029's two counters' bare calls. One request waits at a time and takes the next admission before any newcomer; another is refused at once. Task cancellation, or the local client's disconnect, ends the wait. - Image binding (`admit(stackedUntil:)`, owners serving more than one request): the same, behind its active media request once that one's first chunk has passed (`MediaProgress`, formerly `AnswerEnded`). - The bound (`NemotronSuperServingPolicy.stackedMediaWaitEnd`): at most `stackedMediaWait` (3 s); for a coordinator request, only while its forwarded first-content deadline still covers the owner's expected media first chunk (the longest of its last 8, 6 s before the first) plus a 0.5 s margin; no room: refused at once, as before. A local request forwards no deadline and may wait the whole bound. - Memory: a waiting request reserves nothing; the previous request's media charge is released before it reserves. - Text never waits mid-answer, and no request waits behind a text answer or an image still in prefill. Tests: the red HTTP test turns green; new owner tests (stacked wait, one waiter, priority, bound, both cancellations, the first-chunk estimate), the budget rule, and a binding test; `busyOwnerRefusesWith429BeforeAnyResponse` now also pins that text is refused at once and an image after the bound (its held image outlasts it), and the shared terminal gate's failsafe is 40 s so those waits fit. Docs: direct-mode refusal table, inference.md's Super media section. Changelog fragment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ider-0.10.12 The reviewed merge commit of the Bonsai 27B per-row two-request decode change replaces 4e79ee5f7f, the #71 commit this PR pinned so far. Its tree equals #71's final head 68c37c9686 (checked); its first parent is #70's merge 1b3520fe94. Source/Cmlx/mlx stays 72dffa2d and mlx-c 2ac897e3, so mlx.metallib is unchanged. Only the gitlink and the changelog fragment's pin line change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…is refused at once without `NemotronSuperManagedSlotTests.concurrentImageIsRefusedWith429AndInvalidVideoWith400` pinned the old rule: an image arriving while another image streams gets 429. With the stacked wait, a coordinator request waits when its first-content budget leaves room, and this harness forwarded none, so the second image waited and was served (CI run 43178876758, shard 1). The harness's `send` now takes a `FirstContentDeadline`, as the coordinator path does. The test keeps its 429 case with a 450 ms budget, which leaves no room for a wait (the bound needs the expected first chunk and the 0.5 s margin before the deadline), and adds the other side: with 30 s, the image waits for the streaming one and is served. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…iving mutants, production-width wording From review-2026-2029 (#2026 and #2029 v1 ship; wording must-fix S1, should-fixes S2-S6, notes N1 and N2): - S1, wording: the managed Super slot serves up to 8 requests at once (`defaultConcurrentRequests`, halved by the load fit), and only images and videos one at a time; the one-request owner is the qualification hook's default. Fixed in both changelog fragments, the direct-mode refusal row and inference.md's Super media section. - N1: at the image binding, a stacked wait now holds only while the owner keeps a request slot free besides the waiting image's own (`Owner.hasFreeLocalAdmission`). A waiting image no longer takes the last slot a text request would get; on a width-2 owner, with an image streaming, the next image is refused at once as before, and text beside it is served. - S6: the DEBUG settlement seam runs in `execute` right after the answer is marked ended, not inside the mark, so a mark moved after the native settlement fails the settlement tests (mutant M7). `markEnded()` is synchronous again. - Tests: the binding's refusals without a bound and behind one waiter are timed (< 500 ms, M1), including `encodedRGBSuccessCancellationAndBusyIsolation`'s; a cancelled binding waiter returns at once and leaves no waiter (M4); a drain ends a binding wait with `closed` at once (M8); the stacked image reserves only after the first image's charges are released, sampled at its first chunk (M10); the owner's free-slot rule; after the HTTP test's served waiter, an image behind a text answer is refused at once, so every request's progress returned with its admission (M5); and a width-2 HTTP test, the production shape, for the free text slot (S3). Owner cancellation (M3) was already covered. - N2: one deadline (`stackedUntil`) already bounds both slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dmission On the managed slot (up to 8 requests) a media request passes the owner at once and waits, if at all, at the image binding. Measured from the owner's admission, its first-chunk time included that wait, so each stacked wait inflated the owner's expectation (the longest of the last 8) and shortened or disabled the next coordinator request's wait. `MediaProgress` now reports the time from the binding's admission to its first chunk, once; the relay only notes that the answer streams. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, the stop during the wait (red) The independent review (review-2033.md S1-S3) found: - S1: a `start` part runs under the AppKit host, which has already taken SIGTERM and SIGINT (ProviderSignalHandler: ignored, read by dispatch sources) before Start.run(). So the service's stop does not end the part during the 20 s wait after the ask, as the comment claimed; it sleeps the whole wait, then carries on starting. - S2: the ask is made even when its 6 h record could not be written. - S3: four of the reviewer's mutants passed the PR's tests: a plain string comparison of the versions, the 6 h record keyed on the supervisor's release, the record written after the ask, and launchctl print of another job. New tests: - the releases' order decides, never the text's: DevNet build 99 -> 100 and 176 -> 177 (W1's morning case), 0.10.9 -> 0.10.10 and 0.10.12, 0.10.9-dev -> 0.10.12-dev, and the reverse and equal cases; - a newer installed release asks again within 6 h; - launchctl print asks for this build's label, and the record is on disk when launchd is asked; - a supervisor with no service running (before a re-exec) is left alone; - `kickstart -k` is what launchctl is asked, and its refusal is said; - an ask that can't be recorded is not made (red: S2); - in a child with SIGTERM and SIGINT taken as the AppKit host takes them, a SIGTERM during the wait ends the process (red: S1), and after the wait the handlers are back. Seams with today's behaviour: waitForStop(seconds:) is the plain sleep, and kickInBackground takes the launchctl runner. Red here: the S1 and S2 tests; the order, record and label tests pass, and fail on the reviewer's mutants (string order, M9, M12, M15, M17). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sk only once recorded The independent review (review-2033.md, S1 and S2): - S1: the 20 s wait after the ask did not end at the service's stop for a `start` part, as the earlier commit said it would. Rank 0, a coordinator-paired part and a solo server run under the AppKit host, which takes SIGTERM and SIGINT for the provider's own drain before Start.run() (ProviderSignalHandler: ignored, read by dispatch sources), so a SIGTERM was only noted: the part slept the whole wait, then carried on starting. Only `cluster link-follower` ended at once. waitForStop now gives SIGTERM and SIGINT their default action for the wait and then gives them back what they had (sigaction), so the stop ends every part at once and a part that nothing stopped starts as before. - S2: the ask is made only once its 6 h record is written. A record that can't be written means no restart, said in the part's log, so the no-loop property doesn't depend on launchctl. Docs: cluster-always-on (the coordinated update, step 4): the order is the releases', the parent check, the record before the ask, and the wait's signals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t its first chunk Run 43182522534 (shard 2): `stackedImageWaitsForAStreamingImage` passed every wait, cancellation, one-waiter and serve check, but its M10 check compared the stacked image's reserved bytes at its first chunk with those sampled while the first image was held before its native terminal, when the first image's KV reservation was already gone. Both images are identical, so the reference is now the first image's own reserved bytes at its first chunk; a stacked image that reserved while the first's charges were still held would see both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…efill or a stale count, binding-only stacking on wider owners (red) From the #2035 review (S7, S8, S9): - S7: the owner's expected media first chunk, which bounds a coordinator request's stacked wait, must not run low: never below 6 s, and a slow first chunk counts for the last 64 media requests, so a run of fast ones (prefix-cache hits, small images) cannot shorten the wait a slow image needs. Red today: 2 s after samples of 2 s and 1 s; the 9 s sample drops out after 8. - S9: an owner serving more than one request leaves stacked waits to the image binding (its slot keeps text room); at the owner they end in a refusal there. Red today: the request waits. - S8: pins two rules that already hold. An image does not wait behind an image still before its first chunk (held at the bridge's pre-submit gate; mutant V4), and a media request finished mid-stream leaves no streaming count, so behind text an image is refused at once (V15). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e binding only on wider owners From the #2035 review: - S7: `Owner.expectedMediaFirstChunk`, which bounds how long a coordinator request's stacked image may wait, is now the longest of the last 64 media first chunks (was 8), and never below 6 s (`NemotronSuperServingPolicy.minimumExpectedMediaFirstChunk`, which also replaces the unmeasured default). A run of fast first chunks (prefix-cache hits, small images) can no longer pull it under what a slow image needs: an image that waits and then misses its first-chunk timer fails, where an immediate 429 would have been re-routed. With 9-12 s per-attempt budgets the 3 s cap still dominates (budget - 6.5 s >= 3 s from 9.5 s), so the floor shortens waits only on tight budgets or slow Macs. - S9: the owner-level stacked wait applies only to an owner serving one request at a time. A wider owner leaves stacking to the image binding, which keeps a slot free for text; at the owner such a wait mostly ended in that refusal anyway. The red tests turn green. Docs: inference.md's Super media section; changelog fragment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…c8 2023@a4b05e92b6 2026@5a1a539711 2028@668c4af95a 2033@16b1a18bda 2029@109fbaec75 2035@df6a2553df (it is redone on top) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-0112 (0.10.12 final fold; head 3f83740)
….10.12 final fold; head d72808c)
…0112 (0.10.12 final fold; head a4b05e9)
…ttle (0.10.12 final fold; head 5a1a539)
…in (0.10.12 final fold; head 668c4af)
…rt (0.10.12 final fold; head 16b1a18)
…g-wait (0.10.12 final fold; head 109fbae)
…(0.10.12 final fold; head df6a255)
Version 0.10.12; the 68 changelog.d fragments rendered into CHANGELOG.md (scripts/changelog.py render --version 0.10.12 --date 2026-11-12, verbatim, in filename order) under the candidate heading, with the upgrade and rollout notes; v0.10.11 marked published (2026-11-09); the 0.10.12 section of docs/operations/provider-release.md. Base: master 6584269 (the 0.10.12 release branch's squash). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
0.10.12 candidate d: the overnight fold onto
dev's DEV_FINAL0b52123a18(#1970), re-prepared (ProviderCore.version0.10.12, 68 fragments).Folded: 2024@3f83740a3e 2030@d72808c3c8 2023@a4b05e92b6 2026@5a1a539711 2028@668c4af95a 2033@16b1a18bda 2029@109fbaec75 2035@df6a2553df. Head
b248c8e020, tree1bbcdc4242; release tree (+ prod default)5ff5639c6a. Pins 72dffa2d b1c94d29 44ab1755.Merge with
--adminafter CI (owner); thenrelease-pr-0112-m.shcutsrelease/dev-to-master-0.10.12b.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.