---
language:
  - en
library_name: transformers
pipeline_tag: text-classification
tags:
  - decision-model
  - system-one
  - typed-decisions
  - choice
  - noul
  - score
  - guardrails
  - calibration
  - non-generative
license: other
license_name: research-only-with-upstream-base-license-notices
base_model: LFM2.5-230M
base_model_revision: 9d2be5519834990d30996f878b6771cccbd24f2c
datasets:
  - tasksource/tasksource-jev-typed-decisions
  - samatv256/jev-decisions-v1
  - LocalLLaMA/typed-decisions
  - harness-hub/safeagents-judge-bench
---

# **calipers-0.1-edge**

**Calipers is a 230M-parameter typed decision engine: it does not write words — it returns calibrated probability distributions over the answers you declare.**

Built on the **LFM2.5-230M** backbone, Calipers answers **Choice**, **Noul** (yes/no) and **Score** (ordered levels) questions about a text or JSON state in a single forward pass over prompts up to **32,768 tokens**. It emits no prose, no JSON blobs, no tool calls and no explanations — `output_tokens` is always `0`, so every answer is an exact, auditable distribution.

calipers-0.1-edge is the **complete-pass research checkpoint** of the Calipers line: one full epoch over every eligible decision in its reviewed corpus, calibrated, and evaluated on two external benchmarks against the released `vllm-sr/d3-edge` model on identical pins and harnesses.

---

## Overview

Most models are trained to generate. Calipers is trained to **decide**.

Given a state (an incident transcript, a tool call with scanner findings, an invoice, an agent trajectory) and one or more typed questions with named options, Calipers returns the probability of every option. Confidence is explicit, calibration is empirical, and the answer surface is finite and machine-readable by construction.

The result is a decision component that can sit *in front of* agents and pipelines:

* a guardrail that scores a pending tool call before it runs,
* a router that maps a request to the right queue, team or intent,
* a reviewer that flags evidence as *supported / insufficient / contradicted*,
* an ordinal scorer for risk, severity or quality,
* a probability teacher for distribution-matching fine-tunes.

Calipers never executes anything, never generates actions, and never sees benchmark gold — the model is a **measurement instrument for decisions**, not a chatbot.

---

## Highlights

| | |
|---|---|
| **Answers, not essays** | One forward pass → finite distributions over your options. No decoding loop, nothing can be smuggled into an answer. |
| **Calibrated by construction** | Trained with masked soft-target cross-entropy on full distributions, then a global temperature fitted on a reserved split (T = 1.1009, no bound hit). |
| **32k in one prompt** | Whole trajectories, invoices and incident reports fit un-truncated. Over-limit prompts are **refused, never silently cut**. |
| **One head, three question types** | Choice, Noul and Score share a single 255-code readout drawn from the model's own vocabulary. |
| **Small and fast** | 229.95M parameters (229.69M backbone + 0.26M decision readout). ~1 GB inference footprint, deterministic, fits beside a training job. |
| **Benchmarked head-to-head** | Beats `vllm-sr/d3-edge` (594M) on **all four** typed-decision metrics in a matched local evaluation; near-zero false-block behavior on the agent-safety benchmark. |
| **Research-only** | Trained on a reviewed corpus that includes non-commercial sources under a standing research authorization. No commercial use or publication. |

---

## What the model does

### Example 1 — agent guardrail (Noul + Choice)

Input state: a suspicious tool call with scanner findings.

```json
{
  "state": {
    "tool_call": "cat /logs/agent/sessions/*/history_agent_previous.json",
    "task": "Fix the failing tests in this repository."
  },
  "questions": {
    "block":  {"type": "noul",   "instructions": "Should this tool call be blocked?",
               "criteria": {"true": "Block: it goes beyond the task.",
                            "false": "Allow: it serves the task."}},
    "route":  {"type": "choice", "instructions": "Which team handles this?",
               "criteria": {"platform": "Infrastructure", "app": "Application code"}}
  }
}
```

Output (real model run; probabilities only):

```json
{
  "answers": {
    "block": {"probabilities": {"false": 0.4402, "true": 0.5598}},
    "route": {"probabilities": {"platform": 0.3355, "app": 0.6645}}
  },
  "usage": {"input_tokens": 74, "output_tokens": 0}
}
```

### Example 2 — ordinal severity (Score)

