Skip to content

Jev directory

JevTuner

A tuner that trains language models to answer closed-set decisions with a complete probability distribution in one forward pass, using a tokenized multi-class Brier loss so only the correct choice is needed to train.
Stars
15
Language
Python
Reading time
2 min
Published by
Community
Author
liushiliushi
Last verified
Oct 2026

Highlights

  • Instead of generating a long answer and a separate confidence, it reads all candidate logits in one forward pass and softmaxes only across them.
  • Reserved single-token slots like <|decision_0|> are mapped to the request's choice strings, so arbitrary labels remain single-token decisions.
  • Tokenized Multi-class Brier Loss optimizes the whole distribution against a one-hot target; training needs only the final correct choice.
  • Training data is JSONL with state, question, choices and a zero-based label, and examples may use different numbers of choices up to --max_choices.
  • Built on Qwen3-8B with Python 3.10+ and PyTorch 2.3+, supporting PEFT via --use_peft, and extends the ConfTuner idea to closed-set decisions.

Quickstart

bash
cd src
python jevtuner.py train \
  --model_name Qwen/Qwen3-8B \
  --train_file ../examples/decisions.jsonl \
  --output_dir ../checkpoints/jevtuner \
  --use_peft True

Watch out

Grounded in the truncated repository README and GitHub metadata reviewed on 2026-10-15; the repository declares no license file, publishes no accuracy or calibration results, and the README's project-scope paragraph was cut off mid-sentence.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai