LM Studio updates mlx-engine to reuse cached agent prompts

The local inference engine saves prompt data for reuse across agent requests and handles concurrent vision requests. Commercial terms remain unclear in the supp

The short version

  • The engine preserves computed prompt data so later agent requests can reuse matching portions.
  • Edited or unavailable prompt portions still need to be computed again, according to LM Studio.
  • The supplied pages leave pricing and free-tier limits unstated for prospective users.

Builders working on local agent workflows on Apple silicon can consider mlx-engine when repeated prompts matter. They should check commercial terms separately because the supplied pages do not give a price or free-tier limits [1][2]. LM Studio says its update saves prompt data to disk and restores available portions for follow-up requests [1].

mlx-engine saves and restores prompt calculations

LM Studio says the engine stores copies of prompt cache on disk and restores the longest available matching portion for a follow-up request [1]. The company says its vision runner also processes concurrent requests [1]. The repository lists standalone text and vision demos [2].

The repository says LM Studio 0.3.4 and newer for Mac includes the engine [2]. Its standalone demo requires macOS 14.0 or newer and Python 3.11 [2]. LM Studio says the engine uses Apple's MLX library and is its backend for MLX inference [1].

LM Studio says the disk cache uses a single temporary file and reuses space released when older entries are removed [1]. The company says the engine moves inactive local attention cache records out of memory, while active sequences remain resident [1].

At a glance
Item Detail
Purpose LM Studio says mlx-engine runs MLX models on Apple silicon and saves prompt cache to disk for reuse [1].
Availability The repository says LM Studio 0.3.4 and newer for Mac includes mlx-engine [2].
License LM Studio says the mlx-engine inference engine is MIT-licensed [1].
Concurrent requests LM Studio says the update adds concurrent request processing to its vision model runner [1].
Pricing The supplied LM Studio post and repository do not state a price or free-tier limits for mlx-engine [1][2].
Usb flash drive plugged into a silver laptop
Photo: Usb flash drive plugged into a silver laptop. Shown for context. MRS Chimpanzeee / Unsplash, Unsplash License

mlx-engine does not retain every cached prompt

  • Missing portions. When prompt portions are edited, never computed or evicted, LM Studio says they cannot be restored and must be recomputed [1].
  • Temporary storage. LM Studio says the disk cache is temporary and does not persist after the model unloads [1].
  • Reuse granularity. LM Studio says cache records are saved at fixed 256-token boundaries, so an edit can require recomputing up to about 256 tokens before the edit as well as the changed suffix [1].

mlx-engine suits repeated local agent requests

Follow-up agent requests may reuse much of an earlier prompt. With the hybrid attention in Qwen 3.5 and the sliding window in Gemma 4, though, the saved cache cannot be cut back to any earlier point [1]. mlx-engine targets this recurring cost in agent work [1]. Hugging Face explains that a KV cache stores intermediate model values so they can be reused instead of recalculated [3].

LM Studio says its engine restores available saved portions and recomputes missing ones [1]. The company also says its temporary disk cache clears when a model unloads, so saved work does not persist across that boundary [1].

What builders can do

  • For teams building local agent workflows on Apple silicon, LM Studio identifies mlx-engine as its MLX inference backend and says the update supports prompt-cache restoration [1]. The repository also provides standalone text and vision demos for builders who want to work with the engine directly [2].

What to watch

  • Whether LM Studio publishes pricing and free-tier limits for the engine.
  • Whether future releases expand the engine's documented platform support.

Sources and method

Not independently verified:

  • LM Studio's performance and memory benchmark results.
  • LM Studio's account of cache restoration and fallback behavior.
  1. Improving LM Studio's MLX Engine for Agentic Workflows | LM Studio Blog | LM Studio
  2. lmstudio-ai/mlx-engine README on GitHub
  3. Continuous batching from first principles

Reviewed by Editorial Desk.