Core ML to MLX KV cache hand-off cost and layout

Parent: Mac local LLMs: ANE and Core ML LLMs · Published reference · snapshot 2026-10-05

↓ Facts as markdownall context files

Core ML side (stateless prefill, Yetter): the KV tensors leave the program as outputs. For a single-batch export the cache interface concatenates all layers into one tensor of shape (num_hidden_layers, num_key_value_heads, max_cache_len, head_dim), so a stateful Qwen3-0.6B has 2 states (key_cache...

These notes link each claim to its source. A source may be a research report hosted on this site rather than the primary document. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.

Facts

Children

← the whole tree · 3D view· how to read this page