> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/workflows/blocks/blocks/run-a-model/smol-vlm2.md).

# SmolVLM2

This workflow block runs SmolVLM2, a multimodal vision-language model. You can ask questions about images -- including documents and photos -- and get answers in natural language.

### Type identifier

Use the following identifier in step `"type"` field: `roboflow_core/smolvlm2@v1` to add the block as a 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 SmolVLM2. Otherwise it will just be None. | ❌    |
| `model_version` | `str`    | The SmolVLM2 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.

### Runtime compatibility

`hard` - runtime `self_hosted_cpu`; execution `local` : Requires a GPU; run\_locally() loads a model that needs CUDA.

### Input and Output Bindings

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

<details>

<summary>Input and output bindings</summary>

* input
  * `images` ([*`image`*](/workflows/developer-guide/developer-guide/kinds/image.md)): The image to infer on..
  * `model_version` ([*`roboflow_model_id`*](/workflows/developer-guide/developer-guide/kinds/roboflow-model-id.md)): The SmolVLM2 model to be used for inference..
* output
  * `parsed_output` ([`dictionary`](/workflows/developer-guide/developer-guide/kinds/dictionary.md)): Dictionary.

</details>

<details>

<summary>Example JSON definition</summary>

```json
{
	    "name": "<your_step_name_here>",
	    "type": "roboflow_core/smolvlm2@v1",
	    "images": "$inputs.image",
	    "prompt": "What is in this image?",
	    "model_version": "smolvlm2/smolvlm-2.2b-instruct"
	}
```

</details>
