Hopper
Hopper models make single-pass decisions: a document, a policy and a question go in, and a probability for every
allowed option comes out. One forward pass per decision; no text is generated. They are served by
github.com/hopit-ai/hopper, an HTTP server that speaks the
JevBench /v1/systemone wire format.
Models in this repository
¹ The 4B adapter's training data included passages from RACE, which is released for non-commercial research only.
Do not use it commercially. See Licence and research-only notice.
The general-purpose line, Hopper (G), lives at HopitAI/hopper-g.
Quick start
Hopper 12B (trained)
pip install "git+https://github.com/hopit-ai/hopper@12b-1.1.0"
hopper-serve --base-loader gemma-4-12b-it \
--adapter HopitAI/hopper@4b605f25eb903c2cf4d121040ffb097240b3bc37 \
--readout-map "$(python -c 'import hopper_decisions, pathlib; print(pathlib.Path(hopper_decisions.__file__).parent / "maps/hopper-12b-trained-readout.json")')" \
--port 8080
Always pin the revision: HopitAI/hopper without one resolves to main, the Qwen3.5-4B adapter, which does not fit
this base. Files, checksums, training data and licence are on the
hopper-12b branch's model card.
Hopper (4B)
Install the serving code from github.com/hopit-ai/hopper as its README
describes (with the pinned kernel packages listed under How to load it), then:
hopper-serve --adapter HopitAI/hopper --port 8080
For the Python API and for loading with transformers and peft directly, see How to load it.
Hopper (4B) details
Licence and research-only notice
Research and demo use only. This adapter is published for research and demonstration. Its training data
included passages from RACE (via the cais/mmlu auxiliary set), which its authors release for non-commercial
research only and whose terms extend to derived data. Do not use this adapter commercially. Hopper 12B (trained),
on branch hopper-12b, was trained without these passages
and is Apache-2.0.
The serving code is licensed Apache-2.0. The adapter weights are offered for research and demo use
only, because of the RACE training-data terms described above and under "Training data". The base
model is Apache-2.0 (licence), and this
adapter does not change its terms.
How it works
Hopper is a LoRA adapter (rank 16) for
Qwen/Qwen3.5-4B at revision
851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a. It is built for the
JevBench setting: a document, a policy and a
question go in, and a probability distribution over a fixed set of options comes out.
- One forward pass per decision, with thinking off. No text is generated. The answer is a
softmax over the logits of the option letters (A, B, C, ...), restricted to as many letters as
there are options.
- A calibration map (
hopper.json) rescales that distribution by one temperature per answer
type: choice 0.790, noul 0.753, score 0.900. It was fitted only on our own held-out
JevBench-style items, never on a JevBench item. The map never changes the top answer — it
divides log-probabilities by a positive number, which cannot reorder them.
(In 1.0.0 the map was instead a bounded linear function of option count, state length,
JSON-or-not, answer type and the entropy of the model's own distribution. A leave-one-source-out
ablation showed that map was worth +0.1 Calibration over no map at all on sources its fitting
set had never seen, against +4.5 and +2.9 for the per-answer-type map fitted on the same data,
so 1.1.0 replaced it. Answers are identical either way; only the confidences move. The old map
ships alongside as hopper-v1.0-linear.json.)
- Serving code: github.com/hopit-ai/hopper. It runs an
HTTP server with the JevBench
/v1/systemone wire format. At load it merges the adapter into the
bf16 weights, and it refuses to start if the fast linear-attention kernels are not active.
Intended use
Hopper makes single-step policy decisions over a short document: yes/no (noul), choice among
named options, and ordinal scores. It returns calibrated probabilities, and it is meant to be run
and measured on JevBench. It is not a chat model. It is also not meant for decisions with legal,
medical, financial or safety consequences unless a person reviews them.
Prompt format
The chat template of Qwen3.5-4B is applied with enable_thinking=False and a generation prompt.
- System:
You make decisions about a document under a policy. Read only what is written in the document. Reply with the letter of the correct option and nothing else.
- User: one JSON object,
{"evidence": <document>, "criterion": <policy>\n\n<question>, "options": [{"letter": "A", "description": "<label>: <description>"}, ...]}.
A yes/no question has the options true and false, and its rubric is appended to the policy.
The policy for JevBench items is Decide the case using only what the document states. Exactly one option is correct.
The readout is the next-token logits at the end of the prompt, restricted to the option letters,
then a softmax, then the calibration map. hopper_decisions/request.py and prompt.py in the code
repository build this prompt exactly.
How to load it
The easiest way to serve it is with the package (pip install the code repository, see its README):
from hopper_decisions import Decider
decider = Decider(adapter="HopitAI/hopper") # the packaged calibration map is the default
decider.decide({"state": "The customer wants a refund for order 12.",
"questions": {"decision": {"type": "choice", "instructions": "Route the ticket.",
"criteria": {"refund": "money back", "track": "where is it"}}}})
Or with transformers and peft directly:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base, revision = "Qwen/Qwen3.5-4B", "851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a"
tokenizer = AutoTokenizer.from_pretrained(base, revision=revision)
model = AutoModelForCausalLM.from_pretrained(base, revision=revision, dtype=torch.bfloat16, device_map="cuda")
model = PeftModel.from_pretrained(model, "HopitAI/hopper").merge_and_unload().eval()
messages = [{"role": "system", "content": SYSTEM}, {"role": "user", "content": user_json}] # as above
ids = tokenizer.apply_chat_template(messages, add_generation_prompt=True, enable_thinking=False, return_tensors="pt")
letters = [tokenizer.encode(l, add_special_tokens=False)[0] for l in "AB"] # one letter per option
with torch.inference_mode():
logits = model(input_ids=ids.to("cuda")).logits[0, -1, letters].float()
probs = torch.softmax(logits, -1) # before the calibration map
Qwen3.5's linear-attention layers need flash-linear-attention==0.5.2 and causal-conv1d 1.7.0
to run at full speed. Without them, transformers silently falls back to a path that is more than
10x slower. The pinned versions are torch==2.8.0, transformers==5.17.0, peft==0.21.0 and
accelerate==1.15.0.
Training data
The adapter was trained on a mix of three sources:
- Synthetic decision families made by LLM-based generation. An LLM wrote the families, and
their labels were computed in code.
- A JevBench-style set, also made by LLM-based generation. Items were kept only where
independent LLM solvers agreed with the answer. It contains no JevBench item. Every item was
checked against all public JevBench questions and states (normalised question identity, and
any shared 8-word sequence) and dropped on a match.
- Public human-labelled datasets. We used examples from their training splits, converted
into the decision format above. Each is used under its own licence:
The calibration map was fitted only on our own held-out JevBench-style items — the same fitting
set in 1.1.0 as in 1.0.0, with the 66 leakage-flagged items dropped. It never saw a JevBench item.
Evaluation
These are local numbers, not official JevBench results. They were computed with our own
evaluation path on the 231 public JevBench items (argmax over the exact label set, with ties
going to the smallest label as in jevbench/scoring.py). The judge tier and the held-out items
are not public, so they are not included. Only the JevBench maintainer's run on his own GPU is
official.
| tier |
items |
Hopper |
same base, frozen, same prompt and map type |
| easy |
48 |
1.000 |
1.000 |
| standard (original) |
72 |
0.944 |
0.958 |
| hard |
111 |
0.685 |
0.631 |
The accuracies above are the same in 1.1.0 as in 1.0.0: no calibration map can move an answer.
On the hard tier, top-label ECE is 0.102, and distribution fidelity (1 − mean total-variation
distance) on the 10 public probability items is 0.830. Both were measured with the 1.0.0
calibration map