SemIf (formerly OpenJev) is an open-source tool that pulls typed, multiple-choice decisions out of a local language model without letting it write a single character. It comes from Theodore Lee, an independent developer in Singapore, and it is meant for people who already run open-weight models on their own hardware and are tired of prompting for JSON and then parsing whatever comes back. The repository also sets itself against Jev, a closed decision API from a company called TypeSafe: SemIf reproduces that product's interface pattern, and the README repeatedly states the project is independent and not affiliated with Jev or TypeSafe.
What it does
A lot of LLM work is not writing, it is deciding: is this message spam, does this row meet a criterion, which of four labels fits. The usual way to get that answer is to prompt the model for {"is_spam": true}, wait while it generates the text, and parse it.
SemIf removes the writing step. You hand it a state (the text or context), a question, and a finite set of labeled answer options, and it gives you the probability of each option. Nothing is generated, so there is nothing to parse and no malformed-JSON branch to handle. The project calls these "typed decisions", and the output token count is zero by construction.
How it works
The model runs one forward pass over the prompt, and SemIf reads the probabilities directly off the logits of the tokens that stand for each option. The second trick is prefix reuse: because many questions share the same state, that shared prefix is computed once and the per-question suffixes are scored in parallel, which the README calls parallel suffix execution.
The figures below are the author's own benchmarks, not independent measurements:
- 21 binary criteria on an RTX 3090 with a 4B model (Qwen3.5-4B): 1.023 seconds and zero output tokens for direct typed-logit decisions, against 5.332 seconds and 111 tokens to generate the equivalent JSON, about 5.2x faster.
- Across a 777-decision test set with prefix reuse: 20.03 decisions per second, against 2.33 decisions per second when each row is scored fresh.
- On a 102-row public dataset, the open 4B setup agreed with TypeSafe's closed Jev service 0.845 of the time.
Getting started
The code is at github.com/TheoLeeCJ/SemIf-OpenJev and is MIT licensed, so the tool itself is free. The intelligence is not hosted for you: you supply the model and the compute. The author's numbers come from one consumer NVIDIA card (his own RTX 3090) with a 4B model, and the README also lists Apple Silicon through MLX/MPS, CPU through llama.cpp with GGUF weights, and a quantized WebGPU demo that runs in the browser. Reading logits means working with weights you control, and the materials describe no hosted-API mode, so plan on local models rather than an API key. No subscription or paid service appears anywhere in the project; your own GPU and its electricity are the bill.
What the materials do not give is a minimum VRAM figure or an install command, so treat the repository's own README as the installation instructions rather than expecting a copy-paste line here.
When to use it / when not
The honest catch is accuracy, and the project publishes it: 0.845 agreement with Jev on that 102-row public set means roughly one decision in six came out differently from the closed service SemIf is measured against. The speed claims also rest on a single 4B model on a single GPU, run by the author, so your own mix of model and hardware may land somewhere else.
Use it instead of asking Claude or GPT for a JSON verdict when the decision is a small closed set of labels, you have thousands of rows to get through, and you can run open weights locally. Don't use it if you need the model to explain itself, return free-form text or fill a nested object, or if you are committed to a hosted API that only hands back generated tokens.
Alternatives
The README names its two reference points. The first is the approach almost everyone uses today: JSON or structured output from a model, parsed in code. That stays more flexible and handles nested data, and by the project's own benchmark it is several times slower for simple decisions. The second is Jev itself, the paid closed service from TypeSafe: managed, with no hardware to own, and the thing SemIf is openly trying to match on an RTX 3090. Nothing in the material compares SemIf to general constrained-decoding or grammar-based libraries, so no claim is made there.
SemIf is worth taking seriously if you run classification, filtering or scoring at volume on hardware you already own, and the answer you need is always one of a few known labels. In that shape the design is genuinely different from prompt-and-parse rather than a wrapper around it: one forward pass, no generated text, no parser to defend. If your decisions are open-ended, or you need the closed service's exact answers, the published 0.845 agreement is the number to weigh before you switch.