The conversation your assistant pays to read again and again
For example, a support assistant is handling a long customer conversation. Before each reply it asks a small decision model, an AI that picks an option instead of writing text, four quick questions: is it solved, does it need a person, which team, is a refund allowed. But the usual AI serving software, vLLM and SGLang, treats every question as a separate job, so the AI reads the whole conversation again for each one, like a clerk re-reading a 20-page file four times to tick four boxes. In the makers' tests, with about 48 questions per text, one chip running their software handled 4.9 times the jobs of the same chip running the better of the two.
Same questions, same conversation: who reads it how often
Today's serving software
0 readings of the conversation
Flide (exact state forking)
0 reading of the conversation
A support assistant has four questions about one customer conversation.
Your assistant asks how many questions per conversation?
Ratios and times: the makers' measurements on Qwen3.5-4B, one Nvidia H200 (ratios at 64 users). The gain also depends on how long the conversation is, so the 5- and 18-question tests gain less than the count suggests; measure on your own calls. The GPU count is our arithmetic.
The surprise: the faster way is also the more reliable one. In the makers' tests, with 64 questions about one text, it answered 12.7 times faster than vLLM, and on a busy server it changed at most 0.2 percent of answers, where vLLM changed up to 3.2 percent.
Join free to read the rest
Join free to score your team, see what to check before you bet on it, get the first moves step by step, and learn how you'll know it's working.
Before you bet on it
What was measured, on one mid-sized model with 64 users: 1.4 to 4.89 times as many jobs per chip for 4 to 48 questions per text, no gain at one question, and accuracy within 1.2 points of vLLM.
Only one-word answers
Every test asked for a single word or choice. Long written answers were not tested.
One type of chip
All results are the makers' own, on one Nvidia H200.
Text length matters too
18 questions on long articles saved barely more than 4 on short passages. Test on your own work.
Brand-new software
Version 0.1.16. It runs Qwen3.5 and Gemma 4 models and the decision models on its published list; others are not covered.
How many more jobs per GPU does exact state forking run?
Your first moves
From your app to live use
-
Find your assistant's decision calls and count the questions asked about each shared text, over one day of its activity.
You should see: Fewer than 2 per text: stop, there is nothing to share. Around 4 or more: carry on.
A decision call asks the AI to pick an option, not write a reply. An assistant asking which team and how urgent about one ticket asks two.
-
Put each text and all its questions into one request, in the decision format.
You should see: One reply carrying an answer for every question.
A request holds a state (the shared text) and named questions, each a choice from listed options or a yes-or-no. This is the /v1/systemone format vLLM and SGLang already accept for decision models, so an app already using it only changes the address it sends to. The example above is the project's own.
Show the command
curl http://localhost:8000/v1/systemone \ -H "Content-Type: application/json" -d '{ "state": "Order #1182 arrived with a cracked screen. The customer asks for a refund and attached two photos.", "questions": { "action": { "type": "choice", "instructions": "What should support do next?", "criteria": { "refund": "refund the order", "replace": "send a replacement", "escalate": "ask a human"}}, "urgent": { "type": "noul", "instructions": "Does this need a reply within the hour?"} } }' -
Choose a model on Flide's list and check it fits your chip.
You should see: A model from the list that fits your card's memory.
Flide runs on an Nvidia GPU under Linux or Windows WSL2, serving Qwen3.5 and Gemma 4 models and the decision models on its published list. On a smaller card, the --quantize fp8 setting lets a Gemma 4 12B model fit one 24 GB card. In the paper, Flide used 18.8 GB at its peak with a 4B model.
-
Install Flide and start it with the settings your traffic needs.
You should see: Flide answering requests at its address on your server machine.
Replace the example model with yours. Add --session-cache-gb with the memory you can spare if conversations grow step by step (the project's example uses 40). Add --batch-invariant if an answer must never change with load. Add --frontends 2 if many apps call it at once.
Show the command
uv venv -p 3.12 && source .venv/bin/activate uv pip install flide torchvision flide serve --model OmniJev/OneJev1.6-0.8B
-
Prove forking is exact on your own model and requests with Flide's flide verify command.
You should see: A pass on your model and a sample of your real requests.
It checks that each forked answer equals the answer to the question asked alone. Its options are in Flide's documentation.
-
Replay one day of grouped requests through Flide and through your current software, and compare.
You should see: Matching answers, and more requests per chip the more questions each text carries.
Compare the top answer for every question and the requests each chip handles per second.
-
Point the decision calls at Flide and keep everything else where it is.
You should see: Decision calls on Flide, written replies unchanged.
Flide is built for decision questions, and the paper measured only one-word answers, so replies your assistant writes stay on your current software. Ours: keep the old decision setup ready to switch back to for the first weeks.
-
Keep the marker-word shortcut, SGLang's multi-item scoring, away from decisions that trigger an action.
You should see: Only exact sharing in live use.
It is fast, but it changed up to 29 percent of decisions in the makers' tests: a refund or an escalation could go the wrong way.
How much does exact state forking cost to run?
Free (Apache-2.0 open-source licence)
One Nvidia chip you already run; the makers used an H200
Not stated by the makers. Ours: a few days to group the questions and compare one day of jobs
How you'll know
What to watch
Requests handled per chip
Healthy looks likeUp against your old setup, by roughly the scene's figure for your question count
Answers against your old setup
Healthy looks likeThe same top answer on nearly every question; investigate any that differ
Memory on the card
Healthy looks likeInside the card's size, including the session cache you set
Time per request
Healthy looks likeLower than before for multi-question requests; about the same for single questions
Under the hood
This screen first explains how AI answers questions and where the cost comes from, then the fix, one job from start to finish, and the five methods behind it.
What is prefix recomputation in AI serving?
An AI model on its own is a large file of learned numbers. To answer anything it must be loaded onto an AI chip and fed text, and that is what AI serving software does. Your assistant sends it a job: a text plus the question to answer about it. The serving software runs the model on the chip, sends the answer back, and fits many users' jobs onto the chip at once, so the costly chip is never idle. Think of a restaurant: the model is the chef's know-how, the chip is the stove, each job is one order, and the serving software is the kitchen manager who takes the orders, decides what cooks when and sends the plates out. Before the model can answer, it must read the whole text in the job, and that reading takes most of the chip time. The animation below follows one question through these parts.
How one question travels today, and why it repeats
Press Play and follow job 1 from your assistant to the chip and back. Then watch job 2 start the same reading again.
Your assistant needs four decisions about one conversation.
Solved? Needs a person? Which team? Refund allowed? Each is a quick pick from a few options, not a written reply.
Sources: [1] [2]
Two things follow. The usual software takes one question per job, so the same conversation is read once per question. And saving the reading only partly helps. Prefix caching, which vLLM and SGLang offer, keeps a reading so a later job that starts the same way can pick it up. But each question still runs as its own job, and newer hybrid language models such as Qwen3.5 can only be saved at fixed points, so the end of the text is re-read every time. For example, a reader who can bookmark only the start of each chapter must re-read from there before every answer.
What is exact state forking?
Exact state forking means the serving software reads the shared text once, then answers every question from that one reading, each exactly as if asked alone. Flide, free software from the National University of Singapore and Oxford, does it with five methods. Three work on their own; two are settings you choose. Here is one job from start to finish, then each method.
One decision job with Flide, start to finish
Follow one customer conversation and its questions from your app to the answers.
Your app takes the conversation from its own records.
Flide never fetches or extracts data. Your assistant puts the text into the request itself, exactly as it would for vLLM.
Sources: [1] [2]
What runs by itself, and what you set
Is the saved reading kept? Can I ask again two days later?
Treat the saved reading as temporary. It lives in the server's working memory, up to the size you set, and neither the paper nor the project says how long it lasts or whether it survives a restart. That is safe, because every request carries the full text. Ask about the same conversation two days later and the answer is just as correct; if the saved reading is gone, Flide simply reads the text again. Only speed is lost, never accuracy.
The five methods at a glance
Sources
Check our working
- Li et al., Flide: Accelerating Decision Inference with Exact State Forking (arXiv 2610.42148, 30 Oct 2026)
- Flide source code and README (OmniJev/Flide, Apache-2.0)
Found this useful? Send it to someone who should read it.