Multirow to singleton cache compaction ends an in-flight completion after 2-3 tokens with finish_reason=stop (Qwen3.6-35B-A3B-4bit, MTP disabled)
Environment
- oMLX 0.6.4 (build 2529), macOS 26.5
- Mac15,14 — Apple M3 Ultra, 96 GB unified memory
- Model:
Qwen3.6-35B-A3B-4bit,mtp_enabled: false,vlm_mtp_enabled: false - Client: Hermes Agent 0.16.0 via
/v1/chat/completions, streaming,max_tokens=32768
Summary
When a batch drops from multiple rows to a single row, the surviving row is occasionally ended
mid-generation. The client sees a well-formed response with finish_reason=stop containing only
2-3 tokens, so it cannot distinguish this from the model genuinely choosing to stop. Measured rate:
2 occurrences in 200 compactions (~1%) over 4,188 completions of retained logs.
Both occurrences are on prompts of ~22.4K tokens where the expected output was a tool call (~70-100 tokens). The model emitted a 2-3 token text preamble, then the row was cut before the tool call.
Evidence
Incident A — 2026-09-11 06:00:
06:00:26,609 Skipping cache store for 499d9faf…: reason=boundary_snapshot_unavailable tokens=322
06:00:26,616 Chat completion: 23 tokens in 2.45s (9.4 tok/s), prompt: 322, finish_reason=stop
06:00:26,834 Skipping cache store for 658ff3bb…: reason=boundary_snapshot_unavailable tokens=22389
06:00:26,843 omlx.patches.mlx_lm_mtp.batch_generator: MTP singleton recovery: multirow marker cleared (compact cache)
06:00:26,948 Chat completion: 3 tokens in 2.78s (21.5 tok/s), prompt: 22389, finish_reason=stopIncident B — 2026-09-11 18:00 (clearer ordering):
18:00:13,189 Chat completion: 17 tokens in 1.82s (9.3 tok/s), prompt: 324, finish_reason=stop
18:00:13,192 MTP singleton recovery: multirow marker cleared (compact cache)
18:00:14,009 Chat completion: 2 tokens in 2.64s (3847.4 tok/s), prompt: 22391, finish_reason=stop
18:00:14,011 MTP singleton recovery: multirow marker cleared (compact cache)The 3847 tok/s on incident B is the tell: 2 tokens at that rate is ~0.5 ms of decode inside a 2.64 s request. The row did not generate and stop — it was ended. In both cases the cut follows a compaction triggered by another row in the same batch completing (~820 ms in B, ~105 ms in A).
Scan of the full retained corpus
8 log files (2026-08-25/26, 09-08 → 09-13), 4,188 chat completions, 200
MTP singleton recovery events. Exactly two completions produced ≤5 output tokens on a ≥5,000-token
prompt — the two above. Both sit directly behind a compaction. No other short-output outliers exist,
so this is not a general short-generation tendency of the model.
Impact
finish_reason=stop on a 2-token response is indistinguishable, client-side, from a real answer.
In an agent harness this reads as the model declining to call its tool — i.e. it presents as a model
fabrication/refusal rather than a server fault. A truncation signal (finish_reason=length, an
error, or any distinguishing field) would make it detectable.
Notes
- Reproduces with
mtp_enabled: false, so this is not limited to users who opt into Lightning MTP —omlx.patches.mlx_lm_mtp.batch_generatorappears to be in the path regardless. - Possibly related: #2931 (batched engine loses primed context after late-join handoff), #2166 (introduced singleton recovery).
- Not reproducible on demand — ~1% of compactions. Happy to run instrumented builds.
Source: jundot/omlx