Text / Intermediate

Set up private chat with LFM2.5 VL 3B

Install the Transformers runtime stack and run LiquidAI/LFM2.5-VL-3B locally, then send a first image-and-text prompt to confirm the model responds with a generated description.

EstimatedSource checked 9/25/2026
LOCALRENTED GPU

Before you begin

Difficulty
Intermediate
Software
Python, PyTorch, Transformers (compatible with transformers>=5.0.0), torchvision
Hardware
This setup uses Transformers. The exact checkpoint format, context, and runtime overhead determine its memory need; a weight-file size alone is not a GPU recommendation.
TEXT / TRANSFORMERSSOURCE-LINKED SETUP

Set up private chat with LFM2.5 VL 3B, step by step.

Install the Transformers runtime stack and run LiquidAI/LFM2.5-VL-3B locally, then send a first image-and-text prompt to confirm the model responds with a generated description.

Choose a package Run its commands Check the result
01
BEFORE YOU BEGIN

The documented package

This setup uses the package documented for this task. Review its source and supported platforms before starting.

The publisher has not provided a complete memory target for this task. Check its hardware guidance before starting.

CURRENT SETUP

LFM2.5 VL 3B · official

This setup uses Transformers. The exact checkpoint format, context, and runtime overhead determine its memory need; a weight-file size alone is not a GPU recommendation.

View weight source
02
THE WORKFLOW

Set up LFM2.5 VL 3B on your machine

Pick your operating system. Every command below is for the selected package and runtime.

The publisher supplies Python code but does not specify an operating system. Linux is a practical starting environment, not a publisher-tested machine. Run the Python snippets in one session, in order.

01

Install the Transformers runtime dependencies

On your local machine, install the packages needed to run the model in Transformers: torch, transformers, and torchvision. The model's Quick start is compatible with transformers>=5.0.0, so make sure that version or newer is installed for the Transformers environment you plan to use.

02

Load the LFM2.5-VL-3B model and processor

Run this Python setup to load the model on the device in bfloat16 and load its processor. This downloads the model files on first run.

import torch from transformers import AutoModelForImageTextToText, AutoProcessor model_id = "LiquidAI/LFM2.5-VL-3B" model = AutoModelForImageTextToText.from_pretrained(model_id, dtype=torch.bfloat16) processor = AutoProcessor.from_pretrained(model_id)
03

Build the chat input and generate a response

Prepare an image-plus-text message, tokenize it with the model's chat template, and run generation. The sample image URL keeps the first task self-contained; replace the text with your own prompt when you want a different answer.

messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://placecats.com/300/200"}, {"type": "text", "text": "Describe this image."}, ], } ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) with torch.inference_mode(): output_ids = model.generate( **inputs, do_sample=True, temperature=0.2, top_k=50, repetition_penalty=1.0, max_new_tokens=256, )
04

Confirm the model replies and inspect the result

Decode only the newly generated tokens and print them so you can read the model's first response. A non-empty, on-topic description confirms the model loaded and generated.

generated_ids = output_ids[:, inputs["input_ids"].shape[1] :] print(processor.batch_decode(generated_ids, skip_special_tokens=True)[0])
03
SUCCESS CHECK · LFM2.5 VL 3B

Check the first local reply

Ask a short question with a known answer. Confirm the selected local model responds and verify the answer yourself before using it for private work.

This is a source-linked setup, not a YouRunAI hardware test. Confirm your exact runtime version, package, and output before relying on it.

Back to setup steps

When it doesn’t go to plan

The publisher run command does not start

Confirm the exact model files, runtime version, and platform shown in the source-linked steps, then retry the documented command.

The first result is missing or unusable

Inspect the runtime output, confirm the selected model files loaded, and retry a small known input before changing other settings.

REFERENCE LIBRARY

Sources and files

Original instructions, model files, and compatibility notes behind this setup.

2 SOURCES

The model behind this workflow

LFM2.5 VL 3B
MY HARDWARE

Will it run on your machine?

Save your machine to see a personalized rating and its reasoning.

Add my hardware

Keep exploring