wayfind/metask-jev-4b-policy-mix
Metask-Jev-4B
A calibrated typed-decision model in 16 languages: give it a state (text, ticket, policy, JSON) and a typed question — choice, boolean, or rubric score — and it returns a probability for every option in a single forward pass (~63 ms measured p50 on a 4090). No generation, no parsing, nothing to hallucinate.
On the JevBench board
Self-measured axes inserted into the published v1.2.7 ranking (26 official entrants + this model). Official run pending — axes use our 231-decision protocol for Intelligence, val-fit temperature for Calibration, and measured production numbers for Speed/Cost: JevBench-231 p50 62.8 ms on a 4090 → adjusted 0.276 s (official ×2 + 0.15 s self-hosted formula) → S 91.2; owned-hardware cost ¥6,000/month for an 8×4090 server (this model fits twice on one card — 2×9.1 GB weights — and sustains ~20 QPS per card with dual replicas) → $105/card/month ÷ (20 QPS × 70% utilization) ≈ $0.0029 per 1,000 decisions → K 86.2 — an order of magnitude below every ranked system.
<img src="eval/figs/fig6boardstyle.png" width="660" alt="JevBench board with metask-jev-4b">
Would rank #1 — ahead of Jev 1.13.0 itself — under this estimate, and occupies the top-right corner of the Intelligence×Speed plane outright (no ranked system, open or closed, beats I 88.5 / S 91.2 on both axes):
<img src="eval/figs/fig7_scatter.png" width="660" alt="Intelligence vs Speed scatter">
JevBench v1.2 — public 231 decisions, tier split (422-as-wrong protocol, @4096 ctx):
The hard tier contains long policy documents: at the 9B pipeline's 2048-token limit 36 of 111 items are rejected; this model natively handles 4096 and answers 88% of them correctly. Context length, not capability, was the bottleneck.
Native context is 262,144 tokens (max_position_embeddings); 4096 is the validated evaluation point, not an architectural limit.
Multilingual — 16 locales, one model
Trained on MASSIVE (Amazon) utterance→domain routing in 14 additional locales beyond en/de, then evaluated on the held-out dev split (never trained on), 100 items per locale, same candidate-logit protocol:
Plus en-US (89.4% on the 13-subset suite) and de-DE (90.3%) — 16 locales total. The prompt contract is language-agnostic: state text in any supported language, same JSON schema, same temperatures.
One-command install, then benchmark yourself
# install: venv + deps + weights + tokenizer-contract self-test
curl -fsSL https://raw.githubusercontent.com/metask-ai/metask-jev/main/install.sh | bash
# reproduce the JevBench numbers above on your machine (easy 48 → judge 72 → hard 111,
# ~30 min on MPS, resumable; task files fetched automatically)
curl -fsSL https://raw.githubusercontent.com/metask-ai/metask-jev/main/selftest.sh | bashResults land in ~/metask-jev/bench_results/ as per-item JSONL (prediction, probabilities, latency) with a summary table at the end. Requires an NVIDIA GPU (≥12 GB) or Apple Silicon.
Quickstart
Transformers (AutoModel)
from transformers import AutoTokenizer, Qwen3_5ForConditionalGeneration
import torch
model = Qwen3_5ForConditionalGeneration.from_pretrained(
"wayfind/metask-jev-4b-policy-mix", dtype=torch.bfloat16, device_map="auto")
tok = AutoTokenizer.from_pretrained("wayfind/metask-jev-4b-policy-mix")
state = ("The store accepts returns within 30 days of purchase. "
"This item was bought 12 days ago and is unopened.")
schema = {"decision": {
"description": "Is the item still eligible for return?",
"type": "boolean", # "enum" for choice, "boolean" for yes/no
"choices": [False, True],
"choice_descriptions": {"false": "Not eligible.", "true": "Eligible."},
}}
# candidate-logit readout: one forward pass, softmax over the A/B answer tokens.
# The prompt format (system + user JSON with per-option descriptions) is the
# contract the model was trained on. build_prompt comes from jev_schema.py in
# the GitHub repo (metask-ai/metask-jev, inference/ directory) — or use the
# helper library below, which handles the prompt contract for you.
prepared = build_prompt(tok, state, schema, max_input_tokens=4096)
with torch.no_grad():
out = model(**prepared, use_cache=False, logits_to_keep=1)
logits = out.logits[:, -1, :][0]
probs = torch.softmax(logits[[tok.convert_tokens_to_ids("A"), tok.convert_tokens_to_ids("B")]] / 2.375, -1) # noul T
print(dict(zip(["false", "true"], probs.tolist())))Helper library (handles the prompt contract + per-kind temperature for you)
Get the two dependency-free files:
curl -fsSL https://raw.githubusercontent.com/metask-ai/metask-jev/main/inference/jev_scorer.py -o jev_scorer.py
curl -fsSL https://raw.githubusercontent.com/metask-ai/metask-jev/main/inference/jev_schema.py -o jev_schema.pyfrom jev_scorer import load_model, score
model, tok, dev = load_model("wayfind/metask-jev-4b-policy-mix")
r = score(model, tok, state, schema, temperature=2.375) # noul temperature
print(r["prediction"], r["probabilities"])
# True {'false': 0.013, 'true': 0.987}Per-kind temperatures: choice 1.9 / noul 2.375 / score 2.3. Answer tokens A–Z are verified single tokens for this tokenizer at load; probabilities are a softmax over exactly those logits — the model never generates.
Head-to-head summary
12 of 13 subsets exceed Bespoke Nimble-9B — a model 2.2× its size — same prompt format, same scoring protocol.
13 human-labeled subsets (3,880 items)
The primary suite: BoolQ, MultiNLI, PAWS, PubMedQA, SQuAD-2, VitaminC, Civil Comments, Aegis 2.0, MASSIVE (en/de), HelpSteer-2, SummEval (consistency / relevance). Every item human-labeled; byte-reproducible (manifest-locked ids + sha256); same protocol as the Bespoke Nimble evaluation.
Wins: verification-style noul (civil +21.0, squad2 +9.7) and choice (+9.5 VitaminC). Loss: summeval-relevance — a 5-level rubric with a systematic 3↔4 boundary shift; see Honest limits.
<img src="eval/figs/fig1_subsets.png" width="620" alt="13-subset comparison">
vs Laya (421M, the strongest open small-model baseline)
Laya trains a 25M marker head on ModernBERT-large with RLCD (pure RL, no cross-entropy) over ~30k human-labeled decisions; its typed-decisions checkpoint reports 0.766 acc / 0.062 Brier on its own 400-case suite. Different architectures, different suites — the comparison below is indicative, not apples-to-apples.
Where we win: one checkpoint covering 16 locales (laya needs a separate multilingual model), calibration out of the box (raw ECE 0.114 is far below laya's post-temperature 0.081; after our own temperature fit it is 0.040), long-context hard items (59.5% on JevBench hard — laya's 512–1024 budget cannot run that tier), and 12/13 over Nimble-9B on human-labeled data.
Where laya wins: parameter efficiency (421M vs 4.5B), breadth (100+ locales vs our 16), a mature packaging story (PyPI, Router, demo Space), and the RLCD training methodology is fully documented (arXiv:2510.01237).
<img src="eval/figs/fig8layacompare.png" width="660" alt="Laya comparison">
Calibration
Ships over-confident, like every model in this family. One temperature per question kind, fit by NLL minimization on a held-out validation split (never on eval). ECE (10 bins): 0.114 → 0.040.
<img src="eval/figs/fig4_calibration.png" width="620" alt="Calibration">
Score evolution
<img src="eval/figs/fig3_evolution.png" width="620" alt="Evolution">
Speed
<img src="eval/figs/fig5_latency.png" width="620" alt="Latency">
Single forward pass over the prompt, one softmax over ≤26 candidate logits.
Training
- Backbone — Qwen3.5-4B @
851bf6e, LoRA r16 α32 on all language-model linear layers, merged at release. - Supervision — 44.8k view-augmented decisions from 11 public datasets (3 criteria orderings per item; gold follows its option, killing position-collapse priors).
- Multilingual — 16.1k MASSIVE utterance→domain decisions across 14 locales (zh/ja/ko/fr/es/it/ru/ar/hi/th/vi/tr/id/nl), 4× upsampled; held-out dev split used for the published per-locale numbers.
- Policy-mix — 390 synthetic policy-family decisions (longpolicy, multihop, temporalnumeric, judgehard, trap, probability, ambiguous, adversarial, tradeoff) with teacher soft labels, 2× upsampled — mirroring the JevBench hard-tier families at ≤2048-token states.
- Objective — candidate cross-entropy at the last prompt position. 1 epoch, lr 2e-5, batch 4×2, BF16 + gradient checkpointing. Single RTX 4090, 3h38m, peak 13.2 GB.
Objective and prompt format are unchanged from the official Nimble protocol; the recipe card with reproduction commands lives in the GitHub repo.
Honest limits
- summeval-relevance (22.9%) is the one clear regression vs 9B (49.2%): a 5-level rubric with a systematic 3↔4 boundary shift. NLL and expected-score error are actually better than 9B — the argmax metric amplifies the boundary shift. If your use case is fine-grained relevance scoring, evaluate this subset yourself first.
- helpsteer2 (42.6%): rubric scoring is the weakest primitive family-wide (9B 39.0%, Jev ~50%).
- th-TH (66%) is the weakest locale; hi-IN (81%) second. Both improved with more per-locale data would likely close the gap.
- 1 item over 4096 tokens is still rejected (422-scored-wrong under JevBench protocol).
- Distillation share: 390 of 60.9k training decisions (~0.6%) carry teacher soft labels; the rest are human-labeled public data.
- Temperatures are fit on our validation split. Refit on your own data before trusting probabilities in a new domain (one NLL sweep, minutes).
Intended use
Routing, triage, moderation, guardrails, evidence-grounded verification, rubric scoring — anywhere calibrated probabilities matter more than generated explanations. Not a generative model.
Links
- GitHub: metask-ai/metask-jev · internal lab: metask-ai/metask-jev-lab
- JevBench: fstandhartinger/jevbench · protocol: bespokelabsai/nimble
Licence
Apache-2.0. Qwen3.5-4B base keeps its own terms.
Serve over HTTP (TypeSafe-compatible)
Start the server (after install.sh):
curl -fsSL https://raw.githubusercontent.com/metask-ai/metask-jev/main/serve.sh | bash
# -> POST /v1/systemone on :8000, same wire format as TypeSafe JevThen score a decision (copy-paste ready):
curl -X POST localhost:8000/v1/systemone \
-H "Content-Type: application/json" \
-d '{
"state": "The store accepts returns within 30 days of purchase. This item was bought 12 days ago and is unopened.",
"questions": {
"decision": {
"type": "noul",
"instructions": "Is the item still eligible for return?",
"criteria": {"false": "Not eligible.", "true": "Eligible."}
}
}
}'
# -> {"answers":{"decision":{"type":"noul","noul":0.944,"probabilities":{"false":0.056,"true":0.944}}}}Run the official JevBench harness yourself
The numbers above come from the official JevBench harness. Two ways to reproduce on your machine (CUDA or MPS auto-detected):
Option A — self-contained runner (simplest):
git clone https://github.com/metask-ai/metask-jev && cd metask-jev
bash install.sh # venv + deps + weights + self-test
bash selftest.sh # all three public tiers, resumable, summary tableOr without cloning:
curl -fsSL https://raw.githubusercontent.com/metask-ai/metask-jev/main/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/metask-ai/metask-jev/main/selftest.sh | bashOption B — official harness (exact protocol used for the leaderboard):
git clone https://github.com/metask-ai/metask-jev-lab && cd metask-jev-lab/jevbench-fork
pip install -e .
export METASK_JEV_MODEL_PATH=$(cat ~/metask-jev/model_path.txt) # weights from install.sh
# the vendored nimble package ships inside this fork (jevbench/vendors/metask_jev/) — no env needed
# (set METASK_JEV_NIMBLE_PACKAGE only to override with a full nimble checkout)
for tier in easy original hard; do
python -m jevbench.cli run --tasks datasets/public/$tier.jsonl \
--adapter metask_jev --results ~/metask-jev/bench_results/$tier.jsonl \
--cost-basis local_gpu_no_provider_tariff
done(metask_jev adapter is pre-registered in this fork; PR #17 upstreams it to the official repo.)
