karpo¶
| Checkpoints | Inputs |
|---|---|
| MachinePulseAI/karpo-decision-31B | text |
| plantwaterer/kudhab | text |
karpo-decision-31B is a fine-tune of google/gemma-4-31B-it, and kudhab is another one, read with karpo's own
inference code; Flide reads both the same way. Flide asks them with the release's own layout, the
karpo-blocks-v1 template of its karpo_decision package. A request is a system turn and one user turn in Gemma's
layout, thinking off. The first block holds the system turn, "Questions that will be asked about the context:" with
each question's instructions on a "- " line, "Context:" and the state (a string as it is, anything else as JSON). Each
question's block holds its instructions and its options, "(A) ...", one per line, with single-token labels A to Z and
then two-letter ones up to 255, and the reply opens with "Answer: (". Caller text is escaped so that it cannot form a
special token.
Its 10 global layers read in both directions within blocks and its sliding-window layers stay causal: a request with one question is one block, read whole; with several, the first block is shared and each question's block sees it and itself, so the questions fork from it. The answer is the checkpoint's readout at the question's last token in float32, soft-capped as Gemma's logits are, then softmaxed over the options.
Flide keeps the model's residual stream in float32 between its layers, which brings its answers nearer a float32 run of the release than the release's own bfloat16 run.
Speed¶
On one H200, one request at a time, Flide answers up to 1.2 times faster than karpo's own Decider (bfloat16, as its
server runs without --fp8) on torch 2.14.1. Each workload is 32 requests, each run once on both sides before timing,
and the table gives the median latency of a request. MultiRC requests ask about 49 questions each. On RACE's short
requests of one question the two answer in about the same time.
| Workload | Flide | Release | Speedup |
|---|---|---|---|
| Decision Index | 74.5 ms | 77.3 ms | 1.0× |
| MultiRC | 688.8 ms | 827.5 ms | 1.2× |
| QuALITY long | 429.4 ms | 451.3 ms | 1.1× |
kudhab against the copy of karpo's Decider it ships, the same way:
| Workload | Flide | Release | Speedup |
|---|---|---|---|
| Decision Index | 74.5 ms | 80.4 ms | 1.1× |
| MultiRC | 701.0 ms | 841.5 ms | 1.2× |
| QuALITY long | 432.3 ms | 463.0 ms | 1.1× |
Start a server¶
flide serve --model MachinePulseAI/karpo-decision-31B
The model needs about 62 GB in bfloat16, so one H100, H200 or other card of 80 GB or more.
Send a request¶
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.",
"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?"}
}
}'