Vision Language Models
7 nodes
On this page 7
Ask About Image
FunctionAsks a question about a picture.
Signature
AskAboutImage -> Text
model: Vision Language Model
image: Pixel Image
question: Text
system: Text
settings: Generation Settingsstring AskAboutImage(
VisionLanguageModel model,
PixelImage image,
string question,
string system,
GenerationSettings settings)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Vision Language Model | — | A vision language model. |
| image | Pixel Image | — | The picture. |
| question | Text | — | What to ask. |
| system | Text | — | What the model is told about its part first; empty for none. |
| settings | Generation Settings | — | How it chooses its words; empty for the model's own defaults. |
Returns
| Reply | Text |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vision Language Models
- Package
- Machine Learning
Ask About Images
FunctionAsks a question about several pictures at once, shown in order before the question.
Signature
AskAboutImages -> Text
model: Vision Language Model
images: Pixel Image Array
question: Text
system: Text
settings: Generation Settingsstring AskAboutImages(
VisionLanguageModel model,
PixelImage[] images,
string question,
string system,
GenerationSettings settings)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Vision Language Model | — | A vision language model. |
| images | Pixel Image Array | — | The pictures, such as Make Image Array gives. |
| question | Text | — | What to ask, such as "How do these pictures differ?". |
| system | Text | — | What the model is told about its part first; empty for none. |
| settings | Generation Settings | — | How it chooses its words; empty for the model's own defaults. |
Returns
| Reply | Text |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vision Language Models
- Package
- Machine Learning
Chat About Image
FunctionSays a message in a conversation, showing a picture with it, and answers with the model's reply and the conversation with both added, to continue from.
Signature
ChatAboutImage -> (Reply: Text, continued: Conversation)
model: Vision Language Model
message: Text
image: Pixel Image
conversation: Conversation
settings: Generation Settingsstring ChatAboutImage(
VisionLanguageModel model,
string message,
PixelImage image,
Conversation conversation,
GenerationSettings settings,
out Conversation continued)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Vision Language Model | — | A vision language model. |
| message | Text | — | What the user says. |
| image | Pixel Image | — | The picture the message shows; empty for one that talks about pictures shown earlier. |
| conversation | Conversation | — | The conversation so far, from Start Conversation or an earlier Chat About Image; empty to start one. |
| settings | Generation Settings | — | How it chooses its words; empty for the model's own defaults. |
Returns
| Reply | Text |
| continued | Conversation |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vision Language Models
- Package
- Machine Learning
Describe Image
FunctionAsks the model to describe a picture: "Describe this image."
Signature
DescribeImage -> Text
model: Vision Language Model
image: Pixel Image
settings: Generation Settingsstring DescribeImage(
VisionLanguageModel model,
PixelImage image,
GenerationSettings settings)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Vision Language Model | — | A vision language model. |
| image | Pixel Image | — | The picture. |
| settings | Generation Settings | — | How it chooses its words; empty for the model's own defaults. |
Returns
| Description | Text |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vision Language Models
- Package
- Machine Learning
Load Vision Language Model
FunctionLoads a vision language model and its processor from a Hugging Face Hub repository or a folder, downloading what is missing.
Signature
LoadVisionLanguageModel -> Vision Language Model
model: Text
device: Compute Device
precision: PrecisionVisionLanguageModel LoadVisionLanguageModel(
string model,
ComputeDevice device = ComputeDevice.Auto,
Precision precision = Precision.Auto)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Text | — | A repository id such as HuggingFaceTB/SmolVLM-256M-Instruct, Qwen/Qwen2-VL-2B-Instruct or Qwen/Qwen3-VL-2B-Instruct, or a folder. |
| device | Compute Device | Auto | Where it runs. |
| precision | Precision | Auto | The number format of its weights; Auto is Float32 on the CPU and the model's own on the GPU. |
Returns
| Model | Vision Language Model |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vision Language Models
- Package
- Machine Learning
Make Image Array
FunctionUp to eight pictures as one array, for Ask About Images; unconnected inputs are left out.
Signature
MakeImageArray -> Pixel Image Array
first: Pixel Image
second: Pixel Image
third: Pixel Image
fourth: Pixel Image
fifth: Pixel Image
sixth: Pixel Image
seventh: Pixel Image
eighth: Pixel ImagePixelImage[] MakeImageArray(
PixelImage first,
PixelImage second,
PixelImage third,
PixelImage fourth,
PixelImage fifth,
PixelImage sixth,
PixelImage seventh,
PixelImage eighth)Parameters
| name | type | default | description |
|---|---|---|---|
| first | Pixel Image | — | The first picture, shown first. |
| second | Pixel Image | — | The second picture. |
| third | Pixel Image | — | The third picture. |
| fourth | Pixel Image | — | The fourth picture. |
| fifth | Pixel Image | — | The fifth picture. |
| sixth | Pixel Image | — | The sixth picture. |
| seventh | Pixel Image | — | The seventh picture. |
| eighth | Pixel Image | — | The eighth picture. |
Returns
| Images | Pixel Image Array |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vision Language Models
- Package
- Machine Learning
Stream Chat About Image
FunctionChat About Image, with the reply handed to a function piece by piece as it is written, so it can be shown before it is finished.
Signature
StreamChatAboutImage -> (Reply: Text, continued: Conversation)
model: Vision Language Model
message: Text
image: Pixel Image
conversation: Conversation
settings: Generation Settings
onText: Action<Text>string StreamChatAboutImage(
VisionLanguageModel model,
string message,
PixelImage image,
Conversation conversation,
GenerationSettings settings,
Action<string> onText,
out Conversation continued)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Vision Language Model | — | A vision language model. |
| message | Text | — | What the user says. |
| image | Pixel Image | — | The picture the message shows; empty for one that talks about pictures shown earlier. |
| conversation | Conversation | — | The conversation so far; empty to start one. |
| settings | Generation Settings | — | How it chooses its words; empty for the model's own defaults. |
| onText | Action<Text> | — | Called with each new piece of the reply, in order. |
Returns
| Reply | Text |
| continued | Conversation |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Vision Language Models
- Package
- Machine Learning