/ Модель

Характеристики

Контекст
32 768 токенов
Параметры
494 млн
Лицензия
Apache 2.0
Архитектура
qwen2 · dense
Базовая модель
Qwen2.5-0.5B-Instruct
Библиотека
transformers
Опубликована
15 окт 2026

Jedi

Генерация текстаТекст → текст3 профессии
45скачиваний за 30 дней0лайковвеса обновлены15 окт 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Jedi — компактный англоязычный верификатор ответов LLM, который оценивает, принять ли ответ или передать задачу более мощной модели в каскаде.

Jedi v1.0 — компактная модель-верификатор ответов на 494 млн параметров от podstack, дообученная на Qwen2.5-0.5B-Instruct. Она получает текст задания и ответ другой языковой модели, оценивает вероятность его корректности и выбирает: принять ответ или передать задачу следующей, более мощной модели в каскаде. Jedi не формулирует ответы самостоятельно и выдаёт один токен за проверку; для калибровки вероятности используется масштабирование Платта. Модель предназначена для снижения стоимости каскадов LLM на одношаговых текстовых и кодовых задачах с проверяемым итоговым ответом. В заявленном тесте на 491 задаче она достигла точности каскада 91,9% при стоимости 0,45 от постоянного использования самой сильной модели. Это результат конкретного набора моделей и тестовых данных, а не гарантия качества на других запросах.

Jedi основана на плотной архитектуре Qwen2 и принимает текст; заявленный родной контекст — 32 768 токенов. Модель обучалась на 38 558 оценённых ответах трёх моделей и рассчитана на английский язык. Она особенно ограничена при переносе на новые типы заданий и другие модели-генераторы: README сообщает AUROC 0,72 на BIG-Bench Hard и 0,59 на CommonsenseQA, а также указывает, что Jedi часто опирается на поверхностные признаки ответа и может пропускать фактические и арифметические ошибки. Для лучшего результата авторы рекомендуют проверять качество на собственном потоке запросов. Репозиторий использует формат safetensors и лицензию Apache-2.0.

Сценарии применения

  • отбор ответов слабой модели перед передачей запроса более мощной LLM
  • снижение расходов на каскад LLM для текстовых задач с проверяемым ответом
  • фильтрация ответов языковых моделей на задачах по программированию
  • оценка вероятности правильности ответа другой LLM
  • маршрутизация одношаговых запросов между моделями по порогу уверенности

Ограничения

Jedi оценивает признаки ответа, но не проверяет надёжно его итоговое значение; качество заметно снижается на незнакомых типах задач, включая CommonsenseQA. Модель обучена на ответах конкретного пула генераторов, предназначена для английских одношаговых текстовых и кодовых задач и не гарантирует корректность принятого ответа.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Jedi v1.0 (0.5B)

Jedi is a 0.5B-parameter answer verifier that runs an LLM escalation ladder. A cheap model answers first. Jedi reads the task and that answer and returns a calibrated probability that the answer is correct. If the probability is high enough, the answer is accepted. Otherwise the task goes to the next, more expensive model, whose answer Jedi checks in turn. Jedi never answers tasks itself; it emits a single token.

Fine-tuned from Qwen2.5-0.5B-Instruct on 38,558 graded answers from three LLMs. It is the successor to Shaktimaan, which picks a model before any answer exists (see How Jedi differs from Shaktimaan).

At a glance

  • 91.9% end-to-end accuracy on 491 held-out text and code tasks at 0.45x the cost of always using the strongest model. Always using the strongest model gets 84.7%; Shaktimaan v1.0 gets 84.9% at 0.32x on the same tasks.
  • Beats every single model in the pool. At threshold 0.3 it also beats both standard cascade checks (a format check and self-consistency) on accuracy, cost and silent failures at once.
  • Within 1.4 points of a perfect verifier (93.3%) on the same ladder.
  • AUROC 0.92 at telling correct answers from wrong ones on unseen tasks; calibrated confidence (ECE 0.017).
  • One forward pass and one output token per check: ~56 ms at batch size 1, ~450 input tokens.
  • It judges how an answer looks, not whether its final value is right. Swapping the final answer of a real response barely moves its score. Much of its signal is surface cues (length, truncation, which model answered), though it still beats a gate built only on those cues by 1-2 points on the ladder. See What Jedi actually picks up on.
  • Weak outside its training domains: AUROC 0.72 on BIG-Bench Hard (where answer length alone scores 0.80) and 0.59 on CommonsenseQA. See Limitations.