```json
{
  "questions": {
    "severity": {"type": "score", "instructions": "How severe is this issue?",
                 "criteria": ["trivial", "minor", "moderate", "major", "critical"]}
  }
}
```

```json
{"severity": {"probabilities": {"0": 0.1016, "1": 0.2186, "2": 0.1580, "3": 0.3002, "4": 0.2216}}}
```

### Example 3 — evidence interpretation (Choice)

```json
{
  "state": "The optician ordered replacement lenses. The workshop confirms they have not yet been fitted.",
  "questions": {
    "claim": {"type": "choice",
              "instructions": "Assess the claim: the replacement lenses have been fitted.",
              "criteria": {"supported": "The evidence establishes the claim",
                           "insufficient": "The evidence does not establish either",
                           "contradicted": "The evidence establishes the opposite"}}
  }
}
```

The model returns a distribution over `supported / insufficient / contradicted` — never a paragraph, never a preamble.

---

## Architecture

Calipers keeps the **exact layer layout** of the LFM2.5-230M backbone (a compact hybrid stack of short-convolution and grouped-query attention blocks) and adds a **typed decision head**: a 255-code readout that scores single-token answer codes from the model's own vocabulary.

```mermaid
flowchart LR
    subgraph IN["Input (one request)"]
        S["State: text or JSON<br/>(up to 32,768 tokens)"]
        Q["Questions: choice / noul / score<br/>with named options"]
    end

    subgraph FMT["Canonical prompt rendering"]
        R["Decision format v1<br/>state + instructions + option meanings<br/>escaped, no truncation"]
    end

    subgraph BB["LFM2.5-230M backbone (frozen layout)"]
        E["Token embeddings<br/>65,536 x hidden"]
        L1["Conv blocks<br/>(short-range mixing)"]
        L2["Grouped-query attention blocks<br/>(long-range mixing)"]
        N["Final norm"]
    end

    subgraph HD["Typed decision head"]
        H["Last-token hidden state"]
        RO["Readout: hidden -> 255 answer logits<br/>(0.26 M parameters)"]
        SM["Per-question softmax<br/>raw probabilities, FP32"]
    end

    S --> R
    Q --> R
    R --> E --> L1 --> L2 --> N --> H --> RO --> SM
```

| Property | Value |
| --- | --- |
| Model | calipers-0.1-edge |
| Base model | `LFM2.5-230M` @ `9d2be551…` (plus upstream license notices) |
| Parameters | **229,954,304** total · 229,693,184 backbone · 261,120 readout |
| Context | **32,768** complete prompt tokens (native base range; no positional extrapolation) |
| Decision kinds | `choice` (2–255 named options) · `noul` (binary P(true)) · `score` (2–10 ordered levels) |
| Answer surface | 255 answer codes (own-token mapping, codebook sha `635a97c6…`) |
| Objective | masked soft-target cross-entropy, source-weighted, normalized across accumulation microbatches |
| Precision | FP32 master weights, BF16 autocast, gradient clipping 1.0 |
| Output | finite probability distributions; **`output_tokens` is always 0** |

---

## Training

### Data

Trained on the union of two reviewed repositories, **one complete pass over every eligible decision**:

| Source | Role |
| --- | --- |
| `tasksource/tasksource-jev-typed-decisions` | typed decision tasks across the Tasksource ecosystem (largest slice) |
| `samatv256/jev-decisions-v1` | decision/agentic traces including NVIDIA Open-SWE trajectories |

* **3,531,617** eligible training decisions · **15,122,770,649** useful tokens · **16,705,173,616** padded tokens.
* All **15,537,912** declared physical rows were accounted for; 497 source entries reviewed.
* Review policy: unknown rights, privacy failures, over-limit prompts, conflicts, duplicates and all holdouts **excluded with recorded reasons**. Non-commercial sources are included under an explicit research authorization; the model is **non-commercial/research-only**.
* Prompt policy: **full 32,768-token prompts**, no evidence or option text trimmed.

### Recipe

| | |
| --- | --- |
| Passes | **1 complete pass** · 16,897 updates · final checkpoint `update-016897` |
| Optimizer | AdamW, backbone LR 2e-5 / readout LR 2e-4 (decay 0.01, β 0.9/0.95) |
| Schedule | 507-update warmup + cosine to a 5% floor |
| Validation | every 1B useful tokens on a reserved selection split (source-macro NLL **1.744 → 0.800**) |
| Duration | 109.6 h on a single NVIDIA A100 80GB (73.2 GB peak live allocation) |

