Skip to content

MiMo V2.6 Flash: native provider support and prompt contracts - #1234

Merged
Gajesh2007 merged 38 commits into
masterfrom
codex/mimo-v26-flash-support
Sep 29, 2026
Merged

Gajesh2007 merged 38 commits into
masterfrom
codex/mimo-v26-flash-support

Conversation

@jonathan308

@jonathan308 jonathan308 commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Ready for code review: dedicated native MiMo serving and synchronized prompt contracts. Ordinary full-model loading is confirmed on both tested Macs. Known reasoning-off framing and remaining qualification items below are retained for follow-up; review-ready does not mean every deployment gate passed.

Changes

  • Exact mimo_v2 discovery and ordinary ProviderLoop/Standalone dispatch through strict loading, real process-budget ownership and confirmed engine/consumer retirement.
  • Full main-plus-sidecar load quotations without an SSD discount. Fix Standalone's incorrect Qwen-only footprint revalidation; valid MiMo quotes now use the MiMo metadata/inventory contract. Claims, reserves and descriptor rechecks remain intact.
  • Fix preload → listener startup: an already-open, healthy published MiMo owner keeps its transaction and lifecycle generation. Incomplete/closing owners still refuse; a closed generation still requires genuine retirement before reopening.
  • Pin the SDK correction for strict audio-tokenizer checkpoint installation: the indexed downsampling stage is registered as an array, preserving the original convolution/GELU computation and all weight checks.
  • Native auto now requests the embedded MTP heads by default, subject to actual artifact, owner and budget eligibility. Explicit off and the process kill switch remain authoritative. Serial-target verification is the default; rectangular verification remains unqualified.
  • Bounded visual/audio policies retain the authenticated sidecar and actual request leases. Contiguous text-prefix and opt-in native paging/serial-MTP composition preserve ownership; broader composition qualification remains open.
  • Preserve Swift/Go/Rust normalization v7, raw arguments/nulls/history correlation, native tool/reasoning consumers, model-scoped provenance and audio-cache ineligibility. Reject stale or mixed prompt contracts.
  • Snapshot refs and legacy discovery share canonical filesystem identity. Test-only fixture, Sendable-helper and XCTest metallib-binding corrections retain production safety checks; upstream routing/cache-test corrections are preserved.

Before

flowchart LR
  A["MiMo request"] --> B["Generic load path without native family contract"]
  B --> C["Discovery, loading or serving refused"]
  classDef refused fill:#fee2e2,stroke:#991b1b,color:#111827
  class B,C refused
Loading

After

flowchart TB
  A["Scanner: full main and sidecar quote"] --> B["MiMo revalidation and NativeLoadTransaction"]
  B --> C["Published preload retains its owner"]
  C --> D["Standalone listener starts"]
  D --> E["Bridge and request/tool/media consumers"]
  E --> F["Native completion and actual consumer joins"]
  F --> G["Owned retirement"]
  B --> H["Failure retains outstanding ownership"]
  E --> H
  classDef owned fill:#dbeafe,stroke:#1e40af,color:#111827
  classDef complete fill:#dcfce7,stroke:#166534,color:#111827
  classDef retained fill:#fef3c7,stroke:#92400e,color:#111827
  class A,B,C,D,E,F owned
  class G complete
  class H retained
Loading

Blue: owned path; green: confirmed completion; amber: retained failure.