How it works

             task
               |
               v
   +-----------------------+      answer      +------------------+
   | rung 1: glm-5.3-flash | ---------------> |       Jedi       |  P(correct) >= threshold ?
   |      (cost 0.2)       |                  |  0.5B, 1 token   | --- yes --> return answer
   +-----------------------+                  +------------------+
               | no (escalate)
               v
   +-----------------------+      answer      +------------------+
   | rung 2: qwen3.8-27b   | ---------------> |       Jedi       | --- yes --> return answer
   |      (cost 0.5)       |                  +------------------+
   +-----------------------+
               | no (escalate)
               v
   +-----------------------+
   | rung 3: nemotron-ultra| -----------------------------------------------> return answer (always accepted)
   |      (cost 1.0)       |
   +-----------------------+
  1. What Jedi reads. common.judge_view() builds a short header naming the agent, the task type, the answer length and whether the answer was cut off at the token limit. It then appends the task (first 2,500 + last 1,000 characters) and the candidate's visible answer (first 1,500 + last 2,500 characters, with <think> blocks removed). The system prompt is common.JEDI_SYSTEM.
  2. What Jedi outputs. One word, accept or escalate. Jedi is never sampled. The runtime reads the logits of those two tokens at the first output position and takes the gap z = logit(accept) - logit(escalate).
  3. Calibration. P(correct) = sigmoid(a·z + b), with a, b fitted by Platt scaling on a held-out validation split (calibration.json). This drops calibration error from 0.061 to 0.017 on the test split, so a threshold of 0.7 means roughly "accept when at least 70% likely to be right".
  4. The single dial. The threshold trades cost for accuracy. Raise it to escalate more and catch more wrong answers; lower it to save money. The top rung is always accepted, so every task gets an answer.

What Jedi actually picks up on

The system prompt asks Jedi to look for broken reasoning, bad arithmetic, failing code, hedging and truncation. Training only rewards predicting the grade, though, so we tested what it learned (diagnostics.py, diagnostics_ladder.py).

checkin-domain testunseen (BIG-Bench Hard)
Jedi AUROC0.9190.721
surface-feature baseline (logistic regression on answer length, truncated, empty final answer, agent, source)0.8710.826
answer length alone (shorter = more likely right)0.8100.801
Jedi, truncated answers excluded0.8790.682
Jedi ranks the right answer above a wrong one to the same task93.1% of 690 pairs84.6% of 1,168 pairs

Final-answer swap test. We took 1,583 real test answers (multiple choice and numeric, not truncated) and changed only the value after Final answer:. Right answers got a wrong value; wrong answers got the gold value.

mean P(correct) beforeafter swap
right answers -> wrong final value (1,443)0.9120.902
wrong answers -> gold final value (140)0.7170.806

Jedi barely notices when the final answer contradicts the reasoning above it, or when a wrong answer is given the correct final value. It scores the body of the response: its length, its shape, whether it ends cleanly, and the style of reasoning that tends to accompany wrong answers from each model. Hand-written short answers with a planted arithmetic slip are usually accepted.

On the ladder, Jedi still beats the surface-feature gate (same 491 tasks, best settings):

gateaccuracyrelative cost
surface-feature baseline, threshold 0.0589.8%0.224
surface-feature baseline, threshold 0.189.8%0.395
Jedi, threshold 0.0591.0%0.244
Jedi, threshold 0.791.9%0.454