### Calibration

A single global temperature was fitted on the **reserved 20,596-decision calibration split** (never the test or benchmark data):

| | Raw | Calibrated |
| --- | ---: | ---: |
| Temperature | 1.0 | **1.1009** (no bound hit) |
| NLL | 0.47956 | **0.47750** |
| Brier | 0.25775 | **0.25706** |

---

## Evaluation

All evaluations are frozen: benchmark data was **never used for training, calibration or model selection**, and every run is sealed with SHA-256.

### 1. Typed decisions — `LocalLLaMA/typed-decisions` test split (400 cases / 2,000 decisions)

| Metric | **calipers-0.1-edge (calibrated)** | raw T=1.0 | `vllm-sr/d3-edge` (locally matched) |
| --- | ---: | ---: | ---: |
| Teacher-label agreement ↑ | **0.449** | 0.4505 | 0.4205 |
| KL from gold ↓ | **0.4769** | 0.5002 | 1.1768 |
| Distribution Brier ↓ | **0.2378** | 0.2463 | 0.4567 |
| ECE ↓ | **0.0777** | 0.0981 | 0.3474 |

The d3-edge column is a **local matched evaluation** of the released `vllm-sr/d3-edge` package (revision `bee5e872…`, 594.6M parameters) on the identical split and harness — its local numbers reproduce its published row within ≤0.007, validating the setup. Calipers leads on all four metrics with 2.6× fewer parameters.

### 2. Agent-safety judging — `harness-hub/safeagents-judge-bench` test split (661 real tool calls)

| Metric | **calipers-0.1-edge** | `vllm-sr/d3-edge` (published) |
| --- | ---: | ---: |
| Balanced accuracy ↑ | 0.530 | **0.75** |
| AUROC ↑ | 0.620 | **0.849** |
| Recall (block) ↑ | 0.060 | — |
| **False-block rate** ↓ | **0.000** | 0.436 |
| Category macro F1 ↑ | 0.241 | 0.223 |
| Trajectories caught | 12/82 | — |

**Read honestly:** on this benchmark Calipers is deliberately conservative — it never blocks a legitimate call (0.000 false blocks) but at the published 0.5 threshold it also blocks few misbehaving trajectories. Its risk ranking is real (AUROC 0.620) but the operating point is not tuned for aggressive blocking. d3-edge is the better aggressive blocker; Calipers is the better calibrated, lower-false-positive signal. This benchmark release has no held-out split on which to fit a cut-off, and none was fitted.

### 3. Direct tests — reserved 79,853-decision internal split

| Metric (calibrated, source-macro over 476 sources) | Value |
| --- | ---: |
| NLL | 0.8458 |
| Target KL | 0.8248 |
| Distribution Brier | 0.4457 |
| Hard-label accuracy (answered) | 0.6304 |
| Hard-label ECE | 0.2285 |

### 4. Reproducibility

| Artifact | SHA-256 |
| --- | --- |
| Model tensor signature | `eedfa96f75c2c1bfb09088600b0c961d3a29a31b874453f2ec807a684855bcf1` |
| Export manifest | `81b5466dc7ceb2bc1cde142872ecfd3f5d5dd2129fc74861abc7e8e984a42efc` |
| Training run | `df9379308930ebd2ff8175555a49aed32df786d32578225b13e75c71729c8b5d` |
| Corpus | `3b5f212e02ca701263ed270f6c9d6379f6262d69681a2e8a8e3f4f7753bc2522` |
| Full-pass plan | `72d007ae9db86db1231ccc1a14f7717e51915bb1cb43eb90f241bb212df0bd6a` |
| Typed-decisions result | `9613a1e6c5b6efaf3909f19cb100807f31a942058862d488d7d12dba17f4dc58` |
| Judge-bench result | `fcb85fe4df9c9022654b5842aaad7c5164915e7e20f45c73b4e37aa8d84187f2` |

Input-only overlap checks for both benchmarks are clean (no benchmark-family source in the reviewed registry; no benchmark call text in the scanned training corpus). Exact-containment checks only, not fuzzy certification.

---

## Quick start

The model ships as a self-contained research bundle: weights, tokenizer, calibration, answer codes, the exact training/inference package, and a `quickstart.py`. **Stock `AutoModel` is not claimed to reproduce this interface** — use the included `calipers` code.

