Skip to content

Jev directory

Jevlike

Train a small model that chooses among a changing list of text options, one probability per option in a single pass. Includes Doom, chess, and Wikispeedia demos.
Stars
1.4k
Language
Python
License
MIT
Reading time
3 min
Published by
Community
Last verified
Sep 2026

About this project

Train a small model that chooses among a changing list of text options. A Jev-like model takes a piece of text and a list of N text options. It returns one probability for each option. It does this in one pass instead of writing an answer word by word. Jev is TypeSafe's commercial model for this kind of task. TypeSafe has not published its design. This repository is an independent starter model with the same input and output shape.

Quoted from the project's README. Read the full README.

Highlights

  • Training rows are JSONL with context, options, and a zero-based label; each row may have a different number of options, minimum two.
  • The default byte encoder truncates context to 192 bytes and each option to 32 bytes; --context-tokens and --option-tokens raise that.
  • On target-disjoint Wikispeedia, a frozen Qwen2.5-0.5B encoder plus head reached 26% next-click vs about 8% for shuffled controls.
  • The Doom joint checkpoint averaged 0.60 kills and -97.50 reward over ten episodes; the chess head went 0W/2D/48L vs Stockfish level 0.
  • At eight options, one pass was about 100 times faster than a small decoder forced to write 400 tokens.

Quickstart

bash
uv venv
source .venv/bin/activate
uv pip install -e '.[dev]'
jevlike-data synthetic --output data/synthetic
jevlike-train data/synthetic/train.jsonl --validation data/synthetic/validation.jsonl --output runs/synthetic.pt
jevlike-eval runs/synthetic.pt data/synthetic/test.jsonl

Watch out

It is an independent research starter with the same input and output shape as Jev, not a copy, and the repo says it did not reproduce TypeSafe's private training method or equal quality.

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