H2O Lightning: Decision Models

H2O-Lightning-4B

H2O-Lightning-4B is a 4B-parameter decision model from H2O.ai, built on Qwen/Qwen3.5-4B. It answers typed decision questions about a record (a document, a ticket, a policy, a conversation) and about images that come with the record (photos, screenshots, scanned documents, charts). It returns a probability for every option:

  • choice: picks one of a set of named options (up to 255 options per question);
  • yes/no (noul): gives the probability that a statement is true;
  • score: gives an ordinal level on a stated scale, with its probability distribution.

Each decision reads one output token (the model's first answer token, read as log-probabilities over the option labels) in one forward pass, and the model generates no text, with two exceptions: in the aa and decision_index modes an unsure text answer (top probability under 0.90, prompts up to 2,000 tokens) is read a second time, and in every mode an unsure image answer (under 0.80) is read again at a larger image budget (passes_per_decision and processed_input_tokens count these); a box question generates its box (up to 32 tokens).

Leading on Benchmarks

Leading on Benchmarks: #1 of 46, Composite (open-weight Jev-class models; #2 of 55 Jev-class models, open or API), ImageJevBench edition v0.3.0; #2 of 46, Intelligence (open-weight Jev-class models; #6 of 55 Jev-class models, open or API), ImageJevBench edition v0.3.0; #2 of 46, Capability (open-weight Jev-class models; #6 of 55 Jev-class models, open or API), ImageJevBench edition v0.3.0; #2 of 170, Composite (open-weight Jev-class models; #12 of 201 Jev-class models, open or API), JevBench board of 2026-10-28; #1 of 4, Box Capability (open-weight Jev-class models; #1 of 5 Jev-class systems, open or API), ImageJevBench Box track (PREVIEW); #1 of 46, Composite (open-weight Jev-class models; #3 of 55 Jev-class systems, open or API), ImageJevBench computer-use track

  • #1 of 46 β€” Composite (open-weight Jev-class models; #2 of 55 Jev-class models, open or API), ImageJevBench edition v0.3.0, page read 2026-10-31, its row for release v1.4.1 @d7f1b05a, measured 2026-10-28 at image temperature 1.0; ahead of Drex Max (Nace AI, 44.65), Jev 1.13.0 + images (TypeSafe, 26.43), Clef-Flash (Cloudflare, 20.41) and Liquid d1-3B (4.10) (details)
  • #2 of 46 β€” Intelligence (open-weight Jev-class models; #6 of 55 Jev-class models, open or API), ImageJevBench edition v0.3.0, page read 2026-10-31, its row for release v1.4.1 @d7f1b05a, measured 2026-10-28 at image temperature 1.0; ahead of Clef (Cloudflare, 47.40) and Liquid d1-3B (16.31) (details)
  • #2 of 46 β€” Capability (open-weight Jev-class models; #6 of 55 Jev-class models, open or API), ImageJevBench edition v0.3.0, page read 2026-10-31, its row for release v1.4.1 @d7f1b05a, measured 2026-10-28 at image temperature 1.0; ahead of Clef (Cloudflare, 58.08) and Liquid d1-3B (47.78) (details)
  • #2 of 170 β€” Composite (open-weight Jev-class models; #12 of 201 Jev-class models, open or API), JevBench board of 2026-10-28, its row for release v1.1, measured 2026-10-04; ahead of d1 (Liquid AI, 72.82), Microsoft-Decision-1 (69.08), OpenAI Decisions (62.37) and pplx-decider-flash (Perplexity, 54.01) (details)
  • #1 of 4 β€” Box Capability (open-weight Jev-class systems; #1 of 5 Jev-class systems, open or API; Jev-class on this track: within 2x the latency and cost of Jev 1.14.0), ImageJevBench Box track (PREVIEW), edition v0.3.0, page read 2026-10-29, its row for release v1.4.1 through the H2O serving package, measured 2026-10-29; ahead of Jev 1.14.0 (TypeSafe, 75.71) (details)
  • #1 of 46 β€” Computer-use Composite (open-weight Jev-class systems; #3 of 55 Jev-class systems, open or API, behind two API systems scored on the board's smaller hosted-API item set), ImageJevBench computer-use track, edition v0.3.0, page read 2026-10-31, its row for release v1.4.1 @d7f1b05a, measured 2026-10-28 at image temperature 1.0; ahead of Liquid d1-3B (Liquid AI, 66.22) and Clef-Flash (Cloudflare, 55.29) (details)

How to run it: install our vLLM build with per-request attention, download the model and run bash h2o-lightning-4b/serve.sh on one GPU (measured on a 96 GB RTX PRO 6000; a GPU with less memory needs a smaller MAX_LEN). For the Decision Index run bash h2o-lightning-4b/run_decision_index.sh, for JevBench bash h2o-lightning-4b/run_default.sh. See Modes, How to run and Recommended vs Optional.

Try it in your browser: live demo on Hugging Face Spaces (text and images; built by the Hugging Face team and running on ZeroGPU).

Other formats: GGUF for llama.cpp, built from an earlier release: h2oai/h2o-lightning-4b-gguf. MLX for Apple silicon, built by NetProjects: netprojects/h2o-lightning-4b-mlx-q8 (8-bit; two-way and one-way) and netprojects/h2o-lightning-4b-mlx-q4 (4-bit; one-way only). Both are built from an earlier release of this model, not from this release; NetProjects reports 205 / 231 on JevBench's public items two-way and 201 one-way for the 8-bit build. A variant on a different base: h2oai/h2o-lightning-4b-nemotron-nano, built on NVIDIA Nemotron 3 Nano 4B; text only; NVIDIA Nemotron Open Model License.

On JevBench (board v1.7.15, read 2026-10-28) the board lists v1.4.1's row, composite 75.98, without a rank: its draw is not yet equated to the board's reference scale. This release is not yet on the board.

ImageJevBench

On the board's ImageJevBench page (edition v0.3.0, read 2026-10-31), the board's run of v1.4.1 @d7f1b05a (an earlier release), measured on 2026-10-28 with images at temperature 1.0 and v1.4.1's image cap, scores:

Intelligence Calibration Speed Cost Capability Composite
55.48 88.19 88.72 56.34 71.84 68.51

On Composite it is the first of 46 open-weight Jev-class models and second of 55 Jev-class models, open or API; the one ahead of it is an API system (75.38). On Capability it is the second of 46 open-weight Jev-class models, behind H2O-Lightning-31B, and sixth of 55 Jev-class models, open or API. It is ahead of Drex Max (Nace AI, 44.65) and Jev 1.13.0 + images (TypeSafe, 26.43). This release's image temperatures: see Calibration.

See it in action

Three demos recorded with an earlier version of the model: an operations inbox deciding claims against a written policy, a web agent choosing vendors in real browsers, and DOOM played to the exit. Companies, people and amounts are fictional.

H2O-Lightning-4B: full-length demo runs on YouTube

Measured

Every number below is read through this package's served code and engine (serve.sh or a run script, the served code and config checked against SHA256SUMS), two-way, on one NVIDIA RTX PRO 6000 (96 GB), BF16 weights, the h2oai/vllm per-request-attention build the release ships (commit a36449a18b4465b4f70fa078f5403032de414de8), in the mode named in each row, with the calibration head on (the default in every mode). The two Decision Index reads were taken before the yes/no commit floor and the "I don't know" rule were added: the floor (0.801) is applied to their recorded answers, which is exactly what the server returns, since it acts last and on each yes/no answer alone. The two JevBench rows were read on the final package as published, with the floor and, in the aa row, the "I don't know" rule on (that rule's own numbers are under The "I don't know" rule).