So in its training domains, Jedi learned something real beyond length and truncation. That gain is 1-2 points of end-to-end accuracy. On unseen task families, the surface features transfer better than Jedi does.

Quick start

Score one answer

import importlib.util, json, math, torch
from huggingface_hub import hf_hub_download
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "podstack/Jedi"
spec = importlib.util.spec_from_file_location("common", hf_hub_download(repo, "common.py"))
common = importlib.util.module_from_spec(spec); spec.loader.exec_module(common)
cal = json.load(open(hf_hub_download(repo, "calibration.json")))
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype=torch.bfloat16).eval()

def p_correct(task, answer, agent="glm-5.3-flash", kind="num", finish="stop"):
    msgs = [{"role": "system", "content": common.JEDI_SYSTEM},
            {"role": "user", "content": common.judge_view(task, answer, agent, kind, finish)}]
    enc = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt", return_dict=True)
    with torch.no_grad():
        logits = model(**enc).logits[0, -1].float()
    gap = (logits[cal["accept_token"]] - logits[cal["escalate_token"]]).item()
    return 1 / (1 + math.exp(-(cal["a"] * gap + cal["b"])))

task = "A shop sells pencils at 3 for $1.20. How much do 15 pencils cost, in dollars?"
print(p_correct(task, "Each pencil costs 1.20 / 3 = 0.40. 15 x 0.40 = 6.00.\nFinal answer: 6"))     # 0.99 accept
print(p_correct(task, "Let me think step by step. First, 3 pencils cost 1.20, so", finish="length"))  # 0.07 escalate
print(p_correct(task, "15 / 3 = 5 groups. 5 x 1.20 = 5.00.\nFinal answer: 5"))                     # 0.98 - missed

The third call shows the main limitation: a fluent answer with an arithmetic slip is accepted. Jedi is a learned filter over real model outputs, not a checker of the math.

Always build the input with common.judge_view(...) and use common.JEDI_SYSTEM as the system prompt; Jedi was trained on exactly that format. kind is the task type it was trained with: num, math, mc (multiple choice), code, exact. finish is the agent's finish_reason ("length" means the answer was truncated).

Run the full ladder

jedi.py runs the ladder end to end against OpenAI-compatible endpoints:

export JEDI_ENDPOINTS='{"glm-5.3-flash": "http://host-a:8000/v1", "qwen3.8-27b": "http://host-b:8000/v1",
                       "nemotron-ultra": "http://host-c:8000/v1"}'
python jedi.py "If a train travels 120 km in 1.5 hours, what is its average speed in km/h?"
python jedi.py --threshold 0.9 --code "Write a function that checks whether a string is a palindrome."

It prints the final answer to stdout and a per-rung trace to stderr, e.g. {"agent": "glm-5.3-flash", "verdict": "accept", "confidence": 0.97, "escalate_to": null}. Rungs missing from JEDI_ENDPOINTS are skipped, so a two-rung ladder works too.

Agent pool (the ladder)

rungagentmodelrelative cost / token
1glm-5.3-flashzai-org/GLM-5.3-Flash0.2
2qwen3.8-27bQwen/Qwen3.8-27B0.5
3nemotron-ultranvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP41.0

kimi-vl (Kimi-VL-A3B-Thinking) is not on the ladder, but its answers are in the training data. It is the weakest of the three answering models, so it supplied most of the wrong answers Jedi learned from. "Relative cost" is a per-token weight for roughly relative serving cost, not a vendor price.

How Jedi differs from Shaktimaan

Both models are 0.5B fine-tunes of Qwen2.5-0.5B-Instruct built for the same agent pool. They solve the same problem, getting good answers without paying for the biggest model every time, at different moments.

