Repository navigation
Consume authoritative Gemma template rendering - #3256
Conversation
|
SOURCE EVIDENCE: consumer LIVE EVIDENCE: same app/native12B QAT JANG_4M: eight varied user turns plus one actual-history restoration emulation pass bounded correctness, including thinking changes, real tools, image+tool, grounded history, verbatim replay and restart. Stable-control restart restores1515/1627 tokens from disk, 3.362s load-inclusive TTFT. Observed decode35.815–45.443tokens/s; bundle temp1/top_k64/top_p0.95, no sampler rescue, existing output cap16384 and natural stops. Topology8KV+40rotating, pagedoff,diskL2on,TurboQuantLayers0. No timed-cancellation or all-media-cache claim. E4B QAT JANG_4M is explicitly not a blanket pass:2/2 answer correctness but1/2 tool-quality cases, with malformed/redundant calls and an empty-output recovery retained as failed. Initial failing prompt is byte-identical under old/new/canonical rendering. No claim this pin resolves that separate generation/parser issue, all quants, or the M2GPU fault. Full source/render/live counts, failures and receipt hashes: osaurus-ai/vmlx-swift#698 (comment) . Exporter #46 remains a separate draft. Earlier unrelated evidence is retained. No screenshots, model upload, release tag, publication or workflow retry. |
* Update appcast for 0.25.29 (release) * Validate compaction output and use supported thinking-off summaries (#3249) * Reject incomplete local compaction and validate summary acceptance before success * Use supported thinking-off requests for internal compaction * Persist accepted compaction summaries with chat history --------- Co-authored-by: Eric <eric@osaurus.ai> * Update MLX kernels and fix native tool-result templates (#3254) * Qualify upstream Metal kernel integration in the app runtime * Pin merged MLX kernel runtime * Pin namespace fix for native tool-result proof * Consume merged native template namespace correction * Advance runtime proof stamps to the merged kernel revision * Advance proof stamps to the validated namespace runtime --------- Co-authored-by: Eric <eric@osaurus.ai> * Add per-agent opt-in response metrics in Advanced Settings (#3255) * Add per-agent opt-in response metrics under Advanced settings * Clarify display patch omission and align editor formatting * Route Advanced settings search through the shared agent landing policy * Scroll agent settings search to rendered control anchors --------- Co-authored-by: Eric <eric@osaurus.ai> * Consume authoritative Gemma template rendering (#3256) * Consume authoritative native chat-template rendering * Align the runtime manifest with the qualified consumer pin --------- Co-authored-by: Eric <eric@osaurus.ai> * Consume Gemma 4 reasoning and tool transport isolation (#3257) Co-authored-by: Eric <eric@osaurus.ai> * Compact growing chat tool chains between completed batches (#3258) * Compact growing chat tool chains at drained iteration boundaries * Make compaction hook capture explicit and guard ordered assertions * Reuse the iteration history build and prevent competing summary retries * Compact a first completed bulk batch instead of telling chat to abandon work * Guard context pressure with compaction instead of a task-abandonment notice --------- Co-authored-by: Eric <eric@osaurus.ai> * Pin vmlx-swift 46f0f3ac: integration pin on main 9ec1d561 The vmlx-swift integration pin carries, on main 9ec1d561 (Gemma 4 tool transport, selected chat templates rendered as is, Jinja namespace attributes, upstream Metal kernels, host-read locking): - #687 MiniMax-M3.1-Flash, goldens regenerated on MLX 869ff95b0; - #689 MiniMax-M3.1 JANGT prefill on expert-aligned tiles (bit-identical); - #699 / #700 prefix cache: DeepSeek-V4 boundaries captured in prefill, named-tool turns reuse the prefix, serving caches on the SSD only by default (RAM tier opt-in via VMLX_RESIDENT_CACHE_GB); - #697 DeepSeek-V4.1 prefill runs only the last KV-source layer's cache writes when nothing reads its output; - #696 the residency budget applies to bundles reached through a symlinked directory. The pin moves in all four places (Package.swift, OsaurusCore Package.resolved, both xcworkspace Package.resolved files); the two repin tripwires expect 46f0f3ac. No source change was needed for the newer API. * Count tool-result display mirrors once in context estimates (#3259) * Test tool-result mirrors and context budget invalidation * Count mirrored tool results once per completed batch --------- Co-authored-by: Eric <eric@osaurus.ai> * Consume Metal command-buffer byte-budget fix (#3260) Consume corrected Metal command-buffer byte accounting Co-authored-by: Eric <eric@osaurus.ai> * Keep saved agent reasoning mismatches visible in the model picker (#3261) * Show incompatible saved agent reasoning without selecting a model default * Register reasoning mismatch status translations --------- Co-authored-by: Eric <eric@osaurus.ai> * Pin vmlx-swift fd22f5ab: DeepSeek-V4.1 prefill on expert-aligned tiles The integration pin now also merges vmlx-swift #703: DeepSeek-V4.1 JANGT experts run the prefill on expert-aligned tiles by default (bit-identical), and the routed sort no longer uses integer floorDivide (SwitchGLU too, which JANG_2K uses). The opt-in VMLX_DSV41_ATTN_NAX attention kernel stays off. The pin moves in all four places; the two repin tripwires expect fd22f5ab. * Preserve complete tool schemas through local template rendering (#3262) Preserve tool schemas through the local template bridge Co-authored-by: Eric <eric@osaurus.ai> * Isolate release notes and preserve qualified artifacts before Sentry (#3264) Isolate release notes and retain qualified artifacts before external services Co-authored-by: Eric <eric@osaurus.ai> * Coalesce failed tool indexing and recover queued registrations (#3263) Coalesce failed tool indexing and retry pending registrations Co-authored-by: Eric <eric@osaurus.ai> * Bound captured Insights bodies by UTF-8 bytes (#3265) Co-authored-by: Eric <eric@osaurus.ai> * Recover missing knowledge vectors after embedding failures (#3273) Recover missing knowledge vectors independently of text hashes Co-authored-by: Eric <eric@osaurus.ai> * Pin vmlx-swift 7b7ba128: DeepSeek-V4.1 cold prefill cuts near the prompt end only The integration pin adds vmlx-swift #709 / #710: a DeepSeek-V4.1 cold prefill is cut only at stable prefix boundaries within 512 tokens of the prompt end, so the boundary capture no longer slows a cold prefill (+18.4 % -> +2.5 % at 4.4k tokens against capture off). The stream still closes right after the answer, and tool, named-tool and new-chat turns still reuse the prefix. The pin moves in all four places; the two repin tripwires expect 7b7ba128. * Consume SSM companion evaluation error propagation (#3274) Consume throwing SSM companion replay materialization Co-authored-by: Eric <eric@osaurus.ai> * fix follow-ups showing mid-turn and restore auto-scroll while streaming (#3275) * keep follow-up suggestions out of in-progress turns * restore auto-scroll while a response streams * add collapse long pastes toggle and labeled insert as text button (#3276) * add collapse long pastes setting and labeled insert as text button * match insert as text button styling to the chip's other buttons * show pasted content at the chat composer font size * match insert as text button corner radius to the chip * Pin vmlx-swift cccbaa65: report reads of prefix entries still being written as diskPending A prefix-cache read of an entry whose SSD file is still being written (write-behind) now reports CacheDetail.diskPending instead of memory, so memory means only the opt-in RAM tier. Behaviour is unchanged; only the reported tier changes. The pin moves in all four places; the two repin tripwires expect cccbaa65. * Consume request-sized terminal SSM replay (#3279) Co-authored-by: Eric <eric@osaurus.ai> * Preserve body capture truncation in activity exports (#3284) fix: retain body capture truncation in activity exports Co-authored-by: Eric <eric@osaurus.ai> * Distinguish reported and estimated activity token counts (#3286) fix: distinguish reported and estimated activity token counts Co-authored-by: Eric <eric@osaurus.ai> * Pin combined runtime projection and record consumer qualification gates * Restore exact published tokenizer fixture bytes * Keep per-agent DSpark switches on resident target weights * Clarify German server-runtime wording (#3288) Co-authored-by: Eric <eric@osaurus.ai> * Bundle the potion-base-4M embedder and hide embedding models from model lists (#3285) Fresh installs failed every Insights embedding row with "Could not find local Model2Vec embedding model 'potion-base-4M'": nothing downloads the embedder since the in-app downloader was removed. Ship the pinned minishlab/potion-base-4M (rev 9b3cff41, MIT) in OsaurusCore's resource bundle and resolve it right after the OSAURUS_EMBEDDING_MODEL_DIR override. Embedding bundles imported from the HF cache also showed up as chat models. Exclude them from the installed inventory, installedModelNames (/v1/models, /api/tags) and MLXService.findModel. * Wire merged M2 Max core through campaign runtime pin * Pin landed runtime and retain bundled embedder integration * Consume bounded DSpark hidden-tail lifetime fix for live qualification * Consume shared-KV event lifetime fix with layer submission retained * Pin merged shared-KV fix and record qualified source equivalence --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Eric <eric@osaurus.ai> Co-authored-by: Raajeev Chandran <raajeevchandran787@gmail.com> Co-authored-by: tpae <terencepae@gmail.com>
* Pin vmlx-swift aa05a820 (test): MiniMax-M3.1 runtime on main vmlx-swift feat/minimax-m31-osaurus-pin = main 22848d3b + perf/minimax-m3-aligned-prefix-cache: MiniMax-M3.1 (JANGT experts, R8 block-sparse MSA + selection kernels, the bundled dspark/ drafter, aligned-chunk prefix cache with cached == cold), thinking_mode from the thinking toggle (enabled / disabled / adaptive when omitted), swift-jinja tojson written as HF's json.dumps, dSpark verify-width stats. TEST PIN for the M3.1 dev-build proof. * Local reasoning capability: MiniMax-M3 <mm:think> rail and thinking_mode MiniMax-M3.1's template wraps reasoning in <mm:think> ... </mm:think> and switches it with a three-state thinking_mode (omitted = adaptive: the model's first token decides; enabled; disabled). The analysis only knew <think> and enable_thinking, so M3.1 had no thinking control and /api/show did not list thinking. <mm:think> now marks a reasoning channel; a template with both the rail and thinking_mode is toggleable, with omission preserved as the native third mode (Default = Adaptive). vmlx-swift maps the toggle's enable_thinking true / false onto thinking_mode enabled / disabled. The rail without thinking_mode (M3.1 as first shipped) is a reasoning channel with no toggle. * Pin vmlx-swift d447c5fc (test): + MiniMax-M3 RMSNorm scale cache, fused-decode seam vmlx-swift feat/minimax-m31-osaurus-pin: the RMSNorm scale is built once instead of per call (decode +4.7 % on MiniMax-M3.1, logits bit-identical to vMLX Python R8) and the fused-decode integration seam (off by default, no kernels). TEST PIN for the M3.1 dev-build proof. * Pin vmlx-swift 7e3f53b4 (test): JANGT config entries decode, readable JANGH errors, exact verify levers, fused decode kernels (off) vmlx-swift feat/minimax-m31-osaurus-pin @ 7e3f53b44: per-module quantization entries without bits decode (the MiniMax-M3.1 JANGHT bundle failed every load with "Missing field 'quantization.model.layers.N.mlp.switch_mlp.down_proj.bits'", the VLM factory's parse error masking the LLM factory's real one), JANGH load errors name the file and reason in localizedDescription, row-exact 6-bit / 16-row verify projections, the verify's sparse attention in one launch, and vMLX's fused attention / MoE kernels behind VMLX_M3_FUSED_DECODE=1 (default off). * Pin vmlx-swift b5b99b59 (test): MiniMax-M3 long-context memory policy, prefill step 2048, turn-cut prefix cache, DSpark row checkpoints vmlx-swift feat/minimax-m31-osaurus-pin @ b5b99b59b: MiniMax-M3 bundles take the resident-pool memory policy (Safe Auto's weights + 4 GiB scheduling limit throttled every eval past ~26k tokens of context on a 128 GB Mac), recommendedPrefillStepSize 2048 (the host default 512 was ~35 % slower), DSpark speculative checkpoints by row count (the verify no longer copies every lane each round), the fused MoE kernels' layer view released with its model (a reload no longer holds two models), prefix-cache turn cuts (every tool / user turn reuses the previous request's K bit-exactly), vMLX's fast JANGT decode kernels behind VMLX_JANGT_FAST=1 (default off). * Tests: MiniMax-M3.1-Flash-JANGHT1.9 selector choices reach vmlx-swift Reasoning (Default / On / Off), from the stored picker value through ChatEngine (chat, tool turn, tool-loop step, agent step, store-only agent step, follow-up turn, custom-agent override) to MLXBatchAdapter's template context, vmlx-swift's MiniMax-M3 adapter and its real LLMUserInputProcessor with the bundle tokenizer: enable_thinking absent / true / false -> thinking_mode unset / enabled / disabled -> last prompt token 10 / 200059 (<mm:think>) / 200060 (</mm:think>) and the matching "Current thinking mode" line. A control processor without the minimax_m3 model_type renders Adaptive for the same On request. Speculative Decoding: the row is offered because of the bundled dspark/ drafter (Off (AR) / On (Adaptive), default On). Off -> GenerateParameters.draftStrategy nil; On and the untouched default -> .dspark(<bundle>/dspark), a path with no depth, width or block size, also from legacy capped settings. Every change of the row reloads the model; an Off request on a drafter-loaded holder carries no strategy. Native MTP: no head or tensors in the published index, never resolved or requested in any mode; an explicit native depth is refused. Fixture: the bundle's published metadata (sha256-checked; tokenizer.json and the weight index xz-compressed), no weights. * Pin vmlx-swift bdc00b7a (test): scheduling floor, MiniMax-M3 view-based prompt-boundary stores, runtime receipts MLX's scheduling limit follows the live working set (no per-step queue drain at long context); M3 end-of-turn stores take views of the finished cache (no 4.5 GiB prompt copy through decode, 35k entries no longer refused by the store budget); no redundant post-answer entry under aligned prefill; VMLX_RUNTIME_RECEIPTS=1 per-request receipts; DSpark measured width pricing behind VMLX_DSPARK_MEASURED_WIDTH (off). * Pin vmlx-swift 380fdcd5 (test): scheduling floor at prefill chunks, fused attention K4 coherent partials + the floor at every prefill chunk boundary; MiniMax-M3 fused attention K4 from vMLX 8da26375 (device-coherent block partials; on the M5 Ultra the merge read stale partials and decode turned to garbage). Fused decode stays off by default. * Native MTP On (Adaptive): no app depth ceiling; vmlx's runtime top rung governs MLXBatchAdapter.nativeMTPDepthPolicy sent .adaptive(maximumDepth: min(draftTokenLimit ?? 5, 5)) for every non-manual selection: a fixed app ceiling of 5 on top of vmlx's own top rung, against the no-hard-draft-depth rule. It capped e.g. a LiLiCorr block drafter that verifies 7 drafts at 5. Adaptive now sends no ceiling of its own (.adaptive(maximumDepth: Int.max), equal to vmlx-swift's NativeMTPDepthPolicy.adaptiveToRuntimeCeiling); vmlx bounds each request by the loaded model's verifier capability. An explicit depth button stays .fixed (the user's own choice); Off stays .fixed. draftTokenLimit is not a ceiling either: no product control sets it (the composer, Settings, the admin API and import clear it through NativeMTPSelectionDefault.adaptiveSelection), so a value here is a stale default; vmlx's launch resolver still applies it to the START depth only and still validates it (a non-positive limit is a validation error and blocks the launch). Tests (MTPDepthPolicyWiringTests, NativeMTPAdaptiveSelectionTests): for the untouched default, On, force-on, stale limits 2 / 99 and a stale manual depth the policy is Adaptive and every runtime rung 1...4096 survives the app's ceiling unchanged (the former min(..., 5) fails from 6 on); a legacy limit is a start, not a ceiling; an invalid limit still surfaces as a validation error. * Keep a model resident while its conversation loop is mid-turn Osaurus' idle residency (default afterSeconds(30)) ran from the end of each generation. In an agent / tool loop the model is idle while a tool runs or a permission prompt waits, so a tool that took longer than the idle setting unloaded the model between two steps of one turn and the next step reloaded it: MiniMax-M3.1-Flash-JANGHT1.9 (95 GB) paid 13.6-14.4 s per reload on an M5 Max (GUI runs 2026-10-29), plus the re-prefill. AgentToolLoop.run (chat, agents, the API agent loop, plugins, subagents) now takes a ConversationResidencyHold for its whole run, as a task-local. Every generation inside it registers its model (ModelRuntime.generateEventStream -> registerConversationGeneration); while a model is held, resolvedIdleResidencyPolicy returns .never (no timer). The hold is released on every exit path (result, throw, cancellation); each model no live loop holds then gets its configured idle policy at once, i.e. the timer counts from the loop's end. The user's idle setting keeps its meaning for a truly idle model. Only the idle timer is affected: explicit unloads, model switches, memory-pressure eviction and settings changes are unchanged, and nothing is refused. A released hold never re-registers (a background request spawned inside the loop that outlives it cannot leave a model held forever); overlapping loops free a model only when the last one ends. Logs: generateEventStream: start ... conversationHold=<id|none>; idleResidency: ... conversationHeld=<bool>; conversationHold: release id= models=. Not covered (no loop to see): an external client running its own tool loop over the OpenAI-compatible API, and the pause between two user turns; both keep the configured idle policy. Tests (ConversationResidencyHoldTests): a real AgentToolLoop.run holds its model at every step and while the tool runs, one hold for the whole loop, released after (and after a throw); no hold outside a loop; bookkeeping of overlapping / released holds; a held model gets .never under every configured policy (control: unheld keeps it) and, through the real ModelResidencyManager, a deadline counted from the release. * Speculative Decoding switch: keep the resident model when its graph serves the new selection Switching Speculative Decoding (Off (AR) <-> On (Adaptive)), and moving from the untouched default to an explicit On, cleared every resident model: mtpLoadInputsChanged is a settings-only predicate and saveRuntimeSettings called clearAll on it. For a bundle whose drafter vmlx attaches lazily that is not a load input: MiniMax-M3.1-Flash-JANGHT1.9 loads the same graph under all three choices and its bundled dspark/ drafter is attached by vmlx on the first request that names it (TokenIterator.attachDSparkIfRequested); a request without a strategy decodes plain AR on the same weights. Each switch cost a 95 GB reload (13.6-14.4 s on an M5 Max, GUI runs 2026-10-29). When only speculative load inputs change (ServerController.onlySpeculativeLoadInputsChanged), saveRuntimeSettings and the admin runtime-settings endpoint now call ModelRuntime.applySpeculativeLoadChange: each resident model is judged against its own bundle's launch plan under the new settings (SpeculativeLoadFacts, recorded at load). It stays resident when the native MTP head's presence / manual depth scope are unchanged and the strategy is the same (native MTP depth is per request) or only a lazily attached DSpark drafter appears or goes; its holder then adopts the new plan's strategy and admission (Off keeps the attachable drafter: requests under Off carry none). Every other change (the native head entering / leaving the graph, a DFlash 2 or Uno drafter appearing or changing width, another drafter, an opaque draft model) unloads that model as before. In-flight cold loads are cancelled as the full clear did. Any non-speculative load input still clears everything. After Off, an attached DSpark drafter stays attached (~2.1 GiB for M3.1) until the model unloads; vmlx has no detach call. Requests under Off do not draft or verify with it (the GUI proof's Off turns: draft=none, no [dSpark]). Log: speculativeChange: model= decision=keep|reload loaded= next=. Tests (SpeculativeToggleResidencyTests): with the real M3.1 bundle metadata every switch of the row (default / Off / On, all six pairs) keeps the model and the kept holder serves the next setting's requests exactly (Off -> no strategy, On / default -> the bundled drafter), also along a chain of five switches; controls: the native head in / out, a manual depth scope, another DSpark drafter, DFlash 2 / Uno appearing or changing width and an opaque draft model still reload; any other load input still clears. MiniMaxM31SelectorPlumbingTests: wording of the predicate test. * Pin vmlx-swift bc5a3b34 (test): M3 grouped cold prefill, one prefix entry per boundary, no adaptive depth ceiling MiniMax-M3: the turn-cut pieces of one prefill chunk run as one layer-major group with the routed experts once per group (bit-identical to piece by piece), K / V / index lanes reserved once per prefill with allocator headroom, MLX's buffer cache kept through the prefill, DSpark taps only in the drafter window, and one prefix-cache entry per reusable boundary (the store boundary K and each history boundary's last cut, zero-copy views) instead of the N, N-1 and generation-stripped entries that all served the same K rows. Native MTP: no request-level adaptive depth ceiling; the runtime's verifier top rung governs (recursive heads 7, Nemotron-H no ceiling 3). Opt-in levers (off): VMLX_M3_PREFILL_SORTED, VMLX_M3_PREFILL_BATCH_ROWS, VMLX_M3_PREFILL_ASYNC. * Pin vmlx-swift 3ba6a338 (test): M3 cut pieces' row-wise ops batched per group, routed experts on the sorted tiles from 18 rows (both on by default, measured) * MiniMax-M3.1 bundles are image-capable when the linked vMLX builds their vision stack LocalVisionEvidence: model_type minimax_m3_vl loads through vMLX's LLM factory (MiniMaxM3Model, ModalityBearing); images are offered when the runtime has the lane and the bundle carries vision_config (encoder depth), the image token, preprocessor_config.json, the patch embedding, every encoder layer, the projector and the patch-merge MLP (headers only). VLMDetection follows. Tests: fixture bundle (images only), each missing component text-only, depth / token / processor required; opt-in OSAURUS_M31_BUNDLE checks an installed bundle. * Pin vmlx-swift a9a7f95f (test): MiniMax-M3.1 image input (vision stack, bundle-processor preprocessing, image runs never split, text follow-ups restore the image turn, m3vision receipts) * Pin vmlx-swift 46cc6f6f (test): MiniMax-M3.1 vision rotary on Metal's precise pow (image features == vMLX Python bit for bit) * Speculative Decoding switch: record a kept selection as the holder's preparedMTP A model kept resident by applySpeculativeLoadChange must not be reloaded by the next request's per-request preparation check (#3247). A model loaded under Off and switched On without a reload kept preparedMTP = Off, so requiresPreparation(previous: off, next: auto) evicted and reloaded it. A kept non-Off selection is now recorded; Off keeps the previous record. * Tests: vmlx-swift repin tripwires expect 46cc6f6f * Package.swift: vmlx-swift#687 pin comment; drop a personal note from an MTP depth comment Comments only. * Consume merged runtime campaign, shared-KV fix and M2 core pin (#3272) * Update appcast for 0.25.29 (release) * Validate compaction output and use supported thinking-off summaries (#3249) * Reject incomplete local compaction and validate summary acceptance before success * Use supported thinking-off requests for internal compaction * Persist accepted compaction summaries with chat history --------- Co-authored-by: Eric <eric@osaurus.ai> * Update MLX kernels and fix native tool-result templates (#3254) * Qualify upstream Metal kernel integration in the app runtime * Pin merged MLX kernel runtime * Pin namespace fix for native tool-result proof * Consume merged native template namespace correction * Advance runtime proof stamps to the merged kernel revision * Advance proof stamps to the validated namespace runtime --------- Co-authored-by: Eric <eric@osaurus.ai> * Add per-agent opt-in response metrics in Advanced Settings (#3255) * Add per-agent opt-in response metrics under Advanced settings * Clarify display patch omission and align editor formatting * Route Advanced settings search through the shared agent landing policy * Scroll agent settings search to rendered control anchors --------- Co-authored-by: Eric <eric@osaurus.ai> * Consume authoritative Gemma template rendering (#3256) * Consume authoritative native chat-template rendering * Align the runtime manifest with the qualified consumer pin --------- Co-authored-by: Eric <eric@osaurus.ai> * Consume Gemma 4 reasoning and tool transport isolation (#3257) Co-authored-by: Eric <eric@osaurus.ai> * Compact growing chat tool chains between completed batches (#3258) * Compact growing chat tool chains at drained iteration boundaries * Make compaction hook capture explicit and guard ordered assertions * Reuse the iteration history build and prevent competing summary retries * Compact a first completed bulk batch instead of telling chat to abandon work * Guard context pressure with compaction instead of a task-abandonment notice --------- Co-authored-by: Eric <eric@osaurus.ai> * Pin vmlx-swift 46f0f3ac: integration pin on main 9ec1d561 The vmlx-swift integration pin carries, on main 9ec1d561 (Gemma 4 tool transport, selected chat templates rendered as is, Jinja namespace attributes, upstream Metal kernels, host-read locking): - #687 MiniMax-M3.1-Flash, goldens regenerated on MLX 869ff95b0; - #689 MiniMax-M3.1 JANGT prefill on expert-aligned tiles (bit-identical); - #699 / #700 prefix cache: DeepSeek-V4 boundaries captured in prefill, named-tool turns reuse the prefix, serving caches on the SSD only by default (RAM tier opt-in via VMLX_RESIDENT_CACHE_GB); - #697 DeepSeek-V4.1 prefill runs only the last KV-source layer's cache writes when nothing reads its output; - #696 the residency budget applies to bundles reached through a symlinked directory. The pin moves in all four places (Package.swift, OsaurusCore Package.resolved, both xcworkspace Package.resolved files); the two repin tripwires expect 46f0f3ac. No source change was needed for the newer API. * Count tool-result display mirrors once in context estimates (#3259) * Test tool-result mirrors and context budget invalidation * Count mirrored tool results once per completed batch --------- Co-authored-by: Eric <eric@osaurus.ai> * Consume Metal command-buffer byte-budget fix (#3260) Consume corrected Metal command-buffer byte accounting Co-authored-by: Eric <eric@osaurus.ai> * Keep saved agent reasoning mismatches visible in the model picker (#3261) * Show incompatible saved agent reasoning without selecting a model default * Register reasoning mismatch status translations --------- Co-authored-by: Eric <eric@osaurus.ai> * Pin vmlx-swift fd22f5ab: DeepSeek-V4.1 prefill on expert-aligned tiles The integration pin now also merges vmlx-swift #703: DeepSeek-V4.1 JANGT experts run the prefill on expert-aligned tiles by default (bit-identical), and the routed sort no longer uses integer floorDivide (SwitchGLU too, which JANG_2K uses). The opt-in VMLX_DSV41_ATTN_NAX attention kernel stays off. The pin moves in all four places; the two repin tripwires expect fd22f5ab. * Preserve complete tool schemas through local template rendering (#3262) Preserve tool schemas through the local template bridge Co-authored-by: Eric <eric@osaurus.ai> * Isolate release notes and preserve qualified artifacts before Sentry (#3264) Isolate release notes and retain qualified artifacts before external services Co-authored-by: Eric <eric@osaurus.ai> * Coalesce failed tool indexing and recover queued registrations (#3263) Coalesce failed tool indexing and retry pending registrations Co-authored-by: Eric <eric@osaurus.ai> * Bound captured Insights bodies by UTF-8 bytes (#3265) Co-authored-by: Eric <eric@osaurus.ai> * Recover missing knowledge vectors after embedding failures (#3273) Recover missing knowledge vectors independently of text hashes Co-authored-by: Eric <eric@osaurus.ai> * Pin vmlx-swift 7b7ba128: DeepSeek-V4.1 cold prefill cuts near the prompt end only The integration pin adds vmlx-swift #709 / #710: a DeepSeek-V4.1 cold prefill is cut only at stable prefix boundaries within 512 tokens of the prompt end, so the boundary capture no longer slows a cold prefill (+18.4 % -> +2.5 % at 4.4k tokens against capture off). The stream still closes right after the answer, and tool, named-tool and new-chat turns still reuse the prefix. The pin moves in all four places; the two repin tripwires expect 7b7ba128. * Consume SSM companion evaluation error propagation (#3274) Consume throwing SSM companion replay materialization Co-authored-by: Eric <eric@osaurus.ai> * fix follow-ups showing mid-turn and restore auto-scroll while streaming (#3275) * keep follow-up suggestions out of in-progress turns * restore auto-scroll while a response streams * add collapse long pastes toggle and labeled insert as text button (#3276) * add collapse long pastes setting and labeled insert as text button * match insert as text button styling to the chip's other buttons * show pasted content at the chat composer font size * match insert as text button corner radius to the chip * Pin vmlx-swift cccbaa65: report reads of prefix entries still being written as diskPending A prefix-cache read of an entry whose SSD file is still being written (write-behind) now reports CacheDetail.diskPending instead of memory, so memory means only the opt-in RAM tier. Behaviour is unchanged; only the reported tier changes. The pin moves in all four places; the two repin tripwires expect cccbaa65. * Consume request-sized terminal SSM replay (#3279) Co-authored-by: Eric <eric@osaurus.ai> * Preserve body capture truncation in activity exports (#3284) fix: retain body capture truncation in activity exports Co-authored-by: Eric <eric@osaurus.ai> * Distinguish reported and estimated activity token counts (#3286) fix: distinguish reported and estimated activity token counts Co-authored-by: Eric <eric@osaurus.ai> * Pin combined runtime projection and record consumer qualification gates * Restore exact published tokenizer fixture bytes * Keep per-agent DSpark switches on resident target weights * Clarify German server-runtime wording (#3288) Co-authored-by: Eric <eric@osaurus.ai> * Bundle the potion-base-4M embedder and hide embedding models from model lists (#3285) Fresh installs failed every Insights embedding row with "Could not find local Model2Vec embedding model 'potion-base-4M'": nothing downloads the embedder since the in-app downloader was removed. Ship the pinned minishlab/potion-base-4M (rev 9b3cff41, MIT) in OsaurusCore's resource bundle and resolve it right after the OSAURUS_EMBEDDING_MODEL_DIR override. Embedding bundles imported from the HF cache also showed up as chat models. Exclude them from the installed inventory, installedModelNames (/v1/models, /api/tags) and MLXService.findModel. * Wire merged M2 Max core through campaign runtime pin * Pin landed runtime and retain bundled embedder integration * Consume bounded DSpark hidden-tail lifetime fix for live qualification * Consume shared-KV event lifetime fix with layer submission retained * Pin merged shared-KV fix and record qualified source equivalence --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Eric <eric@osaurus.ai> Co-authored-by: Raajeev Chandran <raajeevchandran787@gmail.com> Co-authored-by: tpae <terencepae@gmail.com> * Pin vmlx-swift fc9d7f4e: the dSpark governor times each AR forward once main 75ff99a2 + vmlx-swift#716. At an AR-to-speculative switch the speculative step's seed read waited for the run's last AR forward and was charged for it, so DeepSeek-V4.1 sampled chats fell back to AR for most steps (49-56 AR steps per reply against the reference runner's 1-2). The governor now times each AR forward once and AR steps stay pipelined. Moves the pin in Package.swift, the three Package.resolved files and the two repin tripwire tests. 9 focused OsaurusCore suites, 231 tests pass. * Revert "Pin vmlx-swift fc9d7f4e: the dSpark governor times each AR forward once" This reverts commit c6df818. * Pin vmlx-swift 5e6b2c0ad: DeepSeek-V4.1 verify rows through fused kernels osaurus-ai/vmlx-swift#717 on main 75ff99a2. In the app on one M5 Max, a code-turn spec step goes from 94.4 to 79.7 ms at >=1,400 MHz, verify 13-15 ms less at the same draft width. One-row decode and other models are unchanged. * Campaign notes: runtime pin now includes vmlx-swift#717 * Pin vmlx-swift 0b0561a28: MiniMax-M3 Adaptive width priced per verify row Adds the priced width to osaurus-ai/vmlx-swift#717. In the app on one M5 Max, M3.1's width falls from 7.25-8.62 to 4.44-5.89, spec step about 25 % lower and tok/s about 15 % higher (provisional, two matched turns). DeepSeek-V4.1 unchanged. * Pin merged DSpark verify and adaptive-width improvements --------- Co-authored-by: Eric <eric@osaurus.ai> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Raajeev Chandran <raajeevchandran787@gmail.com> Co-authored-by: tpae <terencepae@gmail.com>
Pins vmlx-swift
e9ccbbd08dce79f6625c800db61624d25069c76b, which removes the tokenizer's blanket in-memory turn-close rewrite and keeps selected bundle/override templates authoritative. Aligns the manifest requirement and all three resolutions and both exact revision assertions without weakening those tests.Related source fix: jjang-ai/jangq#45 corrects the legacy Gemma next-role closure rule in the shared affine/MXFP sidecar exporter and removes an injected required-tool instruction. Existing published bundles need an explicit template update; this consumer does not silently replace/download model metadata. References #3237 and osaurus-ai/vmlx-swift#698.
Current proof: five actual-source Swift authority regressions pass after failing on the original implementation; 15 export/metadata regressions pass with old-logic failure controls; 192 actual-template renders have zero errors and 128 Swift/Python comparisons are byte-identical. All32 corrected tool-result→user boundaries close; the former runtime rewrite leaves all32 open. These CPU/render checks are not model-quality proof.
Draft: all eight CI checks pass on
bb8bf74bcd2973cf5b0291c7f45604204dc92496(41170650897). Explicit dependency resolution preserves every pin. One isolated Release app build is running; the affected native Gemma multi-turn/reasoning/tool/history proof remains pending. Existing unaffected kernel, model and UI qualification remains retained. No sampler, context/RAM/cache policy, normal chat control, release tag, publication or workflow retry changes. No repeated-marker causality or M2 crash-prevention claim. No screenshots/private captures attached.