Review fixes — 2026-09-29

  • Scope retained MiMo faults to actual native owners. Healthy non-native resident slots keep their ordinary health/admission gates; cold loads and reclamation remain fenced, with zero advertised cold-load credit.
  • Fix the audiovisual cancellation test's Swift region-isolation compilation error by making its child task return Void; cancellation and reservation assertions remain intact.
  • Pin the actual merged SDK #178 commit eeba2afaf059a153ff909c9e01aa5e65b7bcad67, following merged feat: token-budget routing with engine-level admission control #171. It preserves QuickTime PCM audio in memory-backed ingress and corrects asymmetric-cache/JPEG fixture tests without changing weights or numerical behavior. The preceding SDK source's focused cohort passed 20/20 with zero skips; the unchanged provider audiovisual ingress suite passed 6/6. The accounting correction changes only the paged test double's cumulative-coverage/deferred-retirement semantics and protocol documentation; the full affected storage class subsequently passed 10/10, zero skips on M3. The current provider build consumes the merged SDK's diagnostic reason API as well.
  • Strengthened regression: the original routing-only check missed a second shared-registry veto at bridge submission. The final test now installs a counted non-native peer before an actual tiny native fault in the shared registry, proves submission reaches its engine before and after the fault, and retains native/cold-load/reclamation/zero-credit/charged-owner assertions. Reverting only the downstream guard correction causes 3 assertions to fail; the unchanged AFTER test passes 1/1 with zero skips. This proves actual bridge admission, not trained peer-model generation. The local full Debug provider test build and isolated cancellation test pass.
  • Reconcile current upstream prompt-work/observed-rate scheduling while preserving MiMo media seals, audio cache ineligibility, native owner admission and actual teardown. Both deadline-admission entry points forward the new prompt-work inputs; native shutdown retains whole-Mac forecast invalidation through pending or faulted teardown until actual matching completion.
  • Final reconciliation checks: full provider test-target build passed; 66 selected Swift tests passed / 0 failed / 0 skipped, and 6 focused native prefix/lifecycle tests passed / 0 failed / 0 skipped on the final binary. Those six cover prefix OFF, ordinary ON, interior-boundary publication, underfunded refusal, pending-host/quiescent drain, and retained-fault/healthy-peer isolation. Earlier coordinator qualification is separately 5,800 passing test/subtest terminals, 0 failures, 5 explicit opt-in skips; it is not a no-skip full-release claim.
  • The original three prefix failures remain recorded: the harness first supplied symmetric geometry, then an insufficient-context fixture. The verified regenerated asymmetric fixture preserves its synthetic weight-shard hashes and provides the unchanged 257-token prompt/eight-token output boundary. Ordinary ON retains the default 512-token chunk/2,048-token work envelope; its positive test arena is 64 MiB and a separate 16 MiB test proves refusal without native execution or a duplicate charge, followed by real retirement. OFF and explicit 128-token interior cases remain at 16 MiB. No production memory limits or defaults changed.
  • Not a release sign-off: orphan reasoning boundaries, strict escaping/timeouts and the remaining full-model qualification cells are not declared fixed by these review patches. SDK CI's inherited DiffusionGemma raw-FP32 oracle failures are not waived. Current-head CI and the full composed model/API gates remain distinct from the completed focused reconciliation checks.

Integration after upstream #1255 and SDK #178 merged

  • Preserve upstream's closed deadline-projection reasons and matching Swift/Go profile contracts. No free-text diagnostic or admission-policy substitution is introduced.
  • Preserve early input_audio refusal for unknown/generic architectures without blocking native MiMo. Local and encrypted entry points read provider-owned resident/catalog metadata; requested names and cold tokenizer lookup cannot authorize audio. The acquired architecture and real native audio profile are checked again. Generic vision and text-only preparation remain audio-refusing.
  • Full test-target build passed on this composed source. Passing scoped receipts cover 109 test executions / 106 distinct tests, zero skips: 67 existing focused Swift tests, 8 audio-policy tests, 14 deadline tests, 3 profile-wire tests (these 3 overlap the 67), 10 encoded-audio ingress/admission tests, 6 cache/lifecycle tests, and 1 real native-audio test.
  • The native positive sends typed Chat and Responses WAV input through the normal scheduler using a genuinely published synthetic target plus the authenticated audio codec. It verifies actual native steps/completion, stable engine identity, sidecar charge, consumer joins and real retirement. This is not selected-full-model semantic quality or an HTTP/hosted-route certification.
  • Its first attempt was a fixture setup failure before loading, not an executed audio-forward failure: an SDK-only fixture did not use the provider's accepted serialization-test metadata. The passing rerun reuses an existing explicitly labeled synthetic provider fixture. Config, tokenizer, every tensor shard and codec remain byte-identical; only the historical serialization manifest and companion manifest digest differ. Original failed receipts remain preserved; the production parser and all limits are unchanged.
  • Independent current-M3 controls also pass all 21 preserved DiffusionGemma oracle methods/FP32-BF16 parameterizations with unchanged raw-bit expectations. This is scoped platform evidence, not a waiver or repair of earlier M1 Virtual CI failures.

Review correction — Before

flowchart LR
  F["Retained MiMo fault"] --> G["Global crash/admission override"]
  G --> N["Native owners fenced"]
  G --> P["Unrelated resident peer rejected"]
  classDef retained fill:#fef3c7,stroke:#92400e,color:#111827
  classDef error fill:#fee2e2,stroke:#991b1b,color:#111827
  class F,N retained
  class G,P error
Loading

Review correction — After

flowchart LR
  F["Retained MiMo fault"] --> O{"Actual native owner?"}
  O -->|Yes| N["Native quarantine retained"]
  O -->|No; resident| P["Normal peer gates and actual bridge submission"]
  F --> C["Cold loads and reclamation remain fenced"]
  C --> Z["Advertise zero cold-load credit"]
  classDef retained fill:#fef3c7,stroke:#92400e,color:#111827
  classDef healthy fill:#dcfce7,stroke:#166534,color:#111827
  class F,N,C,Z retained
  class P healthy
Loading

