Skip to content

Mei 0.10.0

Choose a tag to compare

@tijs tijs released this 04 Nov 22:47
· 155 commits to main since this release

Mei 0.10.0

Mei 0.10 improves status responsiveness, raw completions and bounded cache
behavior. The release notes and attached qualification evidence identify the
exact application, vmlx, MLX core, executable and source-built Metal artifacts.
An unreleased source branch does not establish that those gates have passed.

Status counters no longer wait for the inference actor or an unused disk-quota
calculation. Streaming success headers wait for a visible SSE frame, allowing
an earlier generation error to retain its HTTP error status. Buffered raw
completions use text_completion and choices[].text, preserve literal
reasoning/tool markers and honor explicit stop strings. Raw stream: true
returns an explicit unsupported-request error.

The decode path reads diagnostic flags individually instead of copying the
whole process environment for every decoder layer. Metal buffer-cache admission
keeps returned buffers within the configured allowance and lets recent shapes
displace older entries. These changes preserve model arithmetic and sampling;
CPU lookup savings and allocator regressions do not establish a uniform model
speed improvement.

Optional prefix-cache stores now decline nonempty checkpoints when the kernel
reports warning or critical memory pressure. Normal-pressure byte budgeting and
reclaimed-mmap footprint accounting remain. A log explains the skip; the answer
still completes normally, and a later request may need to prefill again. This
point-in-time signal neither reserves RAM nor guarantees that every later
prefill fits.

The existing --prefix-cache-limit-bytes now bounds paged KV, rotating
companions and separate SSM snapshots together. Previously, SSM state used only
an entry-count limit. Both stores and disk hydration respect the shared byte
allowance; an oversized checkpoint can remain on disk without staying in RAM.
/v1/mei/status exposes cache.retainedBytes, cache.maxRetainedBytes and separate
SSM charges. These are conservative cache-accounting bytes, including in-flight
reservations, rather than total physical RAM. Per-tier maxima refer to the same
shared ceiling and must not be added. Tiers evict their own cold entries; when
another tier holds the allowance, a store can decline RAM retention instead of
performing cross-tier eviction. This may cost a later cache hit.

Solo generation no longer takes an unused exact-prompt cache copy when no
persistence consumer can use it. An optional exact copy is admitted only after
the existing host-pressure check and a reservation from that same shared prefix
allowance. cache.promptSnapshotBytes reports its component of retainedBytes,
including while an iterator still owns the arrays after a cache clear. A
deliberate decline does not cause a replacement prefill; independently captured
canonical and typed N-1 boundaries retain their persistence contracts. The
real-Metal regression removes an unused 16 MiB rotating-cache copy without
changing cache precision. This is a bounded synthetic result; full-model memory
and throughput remain separate qualification evidence.

Solo generation also skips prefill boundary snapshots when there is no cache
coordinator or the request is auxiliary, because neither path stores them.
Auxiliary requests can still restore an existing prefix. Valid captures for
cache persistence retain their existing behavior; real-model parity remains a
separate release gate.

Qualification on the 32 GiB M1 Max used pinned text-only Qwen, Ornith and
Groot bundles and the recorded Mei executable and Metal library. All three
passed native tool, cache and 65,536-token context admission. Ornith's two
matched prefill-32 control processes and two compile-off candidate processes
produced identical observable greedy outputs across 14 rows each; this does
not establish hidden token-ID identity. Status remained responsive during the
qualified long-prefill runs. Detailed model hashes, profiles, resource samples
and raw outputs are preserved in local-model-bench qualification evidence.

Throughput varies substantially between independent processes even when sampled
memory pressure is normal and swap remains flat. For example, two clean Qwen
processes measured 67.15 and 44.02 tokens/s on short prompts, and 48.89 and
39.62 tokens/s at 30,000 prompt tokens. These are process medians from five
measured 128-token completions each, not task scores or a controlled estimate
of the optimization's speedup. The cause of the variation is not established;
no uniform throughput gain is claimed.

Native semantic probes inherit the serving profile's advertised output budget,
including reasoning. Mechanical timing/cache/context probes retain explicit
small limits and establish their declared runtime contracts. Admission,
generated-text parity, task success and actual Peixinho app acceptance are
different claims. Use the current benchmark summary
for the selected task cohort; historical and partial results keep their original
runtime identities.

Install stable with brew install tijs/tap/mei, or upgrade an existing install
with brew upgrade tijs/tap/mei, and check mei --version. The separately
installed preview formula may trail stable. The bundle contains runtime and
source documentation, not model weights. See runtime policies
for explicit memory/cache controls and model guidance for immutable
presets and artifact provenance.