Executable programs and extensions
Last updated
Jev-Omni: multimodal decisions on local GPUs
Jev-Omni reads media and chooses a defined answer
Jev-Omni is an open classifier that accepts text, images, audio, or video together with a question and choices, then returns a probability for each choice. It fits workflows that need a result such as received, not confirmed, or unclear, rather than a long generated description.
To classify whether a doorway is open in a photo, you may need one state such as Open, Closed, or Cannot tell. Jev-Omni takes the photo, question, and options and returns the selected text and index, confidence, and per-option probabilities. An application can use the result to record a state or flag photos for human review.
This is an independent open project built by a separate developer on Gemma 4 12B IT. It is separate from TypeSafe AI's Jev and provides its own Python execution code. We start with text to learn the result format, then test photos and other media.
Classify a state using defined choices
One predict call handles a question and a list of distinct choices. The option text is used as a key in the result dictionary, so every option needs a unique name. Repeating a label such as received would make it unclear which state a probability belongs to.
Some existing Qwen-based JEV-style implementations read internal scores for candidate next tokens1. Jev-Omni instead adds a separately trained classification head to Gemma 4 12B IT. After processing the input, it uses the final-position hidden representation to score the choices, returning a classification without a token-by-token decoding2 loop.

Start with a photo and check audio and video input limits
For the first image test, choose a question whose answer is visually checkable, such as whether a door is open. Include Cannot tell for an obscured door or dark photo. Compare results with human labels and record error situations to define which cases can be classified automatically.
The audio helper uses ffmpeg to trim at most the first 30 seconds. An announcement later in the recording may not be processed, and the ffmpeg executable must be installed separately from Python packages. The video path selects 16 frames3 by default and passes them as images; it does not process the audio track. A brief event between sampled frames can be missed.
Jev-Omni uses a separate decision head on Gemma 4
Jev-Omni is a decision classifier built on Gemma 4 12B IT for text, image, audio, and video inputs. It applies a separately trained head to the final representation and returns choice probabilities; do not port the next-token-logit path from Qwen projects unchanged.
Check memory and device requirements before running it
The public checkpoint4's text-weight index is 47,629,401,280 bytes (about 47.63 GB) and contains 11,907,350,272 parameters. The model card says about 50 GB is needed before runtime5 headroom. The default example is not guaranteed to run unchanged on a 24 GB RTX 3090 or 4090, or a 32 GB RTX 5090; the memory size of a 4-bit 12B model does not apply to this setup.
The loader first places the FP326 backbone on CUDA7. The multimodal helper then converts some linear layers to BF168 and also loads the original Gemma model to replace components. Using BF16 autocast during inference9 does not mean initialization needs only half the memory, so peak initialization memory matters. The function rejects non-CUDA devices and does not automatically distribute the model across multiple GPUs.

Inspect dependencies and code in an isolated Python environment
The helper lists torch 2.10 or later and transformers 5.17.0, along with accelerate, huggingface_hub, safetensors, numpy, Pillow, opencv-python-headless, and soundfile in requirements.txt. Audio also needs the ffmpeg executable. First confirm that CUDA-enabled PyTorch10 sees the GPU11, then inspect the downloaded Python files before installing the dependencies.
The first load downloads not only Jev-Omni but also the original Gemma multimodal components, so allow for network access and disk space. You can inspect the public files and begin setup inside a virtual environment12.
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip huggingface_hub
hf download akhilaaa3/Jev-Omni requirements.txt jev_omni.py load_model.py --local-dir jev-omni
# Review the downloaded Python files before continuing.
python -m pip install -r jev-omni/requirements.txt
python -c "import torch; print(torch.cuda.is_available())"Check each modality's input limits
The official example sets modality="image", "audio", or "video" for the corresponding media. Audio is capped at 30 seconds and video uses 16 frames; the video audio track is not processed, so relevant moments or sound may be absent.
The model weights and decision head require about a 24 GB download. The card reports warm H200 latencies of 83 ms for ~2K-token text, 26 ms for image, 31 ms for 13-second audio, and 504 ms for 16-frame video; these are different conditions, not measurements for your device.
Test text classification, then try an image
The example below checks the question, choices, and result format with one text case, then shows how to call the local image path. The image helper reads a local file, but internet access is needed to fetch the model and configuration on first use. Its sample question and options are in English, so Korean workflows need separate testing with Korean prompts13, choices, and human-verified answers.
For photo classification, define distinct states such as Open, Closed, and Cannot tell. Compare confidence and errors using human-labelled photos, then set a rule that routes uncertain results to a review queue.
import sys
from pathlib import Path
sys.path.insert(0, str(Path("jev-omni").resolve()))
from jev_omni import load_jev_omni
classifier = load_jev_omni()
result = classifier.predict(
state="The parcel arrived yesterday. The customer confirmed receipt.",
question="Has the customer received the parcel?",
options=["Yes", "No", "Not enough information"],
)
print(result)
# After the text test succeeds, set an existing local image path.
# result = classifier.predict(
# state="This is a photo of a doorway.",
# question="What is the state of the door?",
# options=["Open", "Closed", "Cannot tell from this image"],
# media="/absolute/path/door.jpg",
# modality="image",
# )
# print(result)Read published speed and evaluations with their conditions
The creator's H200 figures are median latency across 20 warm requests on an optimized backend: 83 ms for about 2,000 text tokens, 26 ms for one image, 31 ms for 13 seconds of audio, and 504 ms for 16 video frames. Preprocessing and networking are excluded, so these are not end-to-end times including file loading, frame extraction, and initial weight loading.
Because the model classifies fixed fields instead of writing long answers, latency from input preprocessing to result and concurrent throughput14 matter more than tokens per second. The figures below are the vendor's reported merged-model results, not measurements taken on an RTX or a Mac.
| Evaluation | Reported score | Condition |
|---|---|---|
| DecisionBench Medium | 87.57% | 80 scenarios, 293 questions; equal-weight scenario average |
| JevBench | 86.15% | 195 matched groups and 231 judgments; equally weighted by group |
| MMAU | 63.10% | Micro accuracy on 1,000 questions |
| MVBench | 53.10% | 14 tasks and 2,786 questions; averaged by task |

