Rewinding One Request in a Continuously Batched LLM Server to Block Banned Phrases
AlpinDale · x · 2026-09-08
AlpinDale's new post tackles a subtle serving problem: banning whole phrases (not tokens) from a model's streamed output. Banning token sequences directly has too large a blast radius, and by the time the engine detects a complete phrase, tokens may already be on the user's screen and baked into the KV cache.
- The solution: hold back output that could still complete a banned string; on a match, rewind that individual request and sample a different continuation.
- Implementing this inside an asynchronous scheduler is tricky because workers may already be executing later steps. The author built it in Sonar (formerly Aphrodite Engine).
- Prior art includes ExLlamaV3, KoboldCpp, and AntiSlop Sampler, but not in this async batched setting.
More from Infra
- Anthropic S-1 chart fuels positive-ROI narrative on AI infrastructure buildout — BenBajarin · 2026-10-26
- Nearly half of Claude revenue now flows through cloud marketplace commitments, up from 11% — BenBajarin · 2026-10-26
- Anthropic ARR goes vertical after price cuts: tokens up 4x, $100B+ ARR back in play — GavinSBaker · 2026-10-26
- Alex Banks argues power caps GPU supply, real risk is demand cooling first — thealexbanks · 2026-10-26
- Analyst: Ant has the most fungible AI workload of any model provider today — BenBajarin · 2026-10-26
- Anthropic S-1: training infra edge cut per-task cost 40% and doubled revenue growth — BenBajarin · 2026-10-26