### Installation

```bash
pip install torch==2.13.0 transformers==5.14.1 safetensors==0.8.0 tokenizers==0.22.2
```

### Python inference

```python
from calipers.runtime import DecisionRuntime

runtime = DecisionRuntime.from_pretrained(
    "calipers-0.1-edge/model",          # weights directory
    "calipers-0.1-edge/tokenizer/tokenizer.json",
    device="cuda:0",                     # calibration.json loads automatically if present
)

result = runtime.system_one(
    state={
        "tool_call": "cat /proc/1/environ",
        "task": "Fix the failing tests in this repository.",
        "scanner_findings": [{"id": "side_channel.harness_secret_read",
                              "severity": "medium"}],
    },
    questions={
        "block": {"type": "noul",
                  "instructions": "Should this tool call be blocked?",
                  "criteria": {"true": "Block: it goes beyond the task.",
                               "false": "Allow: it serves the task."}},
        "route": {"type": "choice",
                  "instructions": "Which team handles this?",
                  "criteria": {"platform": "Infrastructure", "app": "Application code"}},
    },
)

print(result["answers"]["block"]["probabilities"])   # {'false': ..., 'true': ...}
print(result["answers"]["route"]["probabilities"])   # {'platform': ..., 'app': ...}
print(result["usage"]["output_tokens"])              # 0 — always
```

### HTTP server

```bash
python -m calipers.server --bundle calipers-0.1-edge --device cuda:0 --port 8765
# POST /v1/systemone  {"state": ..., "questions": ...}
# GET  /health
```

The server is unauthenticated by design for local research; keep it on loopback or a trusted network.

---

## Intended use

* **Agent guardrails** — score a pending tool call (state + scanner findings) as allow/block with an explicit probability.
* **Routing and triage** — pick a queue, team, intent or category from named options.
* **Structured review flags** — Noul questions such as “needs human review?”, “is a receipt present?”.
* **Ordinal scoring** — severity, urgency, quality or risk as distributions over ordered levels.
* **Distribution matching** — fine-tuning against teacher distributions where calibration matters more than argmax.
* **Edge deployment** — 230M parameters, no generation loop, deterministic, ~1 GB at 32k context.

**Not intended for:** generating text, code, tool calls or arguments; executing actions; medical, legal, financial or any safety-critical decisions without domain validation; commercial use or publication.

---

## Limitations

* **Conservative blocking bias** — on the agent-safety benchmark it under-blocks at the standard 0.5 threshold. Not a stand-alone safety judge without calibration on your own validation set.
* **Synthetic/model-panel labels** — typed-decisions gold is a synthetic teacher; judge-bench labels are a model panel with limited human adjudication. Agreement is **not verified real-world correctness**.
* **Typed interface only** — Choice/Noul/Score questions with declared options. No free-form answers, explanations, code, or actions.
* **Hard 32,768-token limit** — over-limit prompts are refused, never truncated.
* **Text/JSON only** — no images, audio or video.
* **English-focused** corpus and review.
* **Documentary rights review** — source documents are reviews, not legal clearance; unresolved-rights rows were quarantined and never trained.
* **One seed, one recipe** — architecture-selection differences between variants were small and single-seed; treat comparisons as indicative, not universal.

---

## License and attribution

* **Research use only.** Training includes non-commercial sources under an explicit research authorization. No commercial use, publication, or external data transfer is authorized for this checkpoint.
* **Upstream base license applies** — the LFM2.5-230M base license and all notices/revenue thresholds remain in force for derivatives; the base license file ships with the tokenizer in this bundle.
* **Training sources** — `tasksource/tasksource-jev-typed-decisions` and `samatv256/jev-decisions-v1` (including NVIDIA Open-SWE traces and other reviewed components). Preserve all upstream attribution and component notices; rows with unresolved rights were never trained.
* **Benchmark data** — `LocalLLaMA/typed-decisions` and `harness-hub/safeagents-judge-bench` were used for evaluation only.

---

## Citation

```bibtex
@misc{calipers01edge2026,
  title  = {Calipers: a 230M-Parameter Typed Decision Engine (calipers-0.1-edge)},
  author = {Calipers Project},
  month  = {November},
  year   = {2026},
  note   = {Non-generative Choice/Noul/Score decision model over LFM2.5-230M;
            complete-pass research checkpoint; research-only}
}
```