Verify the complete path, including the head
The public repository includes head.pt, decision_config.json, and jev_omni.py. Review the code and pin the checkpoint revision before running it. Try one example for each modality and check that input preprocessing, option order, and the probability dictionary keys match.
Log gold labels, success rate by modality, uncertain cases, input size, and warmed latency separately. Include low light, small text, long audio, and events between sampled frames when setting the automation boundary.
Validate labels before using classification in a real workflow
When reading evaluation tables, examine how scores are aggregated. DecisionBench Medium averages scenarios with equal weight, while micro accuracy combines all questions and gives more weight to tasks with more questions. For your photo classification, prepare a separate human-labelled test and record errors and confidence for obscured or dark doors as well.
The classification head accepts up to 256 choices, but the model is mainly validated with 20 or fewer. Start with a small set of clear states and set automation thresholds using labeled tests. The repository and base Gemma 4 are listed under Apache-2.0, but that does not resolve rights to people or places in photos and recordings. Check both whether you may install the weights and whether you may collect and process the media. For descriptions or long dialogue, choose a conversational multimodal model instead.
Terminology notes
Token — A unit into which a model divides input or output for processing.
Back to the textToken decoding — The stage that generates successive output tokens using the input and the response produced so far.
Back to the textFrame — A single image that makes up part of a video.
Back to the textCheckpoint — A file containing saved model weights and related state. Versions or tasks in one model family may use different checkpoints.
Back to the textRuntime — The software environment that provides facilities needed while a program runs. In local AI, it can also refer to a model execution engine.
Back to the textFP32 — A 32-bit floating-point format. It uses more memory per value than BF16 and can represent values more precisely.
Back to the textCUDA — A software platform for general-purpose computing on NVIDIA GPUs.
Back to the textBF16 — A 16-bit floating-point format for model values. Its exponent has the same width as FP32, giving it a similarly wide value range.
Back to the textInference — The process of using a trained model to compute an output for an input. Here, local inference means running the model on the user’s device.
Back to the textPyTorch — A software framework for building and running AI models. Check the compatible PyTorch version and hardware support along with the model.
Back to the textGPU — A processor designed to handle many calculations in parallel. It performs model computations during AI inference.
Back to the textPython virtual environment — An isolated space for installing Python packages per project, helping reduce package-version conflicts.
Back to the textPrompt — The input text sent to a model. For generative models it describes the desired result and strongly shapes the output.
Back to the textThroughput — The amount of work processed or generated over time. Comparisons need the unit, such as tokens per second or requests per second.
Back to the text
Frequently asked questions
- What should you check first in this article?
- Jev-Omni is an open classifier that accepts text, images, audio, or video together with a question and choices, then returns a probability for each choice. It fits workflows that need a result such as received, not confirmed, or unclear, rather than a long generated description.
- How much memory does it need?
- The public checkpoint's text-weight index is 47,629,401,280 bytes (about 47.63 GB) and contains 11,907,350,272 parameters. The model card says about 50 GB is needed before runtime headroom. The default example is not guaranteed to run unchanged on a 24 GB RTX 3090 or 4090, or a 32 GB RTX 5090; the memory size of a 4-bit 12B model does not apply to this setup.
- Where can you check the conditions and sources?
- The classification head accepts up to 256 choices, but the model is mainly validated with 20 or fewer. Start with a small set of clear states and set automation thresholds using labeled tests. The repository and base Gemma 4 are listed under Apache-2.0, but that does not resolve rights to people or places in photos and recordings. Check both whether you may install the weights and whether you may collect and process the media. For descriptions or long dialogue, choose a conversational multimodal model instead.
Read next
Executable programs and extensions
What is Jev? A System One model that decides instead of writing
Executable programs and extensions
Local Jev-like decisions with Qwen: SemIf, Simple Jev and openjev-sglang
Executable programs and extensions
Run Jev-Style Local Decision Models on Mac, RTX 3090, and Servers
read first
Prefill vs decode: should you look at TTFT or tok/s?
