Skip to main content
RunAnywhere.vlm takes an image and a prompt.

Signatures

Building an ImageInput

The last four are the ones you want in an app. pixelBuffer is the camera path.

From the photo library

From the camera

CVPixelBuffer comes straight off a capture output, so live analysis needs no conversion:
Throttle this. A VLM pass costs far more than a camera frame interval, so run one at a time and drop frames that arrive while a pass is in flight.

Streaming

Options

vlm takes the same LlmOptions as llm, so maxOutputTokens, temperature, and systemPrompt all apply.

Models

VLM runs on the llama.cpp backend, so the model needs to be a GGUF vision model with its projector. Register RunAnywhereLlamaCPP and pick a VLM entry from the catalog.