Quick start¶
Flide serves decision models. A decision model reads a text, the state, and answers typed questions about it with a probability for every option. Flide reads the state once and forks it for each question, so every answer is the one the model gives that question alone, up to 9.5 times faster than vLLM and SGLang.
1. Install¶
uv pip install flide
2. Start a server¶
Any chat model on Qwen3.5 or Gemma 4 serves as it is.
flide serve --model Qwen/Qwen3.5-4B
The server listens on all interfaces at port 8000; pass --host 127.0.0.1 to keep it local.
3. Send a request¶
Requests go to /v1/systemone. A request holds the state and its questions. A choice question picks one of its
criteria, and a noul question gives the probability that its statement holds.
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?"}
}
}'
Every answer carries the probability of each option, ready for a threshold.
Next steps¶
- Installation covers drivers that run CUDA 12, AMD GPUs, Macs and Docker.
- The /v1/systemone API describes every request and response field, images among them.
- flide serve lists every option of the server.
- Decision models lists every family and how to serve it.
Citation¶
If you use Flide in your research, please cite our paper.
@article{li2026flide,
title = {Flide: Accelerating Decision Inference with Exact State Forking},
author = {Li, Bobo and Song, Jiajia and Fei, Hao and Hsu, Wynne and Lee, Mong Li},
journal = {arXiv preprint arXiv:2610.42148},
year = {2026}
}