Decisions in Practice · Part 2 of 2
When the prompt is the API: porting pplx-decider v1.3 to a Rust harness
v1.3 kept v1.2's architecture, tokenizer and answer codes, and the Rust server still refused to start. Three commits followed.
30 Nov 2026
The refusal
Part 1 ended with a Rust server that matched Perplexity's Python server token for token on pplx-decider v1.2. On 10 November Perplexity put v1.3 on Hugging Face. Its weights have the same shape, its tokenizer and answer codes are the same, and the server still refused to load it. The checkpoint's joint_config.json declares a new prompt protocol, version 4, and image 1.3.3 checked for version 3:
That refusal was the right behavior. A decider's prompt is its API. Feed v1.3 the v1.2 prompt and it still returns tidy probabilities, but they answer a slightly different question. Perplexity's card says as much: v1.2 prompt builders give different answers. Failing at startup is better than serving wrong numbers quietly.
Three commits in decisions-rust followed. 522d45d (17 November, image 1.4.0) speaks protocol 4. 7c1e506 (18 November, 1.4.1) adds Locate, v1.3's new span-finding question type. 9db8d1b (today, 30 November, 1.5.0) makes a request's answer independent of whatever else shares its pass on the GPU. This part walks through all three, then gives a migration checklist.
{
"version": 4,
"template": "joint-chunked-readout-v1",
"marker": "<|fim_suffix|>",
"separator": "<|fim_middle|>"
}Labels, as in Part 1: vendor-claimed (Perplexity's card, blog and docs, and the project's own code, commits and README), independently measured (Hugging Face and Docker Hub metadata), measured by Richard, our arithmetic (including what we ran on a CPU, and every toy or what-if), not published and secondary (a claim with no published method). Pages were fetched 30 November 2026, about 7:00–7:30 PM ET.
What v1.3 changed, and what it didn't
The two NVFP4 repos, v1.3 and v1.2, are Perplexity's checkpoints run through Part 1's recipe, so diffing their small files shows exactly what Perplexity changed. Most of it didn't.
| Aspect | v1.2 | v1.3 | Breaks a server? |
|---|---|---|---|
| Base, architecture, codes | Qwen3.8-27B, 64 layers, answer codes A, B, … (255) | same | no vendor-claimed |
| Chat template, processor | chat_template.jinja, processor_config.json | byte-identical | no vendor-claimed |
| joint_config.json | version 3, joint-question-inline-readout-v1 | version 4, joint-chunked-readout-v1, separator <|fim_middle|> | yes vendor-claimed |
| Prompt layout | one sequence: the state and every numbered question | one sequence per question (default “separate” layout) | yes vendor-claimed |
| System prompt | “…for each numbered question…” | “…for each question…” | yes vendor-claimed |
| Calibration temperature | 1.3823494677922652 | 1.2263882168038833 | yes vendor-claimed |
| New question type | — | locate: verbatim spans, via a locate-span/ adapter | additive vendor-claimed |
| Python package | pplx_decider 0.3.0 | 0.5.0 (protocol v4, mode=, locate.py) | yes vendor-claimed |
| tokenizer_config.json | max_length, pad_to_multiple_of, padding_side… | those four keys dropped; tokenizer.json 167 bytes smaller (the commit calls the tokenizer kept) | minor vendor-claimed |
The semantic change is the one that matters to users. Under v1.2, every question in a request shared one sequence with full bidirectional attention, so “an answer to one question can change depending on what else is asked” (Perplexity's blog) vendor-claimed. Decision Models Part 3 measured exactly that. v1.3's default local layout, separate, gives every question its own copy of the state. The blog's “isolated questions (v1.3)” pattern is the package's opt-in isolated mode: one sequence, with questions masked from each other. The upstream card says 1.5–2.2% of top answers differ between the two vendor-claimed. decisions-rust serves separate for decisions; isolated is not implemented there.
For the 64-layer stack these masks apply to (48 Gated DeltaNet layers and 16 full-attention layers), see Decision Models Part 6, which also has the version ladder from v1 to v1.3.
Protocol 4, token by token
The change in 522d45d is mostly in src/protocol.rs. The checkpoint's joint_config.json now picks the encoder; protocol 3 behaves exactly as before and still passes its own fixture vendor-claimed. Edit the request below and compare the two layouts.
Five details are easy to get wrong, and each one changes the tokens:
- The system prompt loses the word “numbered”.
- The user turn is left open. There's no <|im_end|>, assistant header or empty think block, and the state keeps its own trailing whitespace.
- The context ends with a separator token, <|fim_middle|>.
- Questions are Question:, not Question 0:, and are tokenized separately from the context.
- The marker is appended as a token right after the last option, with no newline before it and nothing after it.
The test is the part worth copying. make_encoder_fixture_v4.py loads Perplexity's own protocol.py and processor out of the checkpoint and records what they produce: 162 requests, 353 sequencesvendor-claimed, with real images at four sizes. The Rust encoder is checked against that. The v1.2 fixture script re-implemented the protocol in Python; the v1.3 one doesn't. The cargo test suite (30 tests) passes on a CPU at 9db8d1b our arithmetic, and so do the v4 token-id tests when pointed at v1.3's tokenizer with DECISION_CHECKPOINT_V4. That proves the prompt is right. It says nothing about the GPU.
Two more changes are outside the prompt. The startup gate, Protocol::declared(), now refuses anything it doesn't know, including a version 4 file without its separator. And the backpressure estimate counts real row lengths, because the state now repeats per question.
The cost of independence
The README says it plainly: a request of Q questions “runs its state Q times, so many-question requests over long states cost more than under version 3” vendor-claimed. Hosted v1.3 bills the state once (Decision Models Part 4); Part 1's cost calculator assumed v1.2's shared context. Locally, compute and billing come apart.
For scale only: on v1.2, Richard measured 16 questions over a medium input at 166 ms in Rust vs 317 ms in Python (server-side medians, RTX 5090) measured by Richard. That's one sequence per request. The v1.3 equivalent would be 16 sequences, and it hasn't been measured not published.
Why not implement the isolated layout and get the state once?
Locate: a second model inside the first
Locate returns spans, not probabilities: {"type": "locate", "spans": [{"start", "end", "text", "score"}]}, with Unicode code-point offsets, end exclusive (docs) vendor-claimed. Perplexity trained it as an add-on to the frozen decider: a new <|locate|> token, a span head, and LoRA adapters. The adapters stay unmerged because “merging is currently still not lossless” (blog) vendor-claimed. It's a fourth pattern next to Decision Models Part 7's hybrids: one backbone, two heads, and an adapter switched on per request.
Before 7c1e506, the server answered a locate question with 422. The commit splits it into a CPU half and a GPU half.
- CPU (src/locate.rs): request rules (text state, no images, at most 128 questions), the prompt, the mapping from tokens to characters, span-head scoring and span clean-up. It's a port of v1.3's locate.py, checked against a fixture recorded from it: 20 requests, 1,109 spansvendor-claimed.
- GPU (src/cuda/locate.rs): a rank-64 update on every linear layer, run as two bf16 matmuls beside each quantized one, about twenty extra per layer; a trained <|locate|> embedding; question blocks isolated by a new attention_split kernel, an indexed causal conv and delta_state_carry. A locate pass runs alone, eagerly (no CUDA graphs), and never shares a pass with decisions.
- Loading: after the model, followed by a small locate pass as a startup check. If either fails, the server logs why and serves decisions without Locate. The adapter is 1,867,788,384 B + a 13,172,556 B headindependently measured on disk and takes about 1 GB of GPU memory, per the README vendor-claimed.
| text | start | end | state[start:end] == text | score |
|---|---|---|---|---|
| help@brewco.example | 59 | 78 | yes | 0.999974250793457 vendor-claimed |
The Rust server also differs from the hosted API in small ways (README, docs). It returns 422 for a rule violation where the hosted API returns 400. It accepts missing instructions and uses the question's key as the label, as the local package does, where the hosted API requires instructions. And it has no web_grounding.
Batch invariance: your answer shouldn't depend on your neighbors
9db8d1b landed this morning at 10:27 AM ET; image 1.5.0 followed at 10:32 independently measured. The problem, from the commit: “A request's probabilities could depend on what else was in flight.” The batcher packs waiting sequences into one pass. The pass's row count picks each matmul's cuBLASLt algorithm, tuned per row bucket (blas.rs). Different algorithms sum in different orders. And because “every layer re-quantizes its activations to 4 bits”, a last-bit difference “can flip a rounding step and grow” vendor-claimed.
| rows (tokens) | bucket | matmul algorithm | |
|---|---|---|---|
| probe alone | ≈148 | 192 | tuned for the 192-row bucket |
| packing #1 | ≈256 | 256 | tuned for the 256-row bucket |
| order | bf16 sum of 48 terms | ÷ scale | 4-bit (E2M1) value |
|---|---|---|---|
| one running sum | 0.125977 | 0.2520 | 0.5 |
| four partial sums, then combined | 0.122070 | 0.2441 | 0 |
? (not yet run on a GPU: no 1.5.0 log has been published)
Why pinning matmuls should be enough here. Reading the kernels, everything else in a pass is already per sequence or per row. NVFP4 activation scales are per 16-value block under a static global scale stored in the checkpoint; FP8 scales are per row; RMSNorm is one block per row; attention and the delta rule run per sequence over packed rows our arithmetic. So the matmul algorithm is the remaining coupling between sequences. That's our reading of the code, not a proof. The startup check is what tests it.
What it isn't. These aren't new batch-invariant kernels (no fixed split-K, no rewritten attention or norms). It's plan selection: on first sight of a shape family (types, N × K, scaling, bias), ask cuBLASLt's heuristic for its pick at 1,024 rows, pin it, and validate it per row count with cublasLtMatmulAlgoCheck. If cuBLASLt refuses the pin at some row count, that plan is counted as unpinned and the check fails safe. The README says pinning “costs the few percent tuning gained”. That isn't measured not published.
Why it matters for a decider. Apps threshold these probabilities (Decision Models Part 2, Part 8). A 0.1 swing near a threshold flips an action. Perplexity reports that repeating identical inputs to hosted v1.3 “showed no changes”, while Jev 1.14 “changed on 1.88% of questions” (blog) vendor-claimed. And protocol 4 multiplies the rows: a request of Q questions is Q sequences, packed with each other and with other traffic. v1.3 promises a question won't depend on the other questions. That promise only holds on a server if a question also doesn't depend on the other traffic.
Thresholds: a new temperature and a noisier neighbor
Both changes hit the same thing: the cutoffs your app applies. Perplexity's changelog: “Probabilities can change with the model, so revalidate any thresholds you tuned on v1.2” vendor-claimed.
Migration guide: v1.2 → v1.3 on decisions-rust
Tick through it, then generate the Pod. The image defaults haven't moved: the Dockerfile still bakes in v1.2 at revision fdeb7a9, and the RunPod template still runs image 1.3.3 with a 30 GB volume, which refuses v1.3. Richard plans to update the images once Locate is validated. Until then, set everything yourself. Tags are on Docker Hub.
# RunPod: image aigpu/decide-in-rust:1.5.0, volume 40 GB at /workspace, container disk 5 GB, HTTP port 8000 AUTOJEV_API_KEY=<your-key> DECISION_MODEL_ID=machinez/pplx-decider-v1.3-NVFP4 DECISION_MODEL_REVISION=d1f0ab9fbd6797841df4fc557c6e4b315e43b5e0 DECISION_MODEL_NAME=pplx-decider-v1.3-NVFP4 DECISION_BATCH_INVARIANT=1
curl -s https://<pod-host>:8000/v1/systemone \
-H "Authorization: Bearer $AUTOJEV_API_KEY" -H "Content-Type: application/json" \
-d '{"state": "Invoice 4471 from Acme Corp is due on March 3. Contact Jane Doe.",
"questions": {"overdue_risk": {"type": "noul", "instructions": "Is a payment problem likely?"},
"person": {"type": "locate", "instructions": "Person names"}}}'The request and response JSON didn't change. A client that worked against v1.2 still parses v1.3's answers; it just gets different numbers. Same as Decision Models Part 8's migration checklist: the wire format is the easy part.
Lessons for anyone wrapping a decider
- The prompt protocol is the API version. The weights didn't change shape; the contract did. Version the prompt as you'd version an endpoint.
- Refuse what you don't know. 1.3.3's refusal turned a silent accuracy bug into a startup error. 1.4.0 keeps that rule for version 5.
- Record fixtures from the reference, not from a re-implementation. The v1.3 fixture comes from Perplexity's own protocol.py and locate.py. Fixtures only test what they contain, though, as the tokenizer note shows.
- Adapters can be served unmerged. Locate is a low-rank update switched on per pass, beside the 4-bit matmuls. One checkpoint, two behaviors.
- Determinism is a property of the server, not the model. Prove it where it runs, at startup, on that GPU, and say in the log which behavior you got.
What's still open
- Any GPU run of protocol 4, Locate or batch invariance not published The Locate and batch-invariance commits both say “not yet run on a GPU”. No agreement, accuracy or latency number exists for v1.3 on this server.
- What the startup check prints on a real Blackwell GPU not published Verified, fallback, or “N of 7 packings moved a probability by up to X”: nobody has shared a 1.5.0 log.
- Where “about 0.01, a few 0.1 or more” comes from secondary Richard's description in the README and commit, with no run, date, dataset or method.
- Locate span agreement with the BF16 reference not published The CPU half matches locate.py on 20 requests and 1,109 spans. The GPU half, on an NVFP4 base, is unmeasured.
- What pinning costs not published README: it “costs the few percent tuning gained”. Not measured; and the commit doesn't say how pinning interacts with CUDA graphs.
- NVFP4 vs BF16 accuracy for v1.3 not published As in Part 1: nobody has measured what quantization costs these models.
- The isolated layout for decision questions not published Not implemented in decisions-rust; decisions run separate-only.
So can I run v1.3 on decisions-rust today?
Should I turn batch invariance on?
Is Locate safe to rely on?
Where the series stands
That's the series for now: Part 1 on fitting a 27B decider into one Blackwell card with NVFP4 and a Rust harness, and this part on keeping that harness faithful when the model's contract changed. When GPU numbers for v1.3, Locate and batch invariance exist, they'll go here.
Related reading in Decision Models:
- Part 1: What a decision model is, and when to use oneginsberg.si
- Part 2: The primitives: state, noul, choice, and scoreginsberg.si
- Part 3: Forward passes: one question, or manyginsberg.si
- Part 4: Commercial APIs comparedginsberg.si
- Part 6: Inside pplx-decider: from Qwen3.8-27B to a deciderginsberg.si
- Part 7: Gemma LoRAs and three kinds of hybridginsberg.si
- Part 8: Building or migrating your own decision pathginsberg.si
And in this series: Part 1: Four bits, one GPU.
Sources
Fetched 30 November 2026, about 7:00–7:30 PM ET. Every link was live-checked then. Repo files are linked at 9db8d1b, today's head of decisions-rust. Upstream card: perplexity-ai/pplx-decider-v1.3.
- decisions-rustgithub.com
- Commit 522d45d: serve protocol version 4 (pplx-decider v1.3) alongside version 3github.com
- Commit 7c1e506: Locate, the “locate” question type of pplx-decider v1.3github.com
- Commit 9db8d1b: batch invariance, pinned matmul algorithms checked at startupgithub.com
- README at 9db8d1bgithub.com
- src/config.rs at 9db8d1b (Protocol::declared)github.com
- src/protocol.rs at 9db8d1b (both prompt versions)github.com
- src/locate.rs at 9db8d1b (Locate on the CPU)github.com
- src/cuda/locate.rs at 9db8d1b (adapter forward pass)github.com
- src/cuda/blas.rs at 9db8d1b (row buckets, pinning)github.com
- src/cuda/device.rs at 9db8d1b (the startup check)github.com
- Dockerfile at 9db8d1b (defaults still v1.2)github.com
- scripts/fetch_model.py at 9db8d1bgithub.com
- scripts/compare_servers.py at 9db8d1b (--locate)github.com
- scripts/make_encoder_fixture_v4.py at 9db8d1bgithub.com
- machinez/pplx-decider-v1.3-NVFP4huggingface.co
- v1.3 NVFP4 joint_config.jsonhuggingface.co
- v1.3 NVFP4 decision_config.json (temperature)huggingface.co
- v1.2 NVFP4 decision_config.json (temperature)huggingface.co
- perplexity-ai/pplx-decider-v1.3 (upstream card)huggingface.co
- Upstream commit 1e8da83: tokenizer.json pre-tokenizer fix (25 Nov)huggingface.co
- Perplexity Decider: how we train, evaluate, and use it (12 Nov)perplexity.ai
- Perplexity Decisions docs (locate, spans, limits)docs.perplexity.ai
- Decisions API referencedocs.perplexity.ai
- Decisions quickstart (prices)docs.perplexity.ai
- Perplexity changelog (v1.3, revalidate thresholds)docs.perplexity.ai
- cuBLASLt API (algorithm heuristics and checks)docs.nvidia.com
- aigpu/decide-in-rust on Docker Hubhub.docker.com
- aigpu/decide-in-rust tagshub.docker.com
- RunPod template 3yzxdcqbcsconsole.runpod.io