Shaktimaan v1.0 (router)Jedi v1.0 (verifier)
When it decidesbefore any model answersafter each answer
What it readsthe task onlythe task and a specific candidate answer
What it outputsroute JSON: domain, difficulty, strategy, agent list (~30 tokens)one token -> calibrated P(correct)
Question it learns"which agent is likely to solve this kind of task?""is this answer right?"
Model calls per taskexactly the routed agent(s), all up front1 call, plus more only on escalation (1.15 on average at threshold 0.7)
Cost/quality controlfixed by training labelsone threshold, tunable at run time
Inputs it handlestext, code, images (routes to the vision agent), up to ~260k tokens (routes to long-context agents)text and code; long inputs are truncated for judging
Extra latencyone router call before the agent~56 ms per check, plus the next rung's latency when it escalates (~14 s on average at 0.7)

Why the switch. Shaktimaan's main finding was that, on ordinary text and code tasks, which mid-size model solves a given task is largely sampling noise that cannot be predicted from the prompt. A router has to guess blind. Jedi waits until a cheap answer exists and looks at that particular sample. Signs that a sample went wrong (rambling length, truncation, the reasoning style that comes with mistakes) only exist after it is written, so a router can never see them. Jedi does not re-derive the answer, so fluent answers that are wrong still get through (see What Jedi actually picks up on).

Head to head, on the same 491 held-out tasks with the same fresh agent samples:

policyaccuracyrelative cost (always-Ultra = 1.00)
Shaktimaan v1.084.9%0.323
Jedi ladder, threshold 0.191.5%0.263
Jedi ladder, threshold 0.791.9%0.454

At threshold 0.1, Jedi is both more accurate (+6.5 points) and cheaper than Shaktimaan. (Shaktimaan's ensemble routes are scored as the aggregating agent's own answer here, which is slightly conservative for Shaktimaan.)

They are complementary. Jedi's ladder is text-only with a 32k-context first rung; it has no notion of images or 256k-token inputs. A sensible deployment routes by capability first (images -> the vision agent, very long inputs -> long-context agents, as Shaktimaan or simple rules do) and sends everything else through Jedi's ladder.

Training data

Every task was answered by glm-5.3-flash (2 samples), qwen3.8-27b (1) and kimi-vl (1) at temperature 0.6 with a "be concise, end with Final answer:" prompt. Each answer was graded automatically: exact, numeric or LaTeX-normalised matching, and execution of unit tests in a network-less Docker sandbox for code. That gave 28,296 graded answers on 7,074 tasks. A second borderline pass collected 8,580 more GLM and Qwen answers on the 2,145 tasks where the models disagreed. This is where the hard-to-judge answers are; those extra samples are used for training only.

sourcecategorytasksgradinglicense
GSM8Kmath word problems1,000numeric matchMIT
MATHcompetition math1,000normalised LaTeX / numericMIT
MMLU-Proknowledge MCQ (10 options)1,200option letterMIT
ARC-Challengescience MCQ800option letterCC-BY-SA-4.0
MBPPPython coding700unit tests in sandboxCC-BY-4.0
HumanEvalPython coding164unit tests in sandboxMIT
AQuA-RATalgebra word problems (MCQ)800option letterApache-2.0
CommonsenseQAcommonsense MCQ600option letterMIT
BIG-Bench Hard27 reasoning tasks810exact matchMIT

The first six sources use the same task ids as Shaktimaan-routing, so the two models can be compared on identical tasks. Charts and long documents were left out.

Solve rate per model (share of answers graded correct):

sourceglm-5.3-flashqwen3.8-27bkimi-vl
GSM8K0.960.950.81
MATH0.750.750.42
MMLU-Pro0.810.800.49
ARC-Challenge0.970.970.92
MBPP0.930.820.65
HumanEval0.940.910.81
AQuA-RAT0.890.920.64
CommonsenseQA0.800.810.75
BIG-Bench Hard0.900.910.54

Splits are by task, never by answer, so no task appears in two splits:

splittasksanswerswrong answersused for
train5,26138,55840.0% (oversampled from ~18%)fine-tuning
val3701,48017.6%Platt calibration only
test6332,53217.6%Shaktimaan's held-out test tasks + 10% of AQuA / CommonsenseQA
ood8103,24018.8%all of BIG-Bench Hard, never trained on

