Skip to content

Moondream2

Class: Moondream2BlockV1

Source: inference.core.workflows.core_steps.models.foundation.moondream2.v1.Moondream2BlockV1

('This workflow block runs Moondream2, a multimodal vision-language model. You can use this block to run zero-shot object detection.',)

Type identifier

Use the following identifier in step "type" field: roboflow_core/moondream2@v1to add the block as as step in your workflow.

Properties

Name Type Description Refs
name str Enter a unique identifier for this step..
prompt str Optional text prompt to provide additional context to Moondream2. Otherwise it will just be None.
model_version str The Moondream2 model to be used for inference..

The Refs column marks possibility to parametrise the property with dynamic values available in workflow runtime. See Bindings for more info.

Available Connections

Compatible Blocks

Check what blocks you can connect to Moondream2 in version v1.

Input and Output Bindings

The available connections depend on its binding kinds. Check what binding kinds Moondream2 in version v1 has.

Bindings
  • input

    • images (image): The image to infer on..
    • model_version (roboflow_model_id): The Moondream2 model to be used for inference..
  • output

Example JSON definition of step Moondream2 in version v1
{
    "name": "<your_step_name_here>",
    "type": "roboflow_core/moondream2@v1",
    "images": "$inputs.image",
    "prompt": "What is in this image?",
    "model_version": "moondream2/moondream2-2b"
}