This repository was archived by the owner on Nov 12, 2026. It is now read-only.
Repository navigation
Smart Reply: reuse the system-prompt state (first token 1.40 → 0.81 s); batch work 120k - #669
Merged
Merged
Conversation
reply-modeld caches the model state after the fixed system prompt (181 of ~225 tokens) and reuses a copy per draft. First token 1.40 -> 0.81 s on the five English threads; Smart Reply's warm lunch draft 1.8 -> 1.4 s. The service now uses the scoreboard's MLX_OMARCHY_BATCH_WORK=120000 (no measurable change on replies this short). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two speed-ups for the Smart Reply model server (
reply-modeld.py, #666).MSERIES_REPLY_PREFIX_CACHE=0turns it off.MLX_OMARCHY_BATCH_WORK=120000in the unit, the scoreboard value (Adopt Honeykrisp 9323171c12 and a 120k MLX submit budget (+45–80% decode) #664).Five English threads, Qwen3.5-4B, warm averages:
Verified on the laptop:
mseries-reply draft rust/mseries-reply/fixtures/lunch.json1.8 s → 1.4 s warm, log shows 181 tokens served from the cache.🤖 Generated with Claude Code