Validation and remaining gates

  • The updated optimized production CLI build passed on M5. This is compilation evidence, not a successful ordinary API or media run.

  • The SDK audio-container correction is pinned. Its two focused real-array regressions passed with zero failures/skips, and the corrected production build passed. Ordinary full-model loading, listener startup and actual AUTO serial-MTP activity then succeeded on both tested Macs.

  • The separately labelled clarified eight-case M5 smoke is 1 passed, 1 failed, 6 unrun. The reasoning-off arithmetic response exposes an implicit </think> boundary despite correct OFF controls/template. This failure is retained; the remaining tool/image cases were not reached. Parser follow-up and full local OpenRouter-compatible validation remain separate work.

  • The short M3 CLI benchmark ended with unexpectedFinish before a timing report. No current prefill/decode benchmark is claimed from that attempt.

  • Focused regressions: 7 passed, 0 failed, 0 skipped on the corrected normal Debug provider build. These exercise four load-quote checks, scanner-quoted publication/retirement, preload-then-listener same-owner behavior and refusal of an incomplete preload. The old load-quote failure was reproduced before the fix; a separate tiny-fixture geometry/token-namespace mismatch was corrected without weakening production validation.

  • Normal Debug provider test builds are separate from optimized production qualification. Original failures are retained; fixture/contract corrections do not turn earlier failures or unstarted rows into passes.

  • Earlier SDK component evidence remains 114 passed, 0 failed, 0 skipped; 147 discovered, 33 unselected. See the exact historical composition and scope. Earlier scanner, Go/Rust and cache-concurrency results are likewise scoped, not a complete rerun of this final composition.

  • Performance research is paused. There is no completed current M3 full-model benchmark claim. Earlier OFF/serial-ON token agreement does not close complete-state gates or establish speedup; the rectangular token-38 mismatch remains unqualified.

  • Native source, attribution and canonical documentation maintained.

  • Current M5 optimized CLI compilation reported separately from runtime evidence.

  • Seven focused startup/load regressions passed with actual native lifecycle assertions.

  • Full provider/SDK suites and applicable native opt-ins on final sources.

  • All 146 authenticated Chat/Responses text/tool/reasoning cases, plus separate media/audio qualification.

  • Complete target/head/cache state, MTP rollback/continuation, paging/cache composition, persistence, concurrency and lifecycle qualification.

  • Final ordinary production-default and required physical-tier validation.

  • Final independent review, settled CI and all required end-to-end release gates.

Artifact, dependencies and migration

The unchanged public MiMo V2.6 Flash MOPD artifact remains at bb37ffc73180a94d2f903ae2c794665135e38d83; the existing R2/CDN manifest serves the same payload. Public availability is not runtime qualification; no weights or precision changed.

Companion SDK: #171, including its test-only compilation corrections and upstream #173. The upstream SSD daily-write-budget update #1247 is preserved separately from MiMo admission safeguards. MLX Swift/core/mlx-c pins are unchanged. Normalization v7 rejects v6/mixed cache metadata; regenerate through the normal contract workflow. This MiMo change does not activate catalog/deployment state or alter pricing, reserve floors or protocol versions.

Rollback

Use explicit MTP off or DARKBLOOM_CBV2_MTP=0. For fast-prefill rollback, restart with DARKBLOOM_MIMO_V26_NAX_ATTENTION=0 and DARKBLOOM_MIMO_BLOCK_BATCH_PREFILL=0; keep unqualified experiments disabled. Revert provider integration and its SDK pin together if removing support, and do not reuse stale prompt-contract metadata.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@vercel

vercel Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Sep 29, 2026 10:40pm UTC
d-inference-console-ui-dev Ready Ready Preview Sep 29, 2026 10:40pm UTC
d-inference-landing Ready Ready Preview Sep 29, 2026 10:40pm UTC
eigen-homepages-darkbloom Ready Ready Preview Sep 29, 2026 10:40pm UTC

Request Review

@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Threat model review — advisory

Reviewed head de10f0e58b09 against base c1e25949db58.

Review not completed for this head. Previous findings are superseded, not confirmed resolved.
Scan incomplete: aggregate source, file-list or source-tree budget exceeded; split the PR for complete feedback

Models: anthropic/claude-opus-5.5, openai/gpt-6-astra. Findings require human validation; this review never requests changes or blocks merging.

Gajesh2007
Gajesh2007 previously approved these changes Sep 29, 2026
@Gajesh2007
Gajesh2007 merged commit 428ee77 into master Sep 29, 2026
21 of 24 checks passed
@Gajesh2007
Gajesh2007 deleted the codex/mimo-v26-flash-support branch September 29, 2026 23:01

This branch was successfully deployed

4 active deployments
Preview – d-inference-console-ui-dev — de10f0e5 Deployed Sep 29, 2026 by vercel[bot]
Preview – d-inference — de10f0e5 Deployed Sep 29, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — de10f0e5 Deployed Sep 29, 2026 by vercel[bot]
Preview – d-inference-landing — de10f0e5 Deployed Sep 29, 2026 by vercel[bot]
benchmarks — de10f0e5 Deployed Sep 29, 2026 by jonathan308 via E2E Benchmarks #1918
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants