A single function wrapper turns any LLM into a vision model

A single function Jev-like wrapper for LLMs, including vision models

A single function wrapper turns any LLM into a vision model

Inspired by Jev and its self-hostable ecosystem, I built a Jev-like wrapper that adds an attachments field for images, letting any LLM answer multiple-choice questions by reading token logprobs from a single output token. On an RTX 3090 with Gemma 4 12B, it scores webcam frames at around 1 FPS with three questions per frame; OpenAI's gpt-6-luna managed about 0.2 FPS. The appeal is flexibility: change a condition by describing it in plain text.

Specialized computer vision models surely are much more efficient, but what I like here is the flexibility: change a condition by describing it in plain text.
  1. TeMPOraL

    Now this is how[0] we get some of the most magical Star Trek technology that eludes us to this day, such as automatic doors. Because if you notice, they work much, much better than real-life ones, because they seem to be doing something like this:

    if(within 10 meters of door then) {

    if(Jev(

    [A] Intends to go through, expects doors to open

    [B] Approaches with no intent to pass

    [C] Passing by, loiters, or otherwise

    [D] Other

    ) == most definitely A) {

    // open doors, +/- identity/security/interlocks check

    } else {

    // ignore

    }

    }

    Keywords: ambient awareness, understanding of intent.

    Most interactive tech on Star Trek is like this - from phasers to consoles to communicators to voice interactions with the ship's computer. The computer seems to be aware of the user and surrounding, and actively infers intent from context, to DWIM ("do what I mean") and when they mean it, instead of doing dumb things[1] on simple triggers.

    --

    [0] - The direction, not final implementation - surely we can work out how to do it more efficiently than wrapping around final stage of LLM. But the point is, multimodal.

    [1] - Obviously it's a fictional show, but in this, both Watsonian and Doylist explanations align near-perfectly: this is/portrays advanced technology, that Just Works and doesn't do stupid shit. Same intent recognition algorithm is there - fictionally in the computer, in reality in the minds of on-set technicians.

  2. prathje

    Nice! I would love to use it for images as well.

    Then again is using Grammar-Based Decoding with a json response not the same? Is Jev just that with nice caching?

    Because then I have been using that already…

  3. frabcus

    Presumably this is much less good than Jev, because the normal LLM models have been trained with RLHF and to be agents. Especially on a large model, I'd expect it to decide in an earlier layer.

    I'd hope whatever Jev's Reinforcement Learning for Calibrated Decisions (RLCD) does is better at training the models to give accurate probabilities in the weights.

More from this day

2026-09-26