Benchmark Mode (how it is run) Result Held-out or in-sample
Decision Index 0.3, public text index decision_index (run_decision_index.sh) 63.91 in-sample: the calibration was fitted on reads that include these rows, and test-suite label shares informed some training label shares (see What it was trained on)
Decision Index, vision index (public_vision_index) decision_index (run_decision_index.sh) 69.98 in-sample for calibration: the calibration head's fit pool includes 7 of its 12 benchmarks; no copy of a test image is in training (a perceptual-hash scan found none)
JevBench, public items correct jevbench (run_default.sh) 207 / 231 held-out: no JevBench data was used for training or calibration
JevBench, public items correct aa (serve.sh with no settings, the default) 206 / 231 held-out: no JevBench data was used for training or calibration

Modes

Each request is answered in one of three modes. A request names its mode in "mode" (or kwargs.mode); a request without one gets the server's default: decision_index under run_decision_index.sh (the decision-index profile), jevbench under run_default.sh (the two-way profile), and aa for serve.sh with no profile. Every /v1/systemone response says its mode in effort_used.mode; /health lists the modes and their settings.

mode "mode" what it does
JevBench "jevbench" under run_default.sh (the two-way profile): one read per question, a state over 126,976 tokens cut down by BM25, an image question under 0.80 read again at 3,276,800 pixels; under a plain serve.sh: serve_config.json as shipped (one read, a state over 16,000 tokens cut to its head and tail, the same image re-read)
Decision Index "decision_index" the decision-index profile's reading: records read whole up to the context (126,976 tokens of state), the conditional text re-read under 0.90, the image re-read under 0.80 at twice the image budget
AA ("auto" is the same) "aa" or "auto" Decision Index, plus the "I don't know" rule (a choice question with an explicit "I don't know" option answers it when its top real answer is under the cutoff, 0.80 for this model; see The "I don't know" rule)

Default configuration (AA mode)

