Experiments #108
A prefix shared across the 50 sessions' first turns served from mlx-serve's existing cache tiers: first a...
count
What was tested
A prefix shared across the 50 sessions' first turns Keeping a model loaded on a machine so it can answer requests over the network. from mlx-serve's existing cache tiers: first a timing-free count of the common The unit of text a model reads and writes: roughly a short word or a piece of a longer one. prefix across the first turns on the rented Mac (counts only leave it), then a Time to first token: how long you wait before the first word of the reply appears. pair if the prefix is long
Model and setup
the best
Expected gain
first-token time: up to most of the 7.5 s if a long prefix exists (inferred)
Where the idea came from
row 107
Outcome
count done 2026-10-31: 30 of 50 first turns repeat another session's; realized reuse 13.9% against 38.5% possible within a block; row 108a queued
Lesson
on the coaching workload most first turns repeat a scenario The text you send to the model before it starts answering. another session already sent, but mlx-serve's default 2 GB The server remembers the processed start of earlier prompts so that a repeated start is not recomputed. Read more holds about one 9.5k-token session: cache capacity, not kernels, sets most of the first-token wait.