LFM2.5‑VL-1.6B is Liquid AI's refreshed version of the first vision-language model, LFM2-VL-1.6B, built on an updated backbone LFM2.5-1.2B-Base and tuned for stronger real-world performance. Find more about LFM2.5 family of models in our blog post.
Enhanced instruction following on vision and language tasks.
Improved multilingual vision understanding in Arabic, Chinese, French, German, Japanese, Korean, and Spanish.
Robust understanding of visual content with improved results on multi-image inputs, high-resolution images, and OCR.
🎥⚡️ You can try LFM2.5-VL-1.6B running locally in your browser with our real-time video stream captioning WebGPU demo 🎥⚡️
Alternatively, try the API model on the Playground.
<|startoftext|><|im_start|>system
You are a helpful multimodal assistant by Liquid AI.<|im_end|>
<|im_start|>user
<image>Describe this image.<|im_end|>
<|im_start|>assistant
This image shows a Caenorhabditis elegans (C. elegans) nematode.<|im_end|>
You can run LFM2.5-VL-1.6B with Hugging Face transformers v5.1 or newer:
pip install transformers pillow
python
1from transformers import AutoProcessor, AutoModelForImageTextToText
2from transformers.image_utils import load_image
34# Load model and processor5model_id ="LiquidAI/LFM2.5-VL-1.6B"6model = AutoModelForImageTextToText.from_pretrained(7 model_id,8 device_map="auto",9 dtype="bfloat16"10)11processor = AutoProcessor.from_pretrained(model_id)1213# Load image and create conversation14url ="https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"15image = load_image(url)16conversation =[17{18"role":"user",19"content":[20{"type":"image","image": image},21{"type":"text","text":"What is in this image?"},22],23},24]2526# Generate Answer27inputs = processor.apply_chat_template(28 conversation,29 add_generation_prompt=True,30 return_tensors="pt",31 return_dict=True,32 tokenize=True,33).to(model.device)34outputs = model.generate(**inputs, max_new_tokens=64)35processor.batch_decode(outputs, skip_special_tokens=True)[0]3637# This image showcases the iconic Statue of Liberty standing majestically on Liberty Island in New York Harbor. The statue is positioned on a small island surrounded by calm blue waters, with the New York City skyline visible in the background.
Tool Use
LFM2.5 supports function calling for text only input by applying the chat template with the tokenizer. See the Tool Use documentation for the full guide.
python
1tools =[{2"name":"get_weather",3"description":"Get current weather for a location",4"parameters":{5"type":"object",6"properties":{"location":{"type":"string"}},7"required":["location"]8}9}]1011messages =[{"role":"user","content":"What's the weather in Paris?"}]1213# Apply chat template with tools14inputs = processor.tokenizer.apply_chat_template(15 messages,16 tools=tools,17 add_generation_prompt=True,18 return_tensors="pt",19 return_dict=True,20)21input_ids = inputs["input_ids"].to(model.device)22outputs = model.generate(input_ids, max_new_tokens=256)23response = processor.tokenizer.decode(outputs[0, input_ids.shape[1]:], skip_special_tokens=False)2425# <|tool_call_start|>[get_weather(location="Paris")]<|tool_call_end|>I am retrieving the current weather for Paris.<|im_end|>
All vision benchmark scores are obtained using VLMEvalKit. Multilingual scores are based on the average of benchmarks translated by GPT-4.1-mini from English to Arabic, Chinese, French, German, Japanese, Korean, and Spanish.