bash h2o-lightning-4b/serve.sh with no settings starts the AA setup: one engine of our vLLM build reading every prompt two-way (on a stock vLLM it serves the one-way fallback instead, with a WARNING: see Fallback: stock vLLM, one-way only), max model length 131,072 tokens, and the shim answering a request that names no mode in aa mode (the decision_index mode's reading). A request may ask for jevbench or decision_index instead. This model has no adaptive reasoning, so aa answers as decision_index apart from the "I don't know" rule (cutoff 0.80; see Adaptive reasoning and The "I don't know" rule).

Two-way start-up check

The model reads its prompt two-way (its full-attention layers see the whole prompt), as it was trained. Before its first answer the shim reads a probe question with and without the per-request two-way flag; an engine whose answers do not move (a stock vLLM ignores the flag) is refused with 503 and named in /health. A request may ask for one-way reading ("attention_mode": "causal" or kwargs.attention_mode); the response's attention_mode says which reading was served. One-way reading was measured once (JevBench only; see the fallback below). A whole server reads one-way with READING=one-way (the stock-vLLM fallback; see Fallback: stock vLLM, one-way only): it sends no two-way flag, so this check does not run, and a request asking for the two-way reading there is refused with 400.

How to run

1. Install the vLLM build

Install vLLM 0.30.0 with pip in a fresh virtual environment, and download the model (on a fresh Ubuntu, python3 -m venv first needs sudo apt install python3-venv):

python3 -m venv .venv && . .venv/bin/activate
pip install "vllm==0.30.0" "torchcodec==0.17.0" "transformers==5.19.0" "tokenizers==0.23.3"
hf download h2oai/h2o-lightning-4b --revision v2.0.2 --local-dir h2o-lightning-4b

(The default build needs a CUDA 13 driver, R580 or later, and torchcodec 0.17.0 loads the CUDA 13 runtime libraries (libcudart.so.13, libnvrtc.so.13), so the host needs them, e.g. from the CUDA 13 runtime. On an older driver or a CUDA 12.9 host, install the CUDA 12.9 build instead: pip install "vllm==0.30.0+cu129" "torchcodec==0.15.0+cu129" "transformers==5.19.0" "tokenizers==0.23.3" --extra-index-url https://wheels.vllm.ai/0.30.0/cu129 --extra-index-url https://download.pytorch.org/whl/cu129.)

The card's numbers were measured on the default build above (vLLM 0.30.0, torch 2.13.0, torchcodec 0.17.0, transformers 5.19.0, tokenizers 0.23.3, with the CUDA 13 runtime libraries). The CUDA 12.9 install is not measured on this release. Our hosted API serves the CUDA 12.9 build, so hosted numbers can differ slightly from this card.

That is stock vLLM. Every number on this card was read on our vLLM build with per-request attention, h2oai/vllm at commit a36449a18b4465b4f70fa078f5403032de414de8: vLLM 0.30.0 plus 37 changed or added Python files under vllm/ (no compiled code): per-request attention and the residual-stream capture the calibration head reads. Copy them over the vLLM installed above; engine/vllm_per_request_attention.SHA256SUMS lists each file with its sha256:

SUMS="$PWD/h2o-lightning-4b/engine/vllm_per_request_attention.SHA256SUMS"
SRC="$(mktemp -d)"; git -C "$SRC" init -q && git -C "$SRC" fetch -q --depth 1 https://github.com/h2oai/vllm a36449a18b4465b4f70fa078f5403032de414de8 && git -C "$SRC" checkout -q FETCH_HEAD
SITE="$(python -c 'import os, vllm; print(os.path.dirname(os.path.dirname(vllm.__file__)))')"
while read -r sha path; do mkdir -p "$SITE/$(dirname "$path")" && cp "$SRC/$path" "$SITE/$path"; done < "$SUMS"
(cd "$SITE" && sha256sum -c --quiet "$SUMS") && echo "per-request attention build installed"

Use pip as above: a uv virtual environment hard-links installed files to a shared cache, and copying over them would change every environment linked to it. serve.sh checks the build on every start. On a stock vLLM, or when a listed file does not match its sha256, it serves the one-way reading instead and prints a WARNING naming the reason and both fixes (/health "reading": "one-way (fallback: <reason>)"); READING=two-way stops there instead, and the profiles and run scripts always stop (see Fallback: stock vLLM, one-way only). The shim needs Python 3.8 or later with numpy (the calibration head loads with it in every mode). serve.sh starts the shim with the first python3 on PATH, so run it with the vLLM environment active (the run scripts put their own environment first).

2. Serve

hf download h2oai/h2o-lightning-4b --revision v2.0.2 --local-dir h2o-lightning-4b && bash h2o-lightning-4b/serve.sh

This starts one vLLM engine on the weights (served as h2oai/h2o-lightning-4b) and the shim (h2o_lightning_shim.py with serve_config.json) in front of it. Before its first answer the shim checks that vLLM serves the configured model, renders the chat as the model was trained, applies the option-letter mask and returns token-id log-probabilities, and runs the two-way start-up check. serve.sh then warms up the text path and the image path, and prints ready with http://127.0.0.1:8741/v1/systemone. A failed text warm-up stops the script; a failed image warm-up is a warning. Ctrl-C stops both servers. serve.sh --profile NAME serves one pinned configuration (decision-index and two-way, both measured; decision-index-max, not measured): the shim checks the shipped config and the running engine against the profile and stops on a difference; python3 h2o_lightning_shim.py --profile NAME --print-profile prints its pins and settings.

GET /health reports the shim's configuration and answers 503 while a start-up check fails; GET /v1/models lists h2oai/h2o-lightning-4b.

3. Example request

The /v1/systemone API (/api/alpha/decisions is an alias): one yes/no (noul), one choice and one score question about one record.

curl -s http://127.0.0.1:8741/v1/systemone -H 'Content-Type: application/json' -d '{
  "state": {"ticket": "Checkout returns HTTP 500 for every customer since 09:12.", "plan": "enterprise"},
  "questions": {
    "outage":   {"type": "noul", "instructions": "Is this a full outage?",
                 "criteria": {"true": "yes", "false": "no"}},
    "team":     {"type": "choice", "instructions": "Which team should take it?",
                 "criteria": {"payments": "Payments", "web": "Web frontend", "support": "Customer support"}},
    "urgency":  {"type": "score", "instructions": "How urgent is it?", "criteria": ["Low", "Medium", "High"]}}}'

The response has this shape (values elided):

{
  "model": "h2oai/h2o-lightning-4b",
  "answers": {
    "outage":  {"type": "noul", "noul": 0.0},
    "team":    {"type": "choice", "choice": "...",
                "probabilities": {"payments": 0.0, "web": 0.0, "support": 0.0}, "confidence": 0.0},
    "urgency": {"type": "score", "score": 0.0, "legend": {"0": "Low", "1": "Medium", "2": "High"},
                "probabilities": {"0": 0.0, "1": 0.0, "2": 0.0}, "confidence": 0.0}
  },
  "attention_mode": "bidirectional",
  "probability_source": "native",
  "effort_used": {"tier": "fast", "passes_per_decision": 1},
  "usage": {"input_tokens": 0, "output_tokens": 0, "latency_ms": 0.0}
}

A yes/no answer is the probability of the "true" option; adding "threshold": t (0 to 1) to a yes/no question also returns "decision": true when that probability is at least t; the decision is taken on the probability after the yes/no floor 0.801, so any t from 0.5 to 0.801 gives the same decision as 0.5. A choice is the first most probable option; its confidence is the normalized maximum (0 for a uniform answer, 1 for a certain one), as is a score's. A score is the expected level index. The several questions about one state are read concurrently, and usage.input_tokens counts the shared state once plus each question's own part. effort accepts fast, balanced or thorough; every request is answered at fast (one read per decision, plus the re-reads above), and a different tier is noted in effort_used.

Images. Up to 4 images per request, each scaled to at most 1,638,400 pixels. An image can be a data:image/... URI or bare base64 anywhere inside state, a chat-style image part inside state, one of the top-level fields images, image, image_url, image_urls, image_data, image_base64 (data URIs, base64, http(s) URLs or image parts), or a file part of a multipart/form-data request with the JSON in a request field. A URL counts as an image only in those explicit places. A request without an image takes the text path.

4. Test the package

On a CPU, no GPU and no network, from the downloaded folder:

pip install pytest "transformers==5.19.0" "tokenizers==0.23.3" jinja2
cd h2o-lightning-4b && python3 -m pytest -q test_shim.py

It checks that the served code and config match SHA256SUMS, that serve.sh starts the measured engine, and (with transformers and jinja2 installed; skipped without transformers) that the shim answers end to end over HTTP against a vLLM stand-in that renders with this model's own chat template and tokenizer.

Recommended: how to run for the Decision Index

One command installs the pinned engine into ./di-venv (once) and serves the decision-index profile, sized for one RTX PRO 6000:

hf download h2oai/h2o-lightning-4b --revision v2.0.2 --local-dir h2o-lightning-4b
bash h2o-lightning-4b/run_decision_index.sh      # prints DECISION INDEX SERVER READY on http://127.0.0.1:8741

Run the Decision Index kit (edition 0.3) against the server, from a second shell (the server keeps the first) and in its own environment:

uv venv --python 3.12 kit && VIRTUAL_ENV=kit uv pip install "decision-index[vision] @ git+https://github.com/apolinario/decision-index@f8552a1" pillow==13.0.0 numpy
. kit/bin/activate
decision-index suite download --edition 0.3 --dir suite-0.3
bash h2o-lightning-4b/di_tools/di_text_sharded.sh suite-0.3 http://127.0.0.1:8741 h2oai/h2o-lightning-4b runs/text 16
decision-index vision run --dir <vision suite dir> --engine decide --option base_url=http://127.0.0.1:8741 \
  --option path=/v1/systemone --option protocol=decisions --option model=h2oai/h2o-lightning-4b \
  --option max_pixels=1638400 --workers 16 --out runs/vision
decision-index vision score --dir <vision suite dir> --results runs/vision/results.jsonl --out runs/vision/score
  • di_tools/di_text_sharded.sh is a speed-up only: it splits the kit's own row list (rows unchanged) into 16 files round-robin (di_tools/make_shards.py), reads each with its own decision-index run --rows against the one server, concatenates the untouched results into runs/text/results.jsonl and scores it once with decision-index score (into runs/text/score). It replaces a single decision-index run --edition 0.3 --suite-dir suite-0.3 --engine http --option base_url=http://127.0.0.1:8741 --option model=h2oai/h2o-lightning-4b --out runs/text, which reads the same rows in one process and takes much longer. A different split batches requests differently on the engine, so individual answers can move slightly (see Limitations).
  • <vision suite dir> is the pinned Decision Index vision suite (decision-index vision verify --dir must pass on it).
  • max_pixels=1638400 is the shim's image budget, so the kit sends each image at the size the model reads it first; the image re-read reads the same image again at its larger budget.

Every request is answered in the decision_index mode (the server's default under this script). Every record is read whole up to 126,976 tokens of state (the 131,072-token context less 4,096).

Recommended: how to run for JevBench

hf download h2oai/h2o-lightning-4b --revision v2.0.2 --local-dir h2o-lightning-4b
bash h2o-lightning-4b/run_default.sh             # prints DEFAULT SERVER READY on http://127.0.0.1:8741

POST each JevBench item's request body (state, questions, and any images) unchanged to http://127.0.0.1:8741/v1/systemone, one request at a time, and score the answers with JevBench's own scorer. Every request is answered in the jevbench mode (the server's default under this script). With serve.sh alone a request asking "mode": "jevbench" gets the server's own settings instead (a 16,000-token state cap; the same image re-read).

For benchmark maintainers: ImageJevBench Box track

Ask a Box question through the package, not a chat prompt. On a stock vLLM chat endpoint the weights answer a box but usually without a stated confidence: in this model the box's confidence is not a number it writes, it is computed by the shim from the box generation's own token probabilities and calibrated (the confidence field below). A chat harness that reads a self-stated "confidence" key will find it missing on most answers.

Run it like this, one request at a time on one GPU:

hf download h2oai/h2o-lightning-4b --revision v2.0.2 --local-dir h2o-lightning-4b
bash h2o-lightning-4b/serve.sh          # no settings (the aa mode); serves http://127.0.0.1:8741

One request per item, the image in the record and one box question that names it:

curl -s http://127.0.0.1:8741/v1/systemone -H 'Content-Type: application/json' -d '{
  "state": {"photo": "data:image/jpeg;base64,<the image, unchanged>"},
  "questions": {"where": {"type": "box", "instructions": "the leftmost dog in `photo`"}}}'

Read answers.where.box (left, top, right, bottom, fractions of the image from the top-left corner) and answers.where.confidence (the calibrated probability that the box overlaps the target with IoU >= 0.5). If answers.where.found is false, the box is the whole image and the confidence is 0. present is the probability that the named object is visible, a probability from 0 to 1; it is not the box's score. Box questions are answered the same way in every mode. This release's measured box numbers (RefCOCOg val, no board images) are under Image references and the Box question.

Fallback: stock vLLM, one-way only

Without our vLLM build, stock vLLM 0.30.0 serves the model with the one-way (causal) reading, with the same shim and the same files, started with READING=one-way. Without that setting, serve.sh on a stock vLLM serves the same one-way server but prints a WARNING naming the reason and both fixes, and /health reports "reading": "one-way (fallback: <reason>)"; with it, /health reports "reading": "one-way (READING=one-way)". Every number on this card was read two-way on our build; use it for those numbers.

Measured once (2026-11-27, one NVIDIA RTX PRO 6000 Blackwell, stock vLLM 0.30.0, READING=one-way bash serve.sh, the aa mode, the server's default): JevBench 202 / 231 public items correct, against 206 / 231 two-way on our build in the same mode (table above). The one-way start serves the per-type temperatures in every mode (the two-way values, not fitted for one-way). No other number was read one-way.

1. Install stock vLLM 0.30.0 (no files copied over it) with this package's other pins, in a fresh virtual environment, and download the model (on a CUDA 12.9 host, the CUDA 12.9 line of 1. Install the vLLM build instead):

python3 -m venv .venv && . .venv/bin/activate
pip install "vllm==0.30.0" "torchcodec==0.17.0" "transformers==5.19.0" "tokenizers==0.23.3"
hf download h2oai/h2o-lightning-4b --revision v2.0.2 --local-dir h2o-lightning-4b

2. Serve:

READING=one-way bash h2o-lightning-4b/serve.sh

What changes against the recommended start (everything else is serve.sh's own: BF16 weights, MAX_LEN 131,072 with the same batch budget, GPU_UTIL 0.85, the same shim settings and the three modes):

  • one-way (causal) reading: the shim sends no two-way flag and runs no two-way start-up check, serve.sh does not check the engine's files, and a request asking for "attention_mode": "two-way" is refused with 400;
  • the per-type temperatures in every mode instead of the calibration head (Y_FR, the default in every mode on our build): the head reads the residual stream that our build returns with every read, which stock vLLM cannot return; the temperatures are the shipped values, fitted on two-way reads, not for the one-way reading;
  • no adaptive reasoning (this model has none on our build either);
  • profiles not available: serve.sh --profile, run_decision_index.sh and run_default.sh are measured on our build and refuse a one-way start (READING=one-way, or a stock vLLM).

Artificial Analysis

The Artificial Analysis Decision Index runs the model as shipped: bash h2o-lightning-4b/serve.sh with no settings, every request in the default aa mode (no mode field), through /v1/systemone or OpenAI's Decisions shape on /v1/decisions. The aa row in Measured (JevBench in the default mode) was read this way.

Recommended vs Optional

Recommended (measured): bash h2o-lightning-4b/serve.sh with no overrides (the aa mode), or the two run scripts for the Decision Index and JevBench. These are the configurations behind every number in Measured:

  • two-way reading on one engine of the h2oai/vllm per-request-attention build @a36449a18b4465b4f70fa078f5403032de414de8 (with the residual capture) (--attention-backend TRITON_ATTN; every read carries the two-way flag; --allowed-media-domains media.invalid, so the engine itself never fetches a URL);
  • BF16 weights served unquantized, the output head in float32;
  • MAX_LEN 131,072 tokens, with the batch budget (--max-num-batched-tokens) equal to it so a prompt is prefilled whole;
  • one 96 GB GPU (an RTX PRO 6000), GPU_UTIL 0.85, MAX_SEQS 256;
  • the shipped serve_config.json: choice temperature by option count (2 options 0.79, 3 options 0.97, 4 options 0.97, 5 options 0.97, 6 or more 1.04), yes/no 0.97, image temperature by option count (2 options 1.08, 3 options 0.81, 4 options 0.81, 5 options 0.97, 6 or more 1.13), score 0.97, yes/no floor 0.801, the trimmed prompt, head-and-tail state cut at 16,000 tokens in the jevbench mode of a plain serve.sh (BM25 over 126,976 under run_default.sh) and 126,976 tokens in the decision_index and aa modes, up to 255 options, up to 4 images of at most 1,638,400 pixels each (3,276,800 on the image re-read).

Fallback (measured once on this release, JevBench only): stock vLLM 0.30.0, one-way only, for a server without our build: READING=one-way bash h2o-lightning-4b/serve.sh (see Fallback: stock vLLM, one-way only).

Optional (overrides). Each changes the measured configuration; none of them was measured unless the row says so. The shim prints NOT the benchmarked configuration at start when a prompt override, a whole-type temperature (SHIM_TEMPERATURE, SHIM_TEMPERATURE_CHOICE / _SCORE / _NOUL, SHIM_IMAGE_TEMPERATURE) or a floor override is set; the per-option-count temperatures (SHIM_TEMPERATURE_<TYPE>_K*, SHIM_IMAGE_TEMPERATURE_K*) do not print it.

  • FP8 serving: not measured (FP8=1 serves the BF16 weights with online FP8, --quantization fp8). serve.sh --profile does not refuse FP8=1 (the run scripts drop it), and the ready line says BF16 even then.
  • A smaller MAX_LEN (a GPU with less memory): not measured. The state cap never exceeds MAX_LEN minus SHIM_STATE_HEADROOM.
  • One-way reading: READING=one-way for the whole server (the fallback above) was measured once, JevBench only; "attention_mode": "causal" in one request on our build: not measured.
  • Other temperatures (SHIM_TEMPERATURE*) or a yes/no floor (SHIM_NOUL_FLOOR): not measured.
  • The query-aware selector SHIM_SELECTOR=v2 is part of the two-way profile (run_default.sh, the JevBench row) and is measured there only. The basic selector, the decision-index-max profile (the text re-read under 0.95), two readout orders, or another prompt form (SHIM_TRIM, SHIM_SYSTEM, SHIM_ASK): not measured.
  • Other GPUs (H100, H200): not measured.

Inference options

serve.sh environment variables:

Variable Default Effect
MODEL the folder holding serve.sh the weights vLLM serves
VLLM_PORT 8000 vLLM's port (bound to 127.0.0.1)
PORT 8741 the shim's port (/v1/systemone)
MAX_LEN 131072 vLLM's max model length, and also the batch budget (--max-num-batched-tokens); under a profile a different value is reported as an override
FP8 0 0: BF16 unquantized; 1: online FP8 (--quantization fp8) of the BF16 weights (not measured; not refused under serve.sh --profile, dropped by the run scripts; the ready line says BF16 either way)
GPU_UTIL 0.85 vLLM's --gpu-memory-utilization
MAX_SEQS 256 vLLM's --max-num-seqs
READING unset unset: two-way on our build, else the one-way fallback with a WARNING; two-way: stop on a stock vLLM or when the build's files differ from engine/vllm_per_request_attention.SHA256SUMS; one-way: the one-way reading on any vLLM 0.30.0 (see Fallback: stock vLLM, one-way only); refused with a profile
VLLM_ARGS empty extra vllm serve flags, space-separated, appended before the batch budget (which always comes last); refused under a profile
VLLM_USE_FLASHINFER_SAMPLER 0 FlashInfer's sampler stays off; the decisions never sample
VLLM_CACHE_ROOT a folder per engine configuration under ~/.cache/vllm/h2o-lightning-4b/ vLLM's compile cache

The run scripts (run_decision_index.sh, run_default.sh) start serve.sh in a clean environment: only HF_HOME, VLLM_CACHE_ROOT, CUDA_VISIBLE_DEVICES, LD_LIBRARY_PATH, MAX_LEN, GPU_UTIL, SHIM_REREAD_LAYOUT, the LIGHTNING_IMAGE_* image URL settings, SHIM_MAX_IMAGE_BYTES and SHIM_ACCESS_LOG reach it (the run script prints the names of the last three groups it passes, not their values). Every other variable in these tables (for example PORT, VLLM_PORT, SHIM_HOST) is ignored under the run scripts, without a message; they serve on the defaults.

Shim environment variables (they also apply under serve.sh; a profile refuses the SHIM_* ones that change the measured configuration):

Variable Default Effect
SHIM_ATTENTION_MODE bidirectional (from serve_config.json) the one-way reading is chosen with READING=one-way, which sets causal (measured once, JevBench only; see the fallback): no two-way flag, the per-type temperatures in every mode, a request asking for two-way is a 400; under serve.sh a causal value on a two-way start is refused
SHIM_TEMPERATURE unset (the per-type values in serve_config.json) one temperature for every question type (in [0.05, 20])
SHIM_TEMPERATURE_CHOICE / _SCORE / _NOUL config (see Per-type temperatures) the temperature of one question type (a number replaces any per-option-count values)
SHIM_TEMPERATURE_<TYPE>_K2 / _K3 / _K4 / _K5 / _K6P (and _K3_5 for 3-5 at once) config the temperature of one question type for 2, 3, 4, 5 or 6+ options; a single-count setting takes precedence over _K3_5; SHIM_IMAGE_TEMPERATURE_K* the same for images
SHIM_IMAGE_TEMPERATURE config (per option count) the temperature of answers to requests with images
SHIM_NOUL_FLOOR 0.801 (config; applied last, after the calibration head: noul_floor_stage after_calibrator) yes/no commit floor in (0.5, 1); 0 turns it off
SHIM_MAX_STATE_TOKENS per mode: 16000 (jevbench, config), 126976 (decision_index, aa) the state cap before the head-and-tail cut
SHIM_DEFAULT_MODE aa the mode of a request that names none (jevbench, decision_index, aa / auto)
SHIM_REREAD_BELOW / _COMBINE / _MAX_TOKENS per mode: off (jevbench); 0.9 / avg / 2000 (decision_index, aa) the conditional text re-read: threshold, how the two reads combine, the request size it applies to
SHIM_REREAD_LAYOUT trained header: the re-read in the header layout (not measured); accepted under the decision-index profiles only: under run_default.sh (the two-way profile) a set value stops the shim at start
SHIM_IMAGE_REREAD_BUDGET / _BELOW 3276800 / 0.8 in every mode (serve_config.json image block and the profiles); 0 turns it off outside a profile the image re-read: its pixel budget and threshold
SHIM_READOUT_ORDERS 1 2 reads every choice question again with its options reversed and averages; auto only under the choice cutoff (SHIM_READOUT_CUTOFF_CHOICE)
SHIM_IDK_BELOW unset the "I don't know" cutoff (mode aa uses idk.cutoff, 0.80, from serve_config.json; 0 turns the rule off); set on a plain serve.sh, it applies in every mode
SHIM_STATE_HEADROOM 4096 tokens kept free of the state for the prompt; the cap never exceeds max model length minus this
SHIM_SELECTOR none (config) basic or v2: keep the parts of a long state most relevant to the question instead of head and tail
SHIM_TOKENIZER unset a tokenizer.json to count tokens in process for the selectors (needs tokenizers); unset: vLLM's /tokenize
SHIM_TRIM on (config prompt.trim) 1 forces the trimmed prompt form
SHIM_SYSTEM the config's system line another system text, or none for no system turn
SHIM_ASK Answer with exactly one letter: (config) another closing line, or none for none
SHIM_MAX_IMAGES 4 (config) images per request (1 to 16; serve.sh starts vLLM with at most 4 images per prompt, so more needs --limit-mm-per-prompt changed too)
SHIM_MAX_PIXELS 1638400 (config) the pixel budget sent to vLLM with each image
SHIM_MAX_IMAGE_BYTES 20 MiB the largest image accepted
LIGHTNING_IMAGE_URLS fetch off refuses every image URL (send images as data URIs)
LIGHTNING_IMAGE_URL_ALLOW_HTTP false true also fetches http:// image URLs (https only by default)
LIGHTNING_IMAGE_URL_HOSTS / LIGHTNING_IMAGE_URL_DENY_HOSTS unset comma-separated host allowlist / denylist for image URLs
LIGHTNING_IMAGE_FETCH_SECONDS 5 hard deadline for one image URL fetch (lookup, connect, TLS, redirects, body)
LIGHTNING_IMAGE_FETCH_MAX_BYTES / _MAX_TOTAL_BYTES 20 MiB / 80 MiB bytes per fetched image / per request
LIGHTNING_IMAGE_FETCH_CONCURRENCY 8 image URL fetches at once in one shim
SHIM_MODEL h2oai/h2o-lightning-4b (config) the served model name the shim expects from vLLM
SHIM_MIN_CONTEXT 4096 the shim answers 503 if vLLM's context is smaller
SHIM_TIMEOUT 180 seconds per vLLM call
SHIM_QUESTION_THREADS 64 concurrent question reads per shim
SHIM_LOGPROB_CHUNK 128 label token ids per request when a question has more than 26 options
SHIM_ACCESS_LOG off 1 logs each HTTP request
SHIM_HOST 127.0.0.1 the shim's bind address
SHIM_CONFIG, SHIM_VLLM, SHIM_PORT serve_config.json, http://127.0.0.1:8000, 8741 used only when the shim is started by hand; serve.sh passes --config, --vllm and --port itself

Two-way reading

On in every mode: see Two-way start-up check.

Conditional re-read

On in the decision_index and aa modes: a text choice or yes/no question whose first answer's top probability is under 0.90 is read again with the user turn written twice ("Read the same input again before answering:" between the copies, the form the model was trained on), and the answer is the mean of the two reads (reread: 2 on the answer, effort_used.reread); a request whose prompts are over 2,000 tokens keeps its first read. SHIM_REREAD_LAYOUT=header re-reads in the header layout instead (every question of the request listed before the record, the user turn written twice, the answer slot Answer: ( read by token id); under the decision-index profiles it is reported as an override in /health (not measured); under the two-way profile (run_default.sh) a set value stops the shim at start, after vLLM has loaded.

Image re-read

On in every mode (serve_config.json's image block, reread_budget 3,276,800 and reread_below 0.80, and every profile): an image question whose answer's top probability is under 0.80 is read again with each image at twice the image budget (3,276,800 pixels), and the answer is the mean of the two reads (image_reread: 2, effort_used.image_reread). Image questions are read in one option order.

Readout orders

Off in every mode (one read). SHIM_READOUT_ORDERS=2 or kwargs.readout.orders reads a choice question again with its options reversed and averages the two (not measured on this model).

The "I don't know" rule

The aa mode's rule for a choice question with an explicit "I don't know" option (the option texts in idk.labels, or the shim's default list): the real options are renormalised without it, and when their top probability is under the cutoff (idk.cutoff 0.80 in serve_config.json) the answer is "I don't know" with probability 0.80; otherwise the answer is unchanged. Each such answer reports idk (the cutoff, the top real probability, whether it abstained). The rule is on in the aa mode only; as shipped the decision_index and jevbench modes never abstain (a SHIM_IDK_BELOW set on a plain serve.sh turns it on in every mode). The cutoff 0.80 was set on a 2,000-item set with real "I don't know" options (two option positions each) and confirmed, as pre-declared, on a fresh, disjoint 2,000-item set read through this release in the aa mode: with the rule at 0.80 the block (accuracy plus the non-hallucination rate, halved) is 63.69 (accuracy 42.18 %, non-hallucination 85.21 %, 49.3 % of answers "I don't know") against 33.83 when it never abstains, a gain of 29.87 points [28.63, 30.94]; 0.75 and 0.85 are not significantly better (0.80 minus 0.75: +0.55 [+0.03, +1.07]; minus 0.85: -0.12 [-0.65, +0.38]; 95 % intervals, items resampled).

The yes/no commit floor 0.801 (noul_floor) is applied once, last, to every yes/no answer, after the calibration head: a yes/no answer whose max(P, 1 - P) is under 0.801 is moved to 0.801 on its own side. The answer never changes, and the re-read decisions and the head's inputs are taken before it (noul_floor_stage after_calibrator), as both were fitted.

Per-type temperatures and the yes/no floor

The shipped values: choice temperature by option count (2 options 0.79, 3 options 0.97, 4 options 0.97, 5 options 0.97, 6 or more 1.04), yes/no 0.97, image temperature by option count (2 options 1.08, 3 options 0.81, 4 options 0.81, 5 options 0.97, 6 or more 1.13), score 0.97. They were fitted after training on reads of this package (Decision Index public questions, which are in-sample (see Measured), other held-out sets, and FinBench's train split, which is in-sample: its task families are in training; 314,432 answers, 59,909 effective units): one temperature for every question type (0.97), and a separate one for a question type and option count only where it beat the shared one out of fold beyond a paired 95 % interval (choice with 2 options and with 6 or more; images with 2, 3, 4 and 6 or more options). The yes/no commit floor (0.801) is applied after the calibration head; see The "I don't know" rule. Other values (SHIM_TEMPERATURE*): not measured. On a single read a temperature never changes which option is most probable; as served, the text re-read is decided on the tempered probability, so the temperatures change which questions are read twice, and through that, rarely, an answer.

Weights: BF16 or FP8

The BF16 weights are served unquantized; FP8=1 serves them with online FP8 (--quantization fp8; not measured).

Adaptive reasoning

This release has no adaptive reasoning. The package carries no router head (router_head.npz, which serve.sh would check against engine/router_head.SHA256), and although the pinned vLLM build returns the residual stream (the calibration head reads it), no router head ships, so no question is escalated to a thinking pass and the aa mode answers as decision_index; /health reports adaptive_reasoning as off, and a reason value other than false, "off" or null (the object form {"enabled": false} included) is a 400.

Usage counts every pass the server runs for an answer. In a build that ships a router head (this one does not), an escalated question's thinking pass adds its prompt tokens to usage.processed_input_tokens and its generated tokens to usage.output_tokens and usage.reasoning_tokens (output_tokens_details.reasoning_tokens in the OpenAI form).

Option details

How it reads a question

Each question is rendered in the prompt the model was fine-tuned under (the Cygnet contract, in its trimmed form): a short system line, the state (a string verbatim, anything else as compact JSON), the instructions, one <label>. <criterion> line per option in the request's order, and Answer with exactly one letter:. vLLM wraps it in the model's chat template with thinking off and no answer prefill, so the answer is the model's first token.

  • Up to 26 options: labels A-Z; one chat completion per question with max_tokens=1, the logits masked to the question's letters and the top 20 log-probabilities (more when a question has more than 20 options), summed per letter.
  • 27 to 255 options: labels continue past Z (a-z, Greek letters and further short single-token labels); the exact log-probability of every label's token ids is read and summed per label.
  • The distribution is renormalised over the options, floored at 1e-12 per option, and the question type's temperature is applied as p^(1/T), renormalised. The shipped values: choice temperature by option count (2 options 0.79, 3 options 0.97, 4 options 0.97, 5 options 0.97, 6 or more 1.04), yes/no 0.97, image temperature by option count (2 options 1.08, 3 options 0.81, 4 options 0.81, 5 options 0.97, 6 or more 1.13), score 0.97, yes/no floor 0.801. On a single read a temperature never changes which option is most probable (as served it can change which questions are re-read).
  • A yes/no question without a "true" option must have exactly two options; it is asked with its own two names and texts in the request's order, and its answer is the probability of the first name in true, yes, valid, accept, correct, supported, entailed, positive, pass, or of the request's first option when neither name is in that list (so {"bad": ..., "good": ...} answers P("bad")).

Tokenizer

The model is served with its base model's own tokenizer split: tokenizer/ holds Qwen3.5-4B's tokenizer files without a config.json, serve.sh checks them against engine/tokenizer.SHA256 and passes them to vLLM with --tokenizer, and before serving it checks that vLLM tokenizes the 24 probes of tokenizer_contract.json exactly (tokenizer_check.py; a mismatch stops serve.sh). The folder reads the same under each transformers version tested: 5.12.1, 5.15.0, 5.18.0, 5.19.0 and 5.20.2 (tokenizers 0.22.2 and 0.23.3): 0 of 19,270 texts tokenized differently from the tokenizers library reading tokenizer.json directly. Training used an older split for some scripts (a combining mark, as in Devanagari, Bengali, Tamil, Telugu or Thai, started a new piece). Read both ways on the same 2,237 questions: on 1,200 Belebele reading questions in six non-Latin scripts (200 each) the shipped split answered 83.3 % correctly against 68.9 % with the training split (Tamil 80.5 % against 48.5 %, Telugu 73.5 % against 51.5 %, Bengali 84.5 % against 66.5 %, Thai 89.5 % against 80.0 %, Hindi 78.0 % against 73.5 %, Arabic 93.5 % both); on 600 Belebele questions in English, French, German, Spanish, Chinese and Japanese, and 437 non-Latin questions from the training data, the same answers were right and wrong on all but 2 questions, both of which became correct.

Long inputs

A state over the cap (16,000 tokens in the jevbench mode of a plain serve.sh, 126,976 in the decision_index and aa modes and under run_default.sh, where BM25 selects instead of the cut, and never more than the max model length minus 4,096) keeps its head and its tail halves around a ... line. The cut itself refuses nothing, but it does not count image tokens: a request with a long state and several full-size images in the aa or decision_index mode can still go over the max model length and be a 422 (not measured). The question and its options are not shortened: a request whose prompt is still over the max model length (MAX_LEN, 131,072 tokens as shipped) after the state cut is a 422. Some Decision Index tool-retrieval rows have options that alone are tens of thousands of tokens; a GPU with less memory needs a smaller MAX_LEN, which makes more such requests a 422 (not measured).

The API

POST /v1/systemone (/api/alpha/decisions is an alias) takes the request shown in Example request; POST /v1/decisions takes OpenAI's Decisions shape (model, input, a questions array of predicate, choice and score questions) and answers in it (model, answers, usage only: it takes no other request field, a mode or effort there is a 400, and its requests are answered in the server's default mode). A /v1/systemone request may carry "mode" (Modes), "attention_mode" (Two-way start-up check), "effort" (every tier is answered at fast, one read per decision plus the re-reads, and a different tier is noted in effort_used) and kwargs.readout.orders. usage.input_tokens counts the request's input (its shared state once); usage.processed_input_tokens adds the second reads and re-reads.

Image references and the Box question

Images can be sent by reference: put each image once under "assets" ({"<ref>": {"type": "image", "format": "png", "data_base64": "..."}}, "jpg" for JPEG) and write <ref> wherever the image belongs in state; the shim replaces the reference with the image. References match as plain text, so every occurrence counts, even inside a longer word (photo also matches "a photo of"); each distinct reference is sent to the model once, and every occurrence points at that image. Pick references that cannot occur in your text, such as IMG_1. PNG and JPEG only, 16 MiB per file, every asset referenced at least once, no URL fetching; a malformed asset map is a 400. Only inline assets (data_base64) are supported; the multipart form's part reference is not.

A box question, {"type": "box", "instructions": "the coffee mug in `photo`"}, answers with a bounding box {"left", "top", "right", "bottom"} in fractions of the image measured from the top-left corner, confidence (computed by the shim from the box generation's own token probabilities and mapped by serve_config.json box.generation_calibration; not a number the model writes), present (the probability that the named object is visible; it is not a score of the box) and found (whether a box was located; if not, the box is the whole image with confidence 0); the answer is {"type": "box", "box": {"left", "top", "right", "bottom"}, "confidence", "present", "found"}, and a box question in a request without an image is a 400:

curl -s http://127.0.0.1:8741/v1/systemone -H 'Content-Type: application/json' -d '{
  "state": {"photo": "IMG_1"},
  "assets": {"IMG_1": {"type": "image", "format": "png", "data_base64": "<the image, base64>"}},
  "questions": {"where": {"type": "box", "instructions": "the leftmost dog in `photo`"}}}'

Box questions are on whenever the image path is (there is no on/off setting), in every mode. How a box is answered on the one engine: the box comes from one chat generation constrained to a JSON schema (structured outputs, which vLLM has on by default), read one-way (no two-way flag; a generation is causal) at temperature 0 with its token log-probabilities; present is one yes/no readout through the image path, in the request's reading mode (two-way by default), at the box temperature (box.temperature, 1.0). A box answer is its own type: the yes/no floor, the "I don't know" rule and the calibration head never apply to it. An engine without structured outputs refuses a request with a box question with HTTP 422, the whole request (its other questions too); requests without a box question are unaffected. A box question and other questions may share one request; usage adds the box's prompts. box.mode chooses how the box is found: "generate" (as shipped: one constrained generation of the box), "edges" (each edge read as a distribution over positions, the coordinate its expected value) or "hybrid" (both, the tighter box answered); edges and hybrid need a model trained on edge readouts, so keep generate with this model.

The confidence map (box.generation_calibration, a = 0.7165, b = 2.1989: confidence = sigmoid(a x logit(p) + b) of the generation's own confidence p) was fitted on this model's box reads, on 600 RefCOCOg val referring expressions, then the two-parameter map chosen over a one-parameter one on a separate, fresh set of 600 (its held-out NLL 0.338 against 0.692). Measured on that fresh set through this package (Decision Index start, one request per item): mean IoU 80.9, Acc@0.5 87.8 %, and confidence ECE 0.029 against IoU >= 0.5 (100 x (1 - ECE/0.5) = 94.1). Neither set is in this model's training data (no box or referring-expression task; 21 % of their COCO images appear in other training tasks). /health reports every box setting under box, the map included, so a served confidence can be taken back to the generation's own value.

Status codes

A request this system cannot answer is a 422, scored as one wrong answer: more than 255 options, an unknown question type, a malformed question, a prompt over vLLM's context, more than 4 images, an image that is not valid image data or that vLLM cannot load, or a box question on an engine without structured outputs. A request with an empty questions, an unknown mode, an unknown attention_mode, a box question without an image, or a reason value other than false, "off" or null (the object form {"enabled": false} included) is a 400; a body without state or questions is a 422. An unreachable or failing vLLM is a 502. A vLLM that does not serve the configured model, has too small a context, renders the chat differently from the trained prompt, does not apply the letter mask, cannot return token-id log-probabilities, ignores the two-way flag, or does not return the residual stream the calibration head reads is a 503, so a misconfigured backend stops a run. vLLM's own 401/403/429 pass through.

Notes for maintainers

About h2o_lightning_shim.py in this package:

  • It is the shim the model is measured with: the Cygnet readout on Qwen's chat template, reading two-way with the wide label pool (up to 255 options). /health names it h2o-lightning-4b-shim.
  • Every measured configuration other than the plain serve.sh default is a profile in the shim (PROFILES): the run scripts and serve.sh --profile take their settings from it, and the shim stops when the shipped config or the running engine differs from it.
  • Image URLs are fetched by the shim itself (public https addresses only, re-checked on every redirect, with a deadline and size caps; see the LIGHTNING_IMAGE_* variables) and passed to vLLM as data URIs; vLLM is started with --allowed-media-domains media.invalid so the engine never fetches a URL.
  • The Box question is one guided (JSON-schema) generation, read one-way on the same engine (see Image references and the Box question). Every measured configuration needs the per-request-attention build; on stock vLLM the package serves the one-way fallback only (READING=one-way, measured once, JevBench only).
  • The batch budget equals MAX_LEN because a two-way prompt is prefilled whole; serve.sh puts --max-num-batched-tokens "$MAX_LEN" last so VLLM_ARGS cannot shrink it.

Serving at scale

Measured speed, H100 and L40S. Each figure carries its source; the speed of an engine does not depend on the weight values (every release here is the same Qwen3.5-4B architecture), but answer-level figures (flips, bit-identity) are specific to the weights they were read on. None of these rows was read on this release's weights or its vLLM build (a36449a, which adds the residual capture the calibration head reads); they are the measured speed of this architecture on earlier builds.

H100 (80 GB) L40S (48 GB)
one-way, one question per request, one at a time: p50 / requests per s 20.9 ms / 42.7 [a] 28.0 ms / 32.9 at 100-300 tokens; 69.3 ms / 15.1 at 800-1,200 tokens [c]
one-way, three questions per request, one at a time: p50 / decisions per s 30.1 ms / 84.0 [a] 89.7 ms / 10.6, records of 600-6,000 characters [c]
two-way, one question per request, one at a time: p50 not measured 28.2 ms at 100-300 tokens; 59.7 ms at 800-1,200 tokens [c]
--quantization fp8 (FP8=1) 81.6 -> 99.2 decisions/s at 64 in flight; 21 of 687 answers flipped (McNemar p = 0.63) [d] not measured
--mamba-ssm-cache-dtype bfloat16 78.1 -> 81.7 decisions/s at 16 in flight; no answer flipped [d] not measured
Box JSON under llguidance without free whitespace 15 ms less per Box question [d] 44 ms less per Box question [d]
another CPU job on the engine's physical cores one request 26.6 -> 32.3 ms; 176 -> 155 decisions/s at 16 in flight [e] not measured
GPU clocks locked no measurable gain [b] not measured
stock vLLM 0.30.0 one-way (READING=one-way) against our build, JevBench 231 one-way 201 = 201, every answer identical; 600 of 600 reads bit-identical [b] 202 / 231, no failed request [c]

Sources: [a] our live US host, 2026-10-26: the vLLM build h2oai/vllm b05cc29ab8, one-way reads under live traffic, on earlier weights of this model. [b] one H100, 2026-10-25: the builds h2oai/vllm a874119ca6 and a0acf966cb, v1.4.0 weights. [c] one L40S, 2026-10-26: the build b05cc29ab8 and the v1.4.x weights. [d] our hosted engine, one H100, 2026-10-13: stock vLLM 0.30.0 with the scheduler and linear-attention patches, earlier weights, 687 graded development questions. [e] one H100 host, 2026-10-20: an earlier build and earlier weights.

CPU. At short prompts the engine is bound by its host CPU, not the GPU. Keep other CPU-heavy work off the cores the engine runs on (opt-in: for example start serve.sh under taskset -c <cores>, whole physical cores).

Clocks (opt-in, needs root). One request at a time lets the GPU drop its clocks between steps. Locking them (sudo nvidia-smi -lgc <max graphics clock>, the value from nvidia-smi -q -d SUPPORTED_CLOCKS; sudo nvidia-smi -rgc resets) and the CPU's performance governor keep a step from starting slow; worth trying on GPUs that down-clock between requests.

Optional engine flags, each opt-in, passed in VLLM_ARGS on a serve.sh start without a profile (a profile refuses VLLM_ARGS); none is measured on this release:

  • --quantization fp8 is FP8=1 (an FP8-capable GPU: Ada, Hopper or Blackwell; not the A6000): more decisions per second under load, but it changes some answers, mostly where the BF16 answer led by less than 0.1. The calibration values in serve_config.json were fitted on BF16 output.
  • --mamba-ssm-cache-dtype bfloat16: the linear-attention state in bfloat16.
  • --structured-outputs-config {"backend":"guidance","disable_any_whitespace":true} (no spaces, so it fits VLLM_ARGS): the Box generation's JSON under llguidance without free whitespace, 15 ms less per Box question on an H100 and 44 ms on an L40S on earlier weights. The Box confidence calibration was fitted with vLLM's default backend.

The two-way reading prefills each prompt whole (--max-num-batched-tokens equal to MAX_LEN) and does not share a record through the prefix cache; the one-way fallback (READING=one-way) serves more requests per second under load. For many requests in flight, raise SHIM_QUESTION_THREADS (default 64) to at least three times the decisions in flight.

Calibration

Every choice and yes/no probability this model returns passes through one calibrator, chosen per request mode in serve_config.json ("calibrator"); score answers always keep their per-type temperature, and box answers have their own map. One head ships:

calibrator what it does default in
residual (Y_FR) a per-question temperature from the answer's own output features and the residual stream the engine returns in the same forward pass (layers 10/16/21/26, 4 x 2,560 values, the last prompt token) aa, decision_index, jevbench
temperature one temperature per question type and option count (see Per-type temperatures) none

SHIM_CALIBRATOR=temperature|residual sets it for a server started without a profile; a request sets "kwargs": {"calibrator": ...} ("linear" is refused: no linear head ships). A question whose residual is missing gets the per-type temperatures: every question with more than 26 options, which is read through the wide-label path that does not return the residual stream (counted in effort_used.calhead.fallback), and every answer of a one-way start (stock vLLM; effort_used.calhead then reports "calibrator": "temperature" with the reason in off). The head was fitted on reads of both the Decision Index start and the two-way (JevBench) start; its recorded fit settings are the decision_index mode's, so in the jevbench mode /health notes that the reading settings differ from them (the two-way start of run_default.sh was part of the fit; the 16,000-token cut of a plain serve.sh jevbench mode was not). A calibrator re-forms the probabilities with one positive exponent per question, so the chosen option never changes, nor the side of 0.5 a yes/no answer is on.

Measured as served: the reads behind Measured (run_decision_index.sh: the calibration head on, the shipped per-type temperatures behind it, the yes/no floor 0.801 last), every answer with a gold answer as scored by the Decision Index suite; ECE over 10 equal-width bins of the top option's probability. The per-type temperatures were fitted on reads that include these questions, and the calibration head's fit pool includes some of them (the ARC-Easy and ARC-Challenge text benchmarks and 7 of the 12 vision benchmarks), so these figures are in-sample, not held-out:

set answers accuracy mean confidence log loss (NLL) Brier ECE
Decision Index 0.3 public text (140,178 rows) 274,732 82.0 % 83.8 % 0.549 0.239 0.023
Decision Index public vision (12,210 rows) 12,210 76.2 % 79.2 % 0.633 0.320 0.040

Against the stock base model (stock Qwen3.5-4B read one-way through this package) on decision tasks neither was trained on, both read at temperature 1, paired 95 % intervals: on 31,346 choice questions this model is more accurate (+1.8 points, +1.4 to +2.1) and has lower log loss (-0.102, -0.111 to -0.094); on 4,377 yes/no questions it is more accurate (+4.8 points, +3.7 to +5.9) and has lower log loss (-0.073, -0.088 to -0.058).

What it was trained on

The weights are a fine-tune of Qwen3.5-4B for decision questions. Every training example is a record (a document, ticket, policy, conversation, image...) with one typed question about it (choice, yes/no or score) and a graded answer, across support and operations, rules and policies, reasoning, maths, coding and tools, safety, finance and everyday language and images. The model was trained to read the prompt two-way, as it is served. Images are read through Qwen3.5-4B's vision encoder.

For some task families the share of each answer in training was set using the answer shares in the Decision Index test suite for that question type: for sarcasm (iSarcasmEval), contract entailment (ContractNLI) and claim verification (HoVer) near the average of the source's training-split share and the test-suite share; for product-search relevance (Amazon ESCI) at the test-suite share in one family and between that average and the test-suite share in the other; for one aspect-sentiment family (ACOS-style), at the test-suite share, which equals the source's training-split share. So test-suite label shares informed training label shares for those Decision Index benchmarks.

Limitations

  • Against the stock base model (stock Qwen3.5-4B read one-way through this package's reading, with its own fitted temperatures), 50 of the 54 Decision Index benchmarks score at or above stock. Below it: BLINK (skill 0.531 against 0.557; accuracy 69.7 % against 71.4 %, paired 95 % interval -4.7 to +1.5 points), RouterBench (0.795 against 0.799), HLE (0.118 against 0.120, one question in 501) and SimpleBench (0 of 10 against 1 of 10).
  • Calibration differs by question family: some families, very hard sets (such as SuperGPQA and FinDecisionHardMark) in particular, are less well calibrated than the averages in Calibration.
  • Answers can vary slightly with concurrent load and GPU type: the same request read alone or inside a busy batch, or on another GPU, can differ in its probabilities (rarely in the chosen option).
  • Long states are cut to their head and tail (in the two-way profile a query-aware selector keeps the parts that match the questions instead); text that is cut is not read.
  • The probabilities are for decision questions of this kind, not for open-ended text. Not a chat model: it answers one decision per question and does not generate explanations.
  • Images: no video input.
  • In training, the middle guardrail-severity answer, "Needs caution: a sensitive or borderline topic, but not unsafe", was the correct one in 3 of 1,507 rows of that question family (the class was almost entirely removed by a data-cleaning rule in our build), so the model may under-predict it. No held-out set of this question family was read.
  • Measured on the h2oai/vllm per-request-attention build, apart from one JevBench read of the one-way fallback. On a stock vLLM, serve.sh serves the one-way fallback (with a WARNING; measured once, JevBench only): the per-type temperatures in every mode, no profiles; see Fallback: stock vLLM, one-way only.
  • There is no adaptive reasoning on this model (see Adaptive reasoning): the aa mode answers as decision_index apart from the "I don't know" rule.
  • A request whose question and options alone are over the context is refused with 422 (see Long inputs).

Disclosures

  • No JevBench or ImageJevBench data, public or otherwise, was used for training.
  • No rules keyed to any benchmark item's wording, id or answer; no network calls at serving time (except fetching an image URL a request supplies).
  • Price basis for an evaluator: Qwen3.5-4B at bf16, one output token per decision; 646 mean input tokens on JevBench's 231 public text items (this release, as served). Image tokens are counted in usage.input_tokens.

Credits

The prompt contract and the answer readout (the prompt layout, one chat request masked to the option letters, the probability summed per letter, the 1e-12 floor, the temperature as p^(1/T)) come from Cygnet at commit 74f9555, released under the MIT License; Cygnet credits the one-token option readout to NInfer. See NOTICE and LICENSE-cygnet.

License

Apache-2.0, Copyright 2026 H2O.ai, Inc. See LICENSE and NOTICE.

Based on Qwen/Qwen3.5-4B (Apache-2.0, Copyright Alibaba Cloud).

The portions of the shim taken from Cygnet are under the MIT License in LICENSE-cygnet. The header layout's portions taken from FlexDM and Will Cole are under the MIT License in LICENSE-flexdm and LICENSE-wcole3; decider's (Copyright 2026 Mark Marosi) under the Apache License 2.0, whose text is in LICENSE-APACHE-2.0. Served with our build of vLLM 0.30.0 with per-request attention, h2oai/vllm at commit a36449a18b4465b4f70fa078f5403032de414de8 (Apache-2.0).

Downloads last month
24,267
Safetensors
Model size
5B params
Tensor type
BF16
Β·
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for h2oai/h2o-lightning-4b

Finetuned
Qwen/Qwen3.5-4B
Finetuned
(1,743)
this model
Finetunes
10 models
Merges
2 models
Quantizations
7 models

Spaces using h2oai/h2o-lightning-4b 4

Collection including h2oai/h2o-lightning-4b