proomt

Search

Search posts, papers, and topics

All posts

Hacker News front pageJohannes Hötter, Marko Rosenmüller, PhD13 min readintermediate

Turning GLM-5.3-Flash into a Jev-like decision model

Summary

The authors demonstrate turning an off‑the‑shelf LLM (GLM‑5.3‑Flash) into a fast, typed decision model by prompting it to output only an option index and reading the token logits. Using vLLM’s allowed_token_ids and logprob_token_ids they achieve Jev‑level accuracy and speed, even for image inputs, without any fine‑tuning.

  • Number options and end the prompt with `choice_index:` so the model's first token is the option index.
  • Use vLLM's `allowed_token_ids` to restrict output vocabulary and `logprob_token_ids` to get exact logits for each option.
  • Token IDs for numeric options vary by tokenizer; query the model with `echo` to obtain correct IDs.
  • The approach yields single‑token inference with confidence scores, matching specialized models like Jev, and works for multimodal inputs.

Backend engineers building high‑throughput LLM‑driven routing or classification services should care because this technique enables cheap, single‑token decisions with confidence scores.

6/10

Related reading

  1. GLM 5.3 FlashX now available on AI Gateway

    Vercel AI Gateway now offers the GLM‑5.3‑FlashX model, a fast (~200 tps) multimodal coding LLM. The post includes a TypeScript streaming example, notes the model’s fit for coding agents and interactive tools, and lists AI Gateway features (unified API, usage tracking, retries/failover, custom reporting, key budgets, routing rules) with no platform fee.

    Vercelvercel.com1 minrelease
  2. Jev is the fastest-adopted model in AI Gateway history

    Vercel reports that the Jev decision model was adopted by 13% of paid teams within its first day, outpacing prior model launches. Jev claims to be up to 194× faster and 445× cheaper than general‑purpose LLMs while returning structured, probabilistic decisions.

    Vercelvercel.com1 minHN21
  3. TypeSafe AI's Jev now available on AI Gateway

    Vercel AI Gateway now offers Jev, a probabilistic decision model that returns typed choices, scores, and booleans instead of raw text. TypeSafe AI reports it runs up to 193× faster and 445× cheaper than standard LLMs, exposed via the experimental evaluate API in AI SDK 7.

    Vercelvercel.com2 minrelease
  4. Reverse-engineered Jev-like model

    Jevlike is an open‑source starter model that scores a list of text options in a single forward pass. It provides a minimal architecture (option queries, shared dot‑product scorer), synthetic data generation, training/evaluation CLI, and examples on Doom and chess. The repo supports a byte‑level encoder or a frozen Hugging‑Face encoder (e.g., Qwen2.5‑0.5B), runs on CPU/MPS/CUDA, and reports benchm…

    Hacker News front pagegithub.com4 minreleaseHN16224