Repository navigation
GLM-5.3-Flash serving, residency safety and MiMo tool-schema parity - #1516
Merged
Merged
Conversation
…refix on), images, standing wired residency
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
5 tasks
…M_GLM_RECTANGULAR_VERIFY=0 rolls back)
…, glm5_next_v1 gate), 2048-token steps, per-token admission rate, NVFP4 model id, refactor review
The GLM slot gate yielded its token_budget_exhausted refusal inside an already returned stream, so the local endpoint committed a 200 SSE response and rendered the refusal as "Response generation failed"/server_error. In an 8-request flood of ~60K-token reservations on one M5 Ultra, 5 refusals arrived that way. EngineV2Bridge.submitTokenized now throws MultiModelBatchSchedulerEngineError.tokenBudgetExhausted for the GLM slot refusals, as it already does for advertisedContextExceeded, so the local endpoint returns 503 "Provider capacity is temporarily unavailable." before headers (streaming or not) and the coordinator gets the typed retriable capacity refusal. The non-throwing overload keeps its in-band error, and the GLM media path no longer relabels the refusal as a construction failure. Measured after the change: the same flood gives 5 clean 503s and serves the 3 requests that fit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mlx-swift-lm e4eed647 -> 48f1e000 (#314): a step whose scratch reservation is refused is deferred (rows rolled back exactly, newcomers requeued, admissions held until a running request leaves) instead of failing every row of the step. With the SSD prefix store on, three ~60K-token GLM requests no longer all fail when the second finishes prefill. No change on the success path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the serving concurrency is full, acquireServiceAllowance refuses the request so routing moves on, but submitTokenized yielded that refusal inside an already returned stream: local streaming clients got a 200 and an immediate "Response generation failed"/server_error frame (non-streaming clients already got 503). A 40-minute mixed soak on one M5 Ultra recorded 406 such frames in bursts at concurrency 4 (workers retrying at once); no admitted request failed. The refusal is now thrown as MultiModelBatchSchedulerEngineError.tokenBudgetExhausted before any stream exists, so streaming and non-streaming requests both get 503 "Provider capacity is temporarily unavailable." locally and the coordinator keeps its typed retriable capacity refusal; the non-throwing overload keeps the same in-band message. Measured: probes at concurrency 4+1 now return 503 for stream and non-stream alike. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds docs/reports/2026-10-21-glm53-flash-single-mac-qualification.md: the artifact, executable and metallib identities, the serving policy, every check with its evidence (bitwise port gate, perplexity, endpoint, OpenRouter templates, prefix cache incl. restart, images, video, long context, admission, soak), the final performance table on one M5 Ultra 256 GB and the known limits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
libs/mlx-swift e03513c6 (mlx 4a355746, mlx-c 0a97d9ab) reverts the one-page minimum on sub-page footprint quotations, so admission charges for models other than GLM are unchanged from the current release. libs/mlx-swift-lm 0d43713e (#314) merges main (#316: checkpoint imports staged from host zeros), carries the matching pin and fixes CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
libs/mlx-swift 205ee3d8 (mlx 6ee3062c, mlx-c bd03297a) and libs/mlx-swift-lm 322a231f. Only the core's fork.yaml and the pins changed since 3de98eb; the compiled sources are identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds the recheck of the final executable (darkbloom 94a83e27, #1516 15d7a83) after the core reverted the one-page footprint minimum and the SDK merged main: tokens, admission flood, performance, prefix cache, SSD restart, 125K context and a 20-minute soak all pass. GLM's serving MTP charge is 4.05 GB per request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only tests changed since 322a231f: two GLM suites that create MLX arrays move from the no-GPU unit tests to the kernel tests. The library sources the final executable compiled are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Responses objects echo the request's tools and tool_choice (mlx-swift-lm 37eaf5d6, the OpenAI shape), so the streamed response.created event contains the declared tool name. The test still refuses the leaked call itself: the thought marker, the call's argument, any function_call item or arguments, and the tool name anywhere in Chat Completions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
libs/mlx-swift c2cbef34 (core ad596687, C fa6565d4) and libs/mlx-swift-lm a630039b (#314), which merge main of each repository: thread-scoped command-buffer limits (mlx#36, mlx-swift#57), custom-kernel math modes and the Nemotron 3.5 Super SDK stack. GLM's chain keeps the production footprint policy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Layout only since a630039b. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests and layout only since a630039b. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Final executable d9780e86 (SDK merged with the Nemotron 3.5 Super stack): tokens identical to the previous final build, endpoint, OpenRouter templates, images, video, prefix cache, SSD restart, 64K/125K context, admission flood, a 20-minute soak and a same-state performance A/B. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thinking-off (reasoning.enabled false, enable_thinking false, chat_template_kwargs enable_thinking/thinking false, effort none/off) adds enable_thinking false to the render context. The pinned template has no thinking switch and always ends with an open <think>, so GLM5NextThinkingTokenizer, wrapping the GLM tokenizer once at load for text, media and token counting, appends </think>: the empty block the template writes for an assistant turn without reasoning. ReasoningPromptProbe starts the reply in content mode. The platform sidecar appends the same text. Thinking-off beside a thinking-on switch, effort level or budget is a 400. Hidden reasoning (reasoning.exclude true, include_reasoning false) stays a 400, renamed reasoningExclusionUnsupported. Other families are unchanged. Docs, changelog and the qualification record's limits (catalog now lists the full 262,144 context) are updated.
#314 deprecates the contiguous GLM forward; the paged CBv2 target is the only serving path. Four speedups that reached only the contiguous forward now reach it: the shared all-true validity and one-launch embedding for decode and verification steps, .serving's native NAX prefill projections, one-launch DSA payload staging, and split-K DSA decode attention for paged decode and MTP verification. The first three are bit-identical (the perplexity panel's 15,901 positions match exactly at 2,048-token chunks); the fourth gives paged decode the contiguous path's qualified arithmetic, so output differs from the previous pin only past 2,048 tokens of history. Native pins and the metallib (156f2624) are unchanged. Docs: the qualification record's new paged-attention section (token check, same-state A/B), the changelog fragment, the inference architecture page and the CLI reference's .serving description.
8-token-step perplexity of the split-K decode attention (+0.0049 %), and the endpoint, template, needle, image, video and SDK GPU-suite re-qualification of 344b39e3.
#314 keeps paged decode attention bit-exact: the split-K paged path is left off (perplexity +0.0049 %, top-1 97.6 % at decode-sized steps, below the lossless bar). Three speedups reach paged serving bit-identically: shared validity and one-launch embedding, native NAX prefill projections, one-launch DSA payload staging. darkbloom 6b95747e (metallib 156f2624 unchanged) is bit-identical to the qualified d9780e86: SDK real-model MTP tokens 30/30 with identical MTP counts, endpoint serial-target 14/14. The record, changelog, inference architecture page and CLI reference now describe that state.
mlx-swift main 67dc7528 (#58; mlx main ad4745a2, mlx-c main 5e9be4da) has exactly the tree of the qualified d80124e. mlx-swift-lm main 19634dd8 (#314) is the qualified ffb71842 plus #318, which changes only Nemotron Super and ModelOpt files that no GLM path reaches. The record and changelog name the merged pins.
Brings the Nemotron 3.5 Super managed provider (#1510, #1538) and #1533. Conflicts in the shared provider files keep both models side by side: supported-model list and managed-load refusals, scanner load estimates (GLM, then Super, then the existing paths; the combined optional chain is split for the type checker), MTP preparation, the failed-build unwind (master's restoreNewcomerReslice, then GLM's validated failure), the standalone partition (Super excluded before GLM's local qualification) and the local chat responder. There, Super's raw-chat hook is tried first and the inferred reasoning parser applies only to the generic service: Super's owner refuses a request parser, as on the coordinator path. Doc stamps take master's date.
Brings #1528 (Nemotron Super video) and #1523 (Qwen3.8 reasoning effort 400). Conflicts: WeightHasher takes master's equivalent F_NOCACHE reader (internal, so the uncached parity test keeps calling it); the scheduler rethrows every engine error (master's, which includes GLM's capacity refusal); the load path keeps GLM's artifact ownership and Super's reload refusal; the fleet budget comment names both retained GLM memory and Super reservations.
Gajesh2007
approved these changes
Oct 22, 2026
This was referenced Oct 22, 2026
Merged
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.
Update 2026-10-21: every submodule pins its latest main
The head is now
56b89df05(signed, Verified). It contains the latestmaster(through #1531) with no conflicts. mlx#37, mlx-c#16, mlx-swift#58, mlx-swift-lm#314/#325 and darkbloom-platform#114 are merged.main)libs/mlxad4745a2(#37)ad596687libs/mlx-swift67dc7528(#58; mlxad4745a2, mlx-c5e9be4da)d80124elibs/mlx-swift-lm0351444e(#314 as19634dd8, then #325, #323)ffb71842plus #318, #325 and #323: Nemotron Super/ModelOpt code and the mlx-swiftmainpin only; no GLM path reaches themmastermerges (b5f30eb1f,2498c5dfa,ec0d87ae1,fd9649540) bring #1519, #1527, #1533, the Nemotron 3.5 Super provider (#1510, #1538, #1528, #1531) and #1523. GLM and Super stay side by side in the shared provider files; the local chat responder tries Super's raw-chat hook before inferring a reasoning parser, which Super's owner refuses. Provider suites: 547 tests pass (one MiMo scanner test needs its separate fixture variable). GLM code and the metallib (156f2624…) are unchanged.---|---|---|
|
libs/mlx-swift|main67dc7528(#58; mlxmainad4745a2, mlx-cmain5e9be4da) | identical trees tod80124e,ad596687,fa6565d4||
libs/mlx-swift-lm|main19634dd8(#314) |ffb71842plus #318 (Nemotron Super/ModelOpt only; no GLM path reaches it) |GLM code and the metallib (
156f2624…) are unchanged. A provider built from these pins (darkbloomf28c62bc…) gives output byte-identical to the qualified build in all 14 serial-target endpoint cases (391, 2.7K / 10.5K / 31.6K prompts, 256 / 1,024 decodes, 3-turn chat, image, concurrent pair, repeats).Update 2026-10-21: paged attention only; three bit-identical speedups reach paged serving; #314 repinned to
ffb71842The head is now
af2913787. Every commit is signed and Verified.f0ff572f5,a450ae882,f4f8585db13fba500, then46e4d0ba(swift-format layout only): #314 with all four speedups on the paged path, including split-K paged decode attention. Docs: the qualification record's paged-attention section, the changelog fragment,docs/architecture/inference.mdand the CLI reference's.servingdescriptionaf2913787ffb71842(#314 withffb71842: paged decode keeps the absorbed attention). Docs: the qualification record and changelog fragment describe three bit-identical speedups;docs/architecture/inference.mdreturns to the earlier paged decode wording; the CLI reference names the native decode selection and sparse prefill kernels. The native pins and the metallib (156f2624…) are unchanged#314 deprecates the contiguous GLM forward; serving is paged-only. Three speedups that reached only the contiguous path now reach paged serving, each bit-identical: the shared all-true validity and one-launch embedding,
.nativeGEMMDSA/KDA prefill projections in.serving, and one-launch DSA payload staging. The fourth, split-K DSA decode attention for paged decode and MTP verification, stays off so serving output stays bit-identical to the qualified build (d9780e86…). It matches the contiguous arithmetic but not the qualified paged output: on the perplexity panel at 8-token steps it gives +0.0049 % perplexity (7.310244 vs 7.309884) and 97.60 % top-1 against absorbed decode attention, below the 99.4 % lossless bar, and the real-model MTP token check matched 20/30 sequences (the 2 prompts past 2,048 tokens differed). Its gain is given up: in the same-state endpoint A/B (A-B-B-A, medians of 6) the build with it (e31b5ba9…, SDK12d00808) decoded 256 tokens after 10.5K- and 31.5K-token prompts 5.5 / 3.8 % faster. In that A/B the kept native projections made prefill 0–1 % faster; decode is as the previous build's.Provider build
darkbloom6b95747e49d50d32b16018a53bc5fb22a77bd7db2478933e3495b1e15a22db02(SDKffb71842), metallib156f2624…:payloadKernelMatchesComposedRowsBitwise(BF16/FP16/FP32): pass.nativeGEMM)77a0d1d9(6 prompts × 5 modes × 256)d9780e86…(14 cases)flowchart LR subgraph Before["Before (233195ac4, SDK 77a0d1d9)"] D1[paged decode / verify] --> A1[ones validity + embed copy + cast/concat payload + absorbed MLX attention per query] P1[paged prefill] --> G1[MLX qmm projections] end subgraph After["After (af2913787, SDK ffb71842)"] D2[paged decode / verify] --> A2[shared validity + one-launch streams + payload kernel + absorbed MLX attention per query, same bits] P2[paged prefill] --> G2[NAX prefill GEMM, same bits] endThe qualification of
d9780e86…(thee35d965b9recheck below) therefore applies to this build unchanged.Update 2026-10-21: GLM thinking can be turned off; catalog lists the full context
The head is now
233195ac4. Every commit is signed and Verified.233195ac4reasoning.enabled: false,enable_thinking: false,chat_template_kwargsenable_thinking/thinking: falseor effortnone/offend the prompt with<think></think>and the answer is content only. Thinking-off beside a thinking-on switch, effort level or budget is a 400. Hiding generated reasoning (reasoning.exclude: true,include_reasoning: false) stays a 400, renamedreasoningExclusionUnsupported, as for the other families. Docs, changelog and the qualification record's limits updatedHow: the pinned template has no thinking switch and always ends with an open
<think>.GLM5NextPromptPolicyaddsenable_thinking: falseto the render context;GLM5NextThinkingTokenizer(wrapping the GLM tokenizer once at load, so text, media and token counting all use it) appends the</think>token (154842, an atomic added token). That is the empty block the template writes for an assistant turn without reasoning.ReasoningPromptProbealready starts the reply parser in content mode after</think>. The platform sidecar (darkbloom-platform#114) appends the same text, so prompts and cache keys match. Other families are unchanged.The catalog row
glm-5.3-flashis re-registered withmax_context_length262,144 (the model's full context); the provider's admission refuses what one Mac cannot fit. Everything else in the row is unchanged.flowchart LR subgraph Before["Before (e35d965b9)"] A1["reasoning.enabled false / enable_thinking false / effort none"] --> P1["GLM5NextPromptPolicy.validate"] --> X1["400 reasoningCannotBeDisabled"] B1["reasoning.exclude true"] --> X2["400"] end subgraph After["After (233195ac4)"] A2["reasoning.enabled false / enable_thinking false / effort none"] --> P2["GLM5NextPromptPolicy: context + enable_thinking false"] --> T2["GLM5NextThinkingTokenizer: ...<think> + </think>"] --> OK2["200, content only (ReasoningPromptProbe: content mode)"] C2["thinking-off + effort / budget / true switch"] --> X3["400 invalid_request"] B2["reasoning.exclude true"] --> X4["400 reasoningExclusionUnsupported"] endValidation: provider build, GLM prompt-policy, local chat/response, standalone server, prompt-contract and MiMo prompt suites pass (221 + 12 Swift Testing and 23 XCTest tests on the final head, MiMo prompt fixtures set); an independent review found no correctness, parity or other-family issues and its cleanups are applied;
make docs-check,make docs-impact-check BASE=origin/master,make changelog-checkpass. Not run on the model: no GPU time while the cluster runs; the change adds one prompt token on the thinking-off path only.Update 2026-10-21: merged master, Nemotron-merged SDK, qualification recheck
The head is now
e35d965b9. Every commit is signed and Verified.dcf86d7fcmaster(6 provider fixes; doc stamp conflicts only)ab5084355DiffusionGemmaReasoningEmissionTests: Responses objects echo the request'stools/tool_choice(OpenAI shape), so the tool name inresponse.createdis not a leaked call; the test still refuses the call's argument, the thought marker, anyfunction_callitem orarguments, and the tool name in Chat Completions. This test failed on every head of this PR beforeab67c7cf6,419bea278,599c0c79bc2cbef34(coread596687, Cfa6565d4) and mlx-swift-lm77a0d1d9(#314), each merged with itsmain(Nemotron 3.5 Super chain)e35d965b9Recheck of
e35d965b9on one M5 Ultra 256 GB, executabledarkbloomd9780e86…(metallib156f2624…unchanged; later commits change tests, one line break and docs):Update: other models keep production memory charges; GLM rechecked
The head is now
00a3e6c91. Every commit is signed and Verified.3de98ebcb,15d7a833d205ee3d8(core6ee3062c, mlx-cbd03297a) and mlx-swift-lm322a231f(#314). The core reverts the one-page minimum in the Metal footprint policy (mlx#374a355746), so admission charges for every model other than GLM equal the current release. #314 merged main (#316: checkpoint imports staged from host zeros) and fixes its CI (lint, two tests). The compiled sources of15d7a833dequal3de98ebcb; only metadata and pins differ7df9dac1f00a3e6c9197b2ca6d(#314; tests only, library sources unchanged)Why: with the page minimum, the SDK estimates for MTP drafters without a declared buffer layout (Qwen4 inline MTP, NemotronH35 MTP) grow from kilobytes to 37–671 MB per token, so those requests could never be admitted, and Qwen3.5 MTP's partitioned buffers cost about 32 KB more per token. Nothing installs the allocation cap the minimum was written for.
flowchart LR subgraph Before["Before (7be147ea8)"] P1[footprint policy: one-page minimum] --> Q1[Qwen4 / NemotronH35 MTP: 37-671 MB per token, never admitted] P1 --> G1[GLM serving MTP charge 4.89 GB] end subgraph After["After (7df9dac1f)"] P2[footprint policy as in the current release] --> Q2[other models charged as today] P2 --> G2[GLM serving MTP charge 4.05 GB] endRecheck on one M5 Ultra 256 GB, final executable
darkbloom94a83e27…, metallib156f2624…(unchanged):GLM-5.3-Flash on one M5 Ultra: speedups, fixes and end-to-end qualification, 2026-10-21
The head is now
7be147ea8. The qualification record isdocs/reports/2026-10-21-glm53-flash-single-mac-qualification.md(7be147ea8). Every commit is signed and Verified.a0f2ca64f,23eb9d3773ab6dd68 → e4eed647 → 48f1e000: the bitwise GLM kernel speedups ported from the cluster SDK, the MTP charge per chunk (4.89 GB fixed per MTP request instead of 11.31 GB), video frames kept at the 2 FPS sample, and the step-scratch deferral27ccfd58dF_NOCACHE) reads: the cached pre- and post-load hashes pushed ~150 GB of the just-loaded weights into the compressor (memory pressure warning, 17.5 s first-request stall)6c6643cd9/metricsdetail="key_unavailable"and a log line instead of a silent nil);#if DEBUG-onlyDARKBLOOM_DEBUG_CACHE_KEY_FILEto test the SSD tier across restarts on ad hoc buildsd0e30380evideo_url, inline MP4/QuickTime; the coordinator inlines https media)a9ac83bc3reasoning.enabled: true,include_reasoning,enable_thinking: true,reasoning.max_tokens→ effort); thinking-off is refused with a clear messagedad2d68d1,1216ffb84server_errorframe7be147ea8e114fc3489fd00958fmax_tokensdefaults to min(4,096, half the bound)Before / after
flowchart LR subgraph Before["Before (bc0f3ee9)"] L1[load] --> H1[cached weight hashes: ~150 GB compressed, pressure warning] R1[OpenRouter request with reasoning.enabled] --> X1[400] V1[video_url] --> X2[400 video not qualified] F1[long requests while memory is nearly full] --> X3[step refused: every row of the step fails; refusals shown as 200 + server_error] S1[ad hoc build] --> X4[SSD prefix store silently off] end subgraph After["After (23eb9d377)"] L2[load] --> H2[F_NOCACHE hashes: pressure normal] R2[OpenRouter request with reasoning.enabled] --> OK1[200, reasoning returned] V2[video_url] --> OK2[2 FPS sample → vision tower → target-only decode] F2[long requests while memory is nearly full] --> OK3[step deferred, newcomer waits, running rows continue; refusals are 503 before headers] S2[ad hoc build] --> OK4[metrics name key_unavailable; DEBUG key file for restart tests] endEvidence on one M5 Ultra 256 GB
All runs use
EigenLabs/GLM-5.3-Flash-MLX-NVFP4-mtp@8841c52a(aggregate3aae613f…), the.servingpolicy and metallib156f2624…./v1/responsesprevious_response_id: passserver_errorLimits
Refactor pass
Done by separate reviewer agents for every provider and SDK change; their cleanups are included and no behaviour changed.
Single-Mac release split, 2026-10-20
This PR no longer depends on the two-Mac cluster PRs. The new head is
bc0f3ee9:1bf438c0: merge ofmaster(cb0748a8). It brings in Default deeper complete-checkpoint SSD restores on large-memory Macs #1520 (deeper complete-checkpoint SSD restores) and fix(ci): preserve threat-review context and diagnose failures #1522. The only conflicts were three docs "Last updated" lines.bd43bdc5: pins the single-Mac native stack:libs/mlx-swift→cf921c05(mlx-swiftwork/glm53-flash-release, which pins mlx2bba342dand mlx-c2f1bcab9);libs/mlx-swift-lm→3ab6dd68(#314, with only that pin changed);bc0f3ee9: build fix. The previous headd62bf6b5did not compile:LocalChatUploadResponderpassedcode: "previous_response_not_found"toopenAIErrorResponse, which had nocodeparameter (error: extra argument 'code' in call).code, and the envelope encodes it only when present, so every existing error body is unchanged.LocalResponseConversationTestsplus four other server suites (StandaloneServerTests,LocalOutputTokenLimitTests,StandaloneServerModelAdmissionTests,LocalStreamingFailureTests) pass, 74 tests in 5 suites. That includes theprevious_response_not_foundcode assertion.The previous pins (mlx-swift
bfaa8a90, core3a179119, C46bce47e) existed only on the cluster stack: #33 → #35, #14 → #15 and #54 → #56. The new stack is that stack without three pieces, all of which stay on the cluster branches:Metal kernel sources and the generated JIT copies are identical to the previous pin. The provider uses none of the removed C entry points. This PR's own files touch no cluster paths: no file under
libs/darkbloom-cluster, and no tensor-parallel or JACCL path.The single-Mac dependency chain, merged in this order: mlx → mlx-c → mlx-swift → mlx-swift-lm #314 → this PR. None of them includes cluster code.
Evidence: the provider builds and links in release (
-c release, Xcode 27.1 / Swift 6.4) on the full single-Mac chain, withdarkbloomsha256e863e668…. The source-matchedmlx.metallibis sha256156f2624…a462d, byte-identical to the one built from the previous pin3a179119, so the GPU code is unchanged. The changelog check (24 fragments),docs-impact-check.pyagainst master anddocs-check.sh(187 files) pass. No model was loaded with this build; single-Mac end-to-end qualification of this head is the next gate.The October 19 "distributed text validation" section below came from the cluster stack's composition with this PR. It is not a test of this PR alone. Single-Mac end-to-end qualification of this head is the next gate.
Current distributed text validation — October 19
Parent-run installed endpoint validation used
darkbloom cluster, with prefill chunk 2048 verified on both devices. Automatic placement selected 19 layers on M5 Max and 26 on Mac Studio over encrypted RDMA. 18 cold/warm requests and 3 decode requests passed.These are HTTP endpoint results from the parent’s installed composition, not a chunk-size-only A/B comparison: composition and placement also changed. They do not establish that every candidate PR tree was independently installed or tested.
Open gates: the built-in CLI probe returned HTTP 400 for
enable_thinking:false; its repair is pending and is not included in these frozen commits. Startup required a one-off manual idle-file-cache purge on the peer; automatic recovery from a 20-layer load refusal subsequently selected 19 layers. MTP was off, images remain unqualified, and these requests do not establish sustained-soak, concurrent-batching, full-model-matrix or production readiness. No protected merge, release, deployment or catalog activation is part of this publication.Previous source candidate, superseded by the split section above:
d62bf6b54b4e8428fd9a2cf3091f01310a5938e0; SDK42b8b6045077ec3363fde78e593d1d1d5900b639; native Swiftbfaa8a90c1466bc11f7084a812581d1e61393022. Publication is dependency-first. Exact successor-head hosted CI and required human review remain open; historical CI entries below are not successor results.Summary
Add native GLM-5.3-Flash (
glm5_next) serving for the pinned EigenLabs NVFP4 artifact through the provider's managed load, paged KV, embedded MTP, complete-prefix cache, image prefill and tool-stream paths. This supersedes #1497 and includes the currentmasterbaseab423c1c.The residency repair prevents an unsuccessful backend start or end from being treated as unsupported hardware or clean retirement. The bridge keeps the actual engine, KV reservation and activity guards until native work and the residency ticket both settle. Concurrent completion joins the same result; an unproven failure retains ownership until process exit. Unsupported hardware is detected before ticket creation.
Malformed GLM tool suffixes now produce a visible error before residual fallback text or partial calls are emitted. Compatibility shutdown logs a fixed diagnostic without copying the caught payload, the production build excludes the testing-only advertisement seam, and supplemental prompt vectors cover effort aliases and image-marker rendering.
The SSD fixture follow-up routes the shared prefix-cache helper and six bridge write fixtures through the existing test-volume selector. Invalid selection and directory-creation errors now propagate; production cache guards, assertions and cleanup remain unchanged.
MiMo Chat preparation now preserves original function schemas for the loaded exact
mimo_v2family, keeping provider/local serving, tokenization, recount and benchmark prompts aligned without changing other families or forced-tool admission.Before
After
flowchart LR A["Platform check before ticket"] --> B["Native owner and residency operation"] B --> C{"Both settled successfully?"} C -->|Yes| D["Publish or release once"] C -->|No| E["Keep engine, KV claim and activity guards"] F["Complete GLM tool suffix"] --> G{"Parser accepts all calls?"} G -->|Yes| H["Emit validated calls"] G -->|No| I["Visible generation failure"] classDef safe fill:#dbeafe,stroke:#2563eb,color:#172554 classDef retained fill:#fef3c7,stroke:#b45309,color:#451a03 class A,B,D,H safe class E,I retainedEvidence
scripts/run-provider-tests.shcompleted in 622.036 seconds with 4,619 Swift Testing passes / 125 skips and 454 XCTest passes / 131 skips, zero failures. Counts are test executions across the script's processes; overlapping selections are not deduplicated. Ordinary fixture lanes used their required MiMo and canonical GLM reference fixtures. Real-model opt-ins and unavailable external lanes remain skips.4ceb639694eea843ae5ab9fa8794fc336a28675166881be659615a4d8b41ad4e.2a9a1eb9, coreadbc349b, C2415568e; metallib SHA-256156f2624f9f1b1413dfabd8b6e16423121b0e5b18e2573c23c4e023b606a462d. SDK runtime was compiled at02ce18ee; the finaldf2ab20dpin changes only a Prism test assertion's type-checking decomposition. SDK production sources and package definition are identical between those commits. The SDK's full suite and compiler regression have separate evidence in SDK #314.Earlier M5 Ultra real-model throughput and image measurements belong to their original composition; they are not current-head or RDMA-cluster benchmarks. The current provider suite does not establish a live clustered GLM request.
SSD fixture follow-up evidence
master, full docs lint, changelog validation/preview and whitespace checks. Normal repository hooks run on the focused change; no TypeScript or native build is required by those hooks. Exact-head public CI remains required after publication.490b147f, native24cedb82) passed all ten required provider gates in 744.7 seconds. Its 263 general skip-event lines remain recorded; required isolated gates had zero skips. These different pins and private sources do not qualify this public head, and no installed GLM/RDMA request or production-readiness claim follows from that run. This follow-up changes no product runtime or dependency pin.Before — SSD fixture setup
After — SSD fixture setup
flowchart LR A["Write-expecting fixture"] --> B["SSDTestDirectory parent selection"] B --> C{"Override state"} C -->|Absent| D["Foundation default parent"] C -->|Valid| E["Selected test-only parent"] C -->|Invalid| F["Fixture setup throws"] D --> G["Create unique root or throw"] E --> G G --> H["Unchanged cache guards, assertions and cleanup"] classDef setup fill:#dbeafe,stroke:#2563eb,color:#172554 classDef retained fill:#fef3c7,stroke:#b45309,color:#451a03 class A,B,D,E,G,H setup class F retainedThese diagrams describe test setup only. The production cache remains on its configured volume and retains the full free-space reserve and payload admission checks.
Remaining qualification
REVIEW_REQUIRED). Exact-head provider CIpassed on
2d6240b25a12; dependency hosted gates remain open: SDK #314at
8c479ffcfails its final Run all test suites once stage, although itsbuild, unit and focused stages pass; SDK main
14661d9balso has a failedBuild and test job. Native core #35
at
9e22e199still fails Run the tests on the CPU within its Metal job;its build and preceding macOS tests pass. Native Swift #56
at
91ff7858is green. These are the latest observed dependency PR/main heads,distinct from the retained locally qualified pins. The public provider's
focused CPU pass does not waive dependency full-suite failures.
2d6240b25a12: its workflowsucceeded but the saved report records an invalid model response, 22/629 source
units covered, and unscanned submodule changes. No current findings were supplied;
this is not a completed automated review or a replacement for required human approval.
The existing standalone/coordinator hardware gate still requires M5 Max or M5 Ultra with at least 256 GiB. This PR does not qualify a smaller host by itself or activate clustering. Public GLM required/named tool admission remains unsupported; internal forced-mode validation is defensive only. Rollback controls for persistent residency, prefix caching and rectangular verification remain documented in the provider configuration reference.
MiMo tool-schema parity
Model-blind provider normalization can change typeless-enum and Boolean-property
function schemas before native MiMo rendering. Retain original typed declarations
in
MiMoV26ToolEvidenceand restore them only for loaded exactmimo_v2beforeserving, tokenization, prompt recount and benchmark preparation. Hosted-tool
fallback uses the existing structural filter; malformed retained declarations,
reserved metadata, tool-choice and native admission remain strict. Other loaded
families retain their normalization.
Before — MiMo schemas
After — MiMo schemas
flowchart TD A["Chat body"] --> B["Capture original typed tool evidence"] B --> C{"Loaded exact mimo_v2?"} C -->|Yes| D["Restore and reject reserved metadata"] C -->|No| E["Existing family normalization"] D --> F["Existing tool-choice and native validation"] F --> G["Serving, tokenizeProviderBody, promptTokenFloor, benchmarkPrompt"] G --> H["Same schema and exact prompt IDs"] classDef input fill:#dbeafe,stroke:#2563eb,color:#172554 classDef guard fill:#fef3c7,stroke:#b45309,color:#451a03 classDef safe fill:#dcfce7,stroke:#15803d,color:#14532d class A,B,E input class C,D,F guard class G,H safeEvidence — MiMo addition
2d6240b25a1267d3028cbd53afde7e7eaf7f06a9is exactly the qualified 19-file tree; no source change followed the build or strict tests.schema mutation for typeless-enum and Boolean-property inputs. These fixed
inputs are distinct from the unavailable historical external corpus.
through the real service with scripted generation, plus recount, benchmark,
hosted fallback, malformed declarations, marker isolation and family isolation.
seconds, runner wall time) at SDK
df2ab20d, native Swift2a9a1eb9, nestedcore
adbc349band C2415568e. Strict focused gates passed 86 tests (37 XCTest + 49 Swift Testing), withzero failures or required skips: schema 5 XCTest; adjacent 23 XCTest + 49
Swift Testing; current consumer 9 XCTest. The optional historical corpus was
not run and is not included in those counts.
156f2624…was built with twojobs, deployment 26.2 and JIT OFF; its 43 compile commands, 456 transitive
input hashes and nine completeness checks passed. Both colocated and Cmlx
resource layouts use it. ProviderCoreTests SHA-256 is
3864e2133cf8e906904074db959951bc37a5b6502ef2532cfdbc83133d633b78;binary/AOT hashes stayed unchanged around every gate. CPU selections use
host tokenization and scripted generation; no public model/GPU fixture was run.
controller without recording the wrapper exit; its five observed passing
schema cases are not counted above. The renewed gates capture native process
birth identity and owned ancestry, permit only package-manifest compilation,
reject actual owned product compilation, and retain complete zero/skip gates.
The retained failure required no product source change or provider rebuild.
explicit 19-file docs-impact, changelog validation/preview and staged whitespace
pass. These checks establish source/documentation consistency only.
outgoing change and Copernicus source closure; no further source change was
warranted. The qualified source freeze remained unchanged. Earlier GLM/SSD
review outcomes above retain their recorded scope.
Linked issue
Continues this existing PR; the shared MiMo prompt regression is reproduced by
fixtures/prompt-contract/mimo-v26-schema-parity-v1.json.Test plan
MiMoV26SchemaParityTests(five methods), required zero skips.MiMoV26ConsumerParityTests, with historical method separated.establish full-model, installed endpoint or live platform parity.
Components touched
Protocol / interface changes
No new envelope field, endpoint, configuration key, CLI flag or release version.
Native MiMo Chat preparation preserves original function schemas; the canonical
protocol reference records the provider-side behavior. External platform-owner
review and live parity remain separate gates.
Documentation impact
Canonical inference, hardware/recount, protocol, build, test and MiMo fixture
pages describe the implementation and evidence boundary. The public fixture
contains newly authored reproductions; it does not execute platform code.
Changelog
Adds
changelog.d/mimo-schema-ingress-parity.md; preserves existing fragmentsand the root release history. Changelog check and preview pass.
Notes for reviewers
Review the restoration points and the shared structural fallback together.
Original schema capture must not grant normalizer-marker trust or force-tool
capability. Reverting this source addition restores prior prompt behavior; it
requires no data migration or production operation.
Refactor Pass
The final 19-file MiMo addition has actual public focused CPU qualification and
parent-reviewed independent Copernicus source closure: no further source change
was warranted. The source freeze stayed unchanged after qualification. Earlier
GLM/SSD reviews retain their own scope. Previous published-head provider CI passed; new successor CI remains pending;
required human review, incomplete advisory coverage and the other documented
qualification gates remain open.
Merge Danger
Door: Two-way source rollback. Processes retaining unproven native work still require an actual exit before their memory can be reclaimed.
Blast Radius: Native inference. The shared tool router and residency policy also serve MiMo; their regression coverage is included in the provider suite. No release, catalog activation or production deployment is performed by this PR.