Each example's label is accept if the answer was graded correct and escalate otherwise. Held-out splits use only the base samples, without the borderline extras, so every task is sampled the same way.

Training

settingvalue
base modelQwen2.5-0.5B-Instruct (494M parameters)
methodfull fine-tune, supervised (TRL SFTTrainer); loss on the one-word verdict only
epochs2 (2,380 steps)
learning rate2e-5, cosine schedule, 30 warm-up steps
effective batch size32
max sequence length2,048 tokens
precisionbf16, gradient checkpointing
hardware / timeone MIG 1g.67gb slice of an NVIDIA B300, 1 h 54 min
eval loss (val)0.095 after epoch 1, 0.142 after epoch 2 (the published weights are from epoch 2)

Results

As a verifier

Calibrated P(correct) on answers to tasks Jedi never saw. False accept = share of wrong answers scored >= 0.5; false escalate = share of correct answers scored < 0.5.

splitanswerswrongAUROCfalse acceptfalse escalateECEBrier
test (in-domain)2,53217.6%0.92035.9%1.9%0.0170.063
val1,48017.6%0.88442.3%1.3%0.0170.072
ood (BIG-Bench Hard)3,24018.8%0.72070.2%6.7%0.0600.140

Test split by answering model and by source:

sliceanswerswrongAUROCfalse accept
glm-5.3-flash1,26611.8%0.91041.6%
qwen3.8-27b63312.3%0.91550.0%
kimi-vl63334.6%0.89626.9%
HumanEval729.7%0.99114.3%
MATH42431.8%0.96314.1%
MBPP2689.7%0.95538.5%
MMLU-Pro48029.4%0.92834.0%
AQuA-RAT31616.8%0.89630.2%
GSM8K4206.2%0.85453.8%
ARC-Challenge3004.0%0.84291.7%
CommonsenseQA25218.3%0.59389.1%

Jedi is strongest where wrong answers look different from right ones: multi-step math and code, where failures tend to be long, meandering or cut off. It is weakest where a wrong answer reads exactly like a right one, such as single-hop commonsense and easy science multiple choice.

As the gate of the ladder

491 held-out tasks: Shaktimaan's test tasks from GSM8K, MATH, MMLU-Pro, ARC, MBPP and HumanEval. GLM and Qwen answers are fresh samples; Ultra's outcome and token count come from its graded run in Shaktimaan-routing (same task ids). Cost = sum over called agents of (relative cost x output tokens), normalised so always-Ultra = 1.00. Silent failure = a wrong answer accepted by a lower rung, i.e. a mistake the ladder had a chance to escalate and didn't.

policyaccuracyrelative costsilent failurescalls / task
Always glm-5.3-flash88.8%0.115-1.00
Always qwen3.8-27b87.4%0.421-1.00
Always nemotron-ultra84.7%1.000-1.00
Shaktimaan v1.0 routing84.9%0.323--
Ladder + format check (escalate truncated / unparseable answers)89.8%0.4067.3%1.07
Ladder + self-consistency (escalate if two samples disagree)90.4%0.5546.5%1.14
Ladder + Jedi, threshold 0.791.9%0.4542.9%1.15
Ladder + perfect verifier (oracle, upper bound)93.3%0.4730.0%1.19

Threshold sweep (same 491 tasks):

thresholdaccuracyrelative costsilent failurescalls / taskextra latency / task
0.0591.0%0.2447.5%1.098.9 s
0.191.5%0.2636.5%1.109.5 s
0.391.5%0.3235.5%1.1110.7 s
0.591.7%0.3874.5%1.1212.1 s
0.791.9%0.4542.9%1.1514.3 s
0.891.0%0.5062.9%1.2016.4 s
0.990.2%0.6091.6%1.3220.8 s
0.9587.0%0.8911.4%1.6534.5 s

Above 0.7, accuracy falls even as silent failures keep dropping. Escalating a correct answer is not free: the next rung can get it wrong, and in this pool Ultra's recorded solve rate (84.7%) is below GLM's. Use 0.7 for the best accuracy, or 0.1-0.3 for most of the gain at a quarter of always-Ultra's cost.

Outside the training domains (two-rung ladder: GLM -> Qwen)

Cost is relative to always using Qwen.

taskspolicyaccuracycost vs always-Qwensilent failures
AQuA + CommonsenseQA test (142)always GLM / always Qwen85.2% / 88.7%0.30 / 1.00-
self-consistency88.7%1.057.0%
Jedi @ 0.588.7%0.688.5%
Jedi @ 0.787.3%0.728.5%
oracle92.3%0.710.0%
BIG-Bench Hard, unseen (810)always GLM / always Qwen90.1% / 90.6%0.14 / 1.00-
self-consistency91.4%0.536.1%
Jedi @ 0.791.1%0.277.8%
Jedi @ 0.992.0%0.692.2%
oracle94.6%0.370.0%

On unseen task families the ladder still improves on both single models, because the cheap model is usually right and Jedi rarely escalates correct answers. It catches far fewer wrong ones than it does in-domain, though. On the CommonsenseQA-heavy new-domain set, Jedi at 0.7 does not beat always using Qwen.

Overhead

~56 ms per check (batch size 1, one MIG 1g.67gb slice of a B300), ~451 input tokens, 1 output token. Checks are a single forward pass and batch well.

Limitations

  • Not a checker. Jedi does not verify the final answer: changing it barely moves the score, and planted arithmetic slips in otherwise fluent answers usually pass. It relies heavily on surface cues, and on unseen task families a logistic regression on answer length, truncation and agent beats it (AUROC 0.83 vs 0.72).
  • Domain-bound. Verification skill transfers poorly to unseen task families (BIG-Bench Hard AUROC 0.72) and is near chance on CommonsenseQA (0.59). Measure it on your own traffic before relying on a threshold.
  • A third of wrong in-domain answers get through at 0.5. False-accept rates are highest for the strongest models, whose mistakes are rarer and more fluent. Jedi is a cost-saving filter, not a correctness guarantee.
  • Pool-specific. Trained on answers from GLM-5.3-Flash, Qwen3.8-27B and Kimi-VL; the agent name is part of its input. Other models' answers are out of distribution, and a new pool needs new data and retraining.
  • Text and code only, English only, single-turn tasks with a checkable final answer. Not trained on open-ended writing, agentic / tool use, multi-turn or image inputs. Long tasks and answers are truncated (head + tail) for judging.
  • Labels inherit grading noise from automatic answer extraction and matching.
  • Ladder numbers use recorded Ultra outcomes, a single sample per task from the Shaktimaan-routing runs, not fresh calls.
  • Validation loss rose in epoch 2 (0.095 -> 0.142) while AUROC and calibration stayed good; a one-epoch model may be marginally better.

Files

filepurpose
model.safetensors, config.json, tokenizer filesthe verifier
calibration.jsonPlatt scaling a, b and the accept / escalate token ids
common.pyagent pool, ladder, prompts, judge_view, answer extraction and graders
jedi.pyend-to-end runtime (answer -> verify -> escalate)
gen.pycollects and grades agent answers (stage 1)
build.pybuilds the accept / escalate dataset and task-level splits (stage 2)
train.pyfine-tuning script (stage 3)
evaluate.pyverifier metrics, ladder, baselines and threshold sweep (stage 4)
eval_results.jsonraw evaluation output behind every number on this card
diagnostics.py, diagnostics_ladder.pysurface-feature baselines, answer-swap test, ladder with a surface-feature gate

The graded answer data is not published; gen.py and build.py regenerate it given endpoints for the three models.

License

Model weights: Apache-2.0 (as the base model). Task sources keep their own licenses (table above).

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen2ForCausalLM
Ревизия весов
f3680b0

0 моделей