Liquid-Fusion-VL-2B
compact multimodal model with powerful tool calling
2 min read
The model combines text (LFM3-1.7B) and visual (LFM3-VL-2B) versions from Liquid AI into a single 2B parameter package. Typical small vision models lose text skills, while text-only models cannot see. This model fixes this issue through weight merging and knowledge distillation from two base teacher models. It excels at tool calling, precise UI element clicking, and strict instruction following, delivering high operating speed even on older GPUs.
Key features
- 2B class leadership: Ranks on the podium across all 10 benchmarks, including first places in tool calling and screen interaction tasks.
- Advanced tool calling: Scored 89.5 points in parallel tool calls and 66.0 in the multi-step BFCL benchmark.
- Preserved vision: Achieves 96.1 points on ScreenSpot-v2 (desktop) and 82.8 on MathVista, outperforming larger counterparts.
- One model instead of two: Fully handles text and visual context without needing to run two separate processes.
What you can do
- Build a computer agent: Use the model for interface automation (Computer Use) with coordinate prediction for screen points.
- Connect function calling: Integrate the model into applications to execute external tools and APIs upon user request.
- Run on weak hardware: Deploy via the GGUF format in Ollama or llama.cpp on an older GPU like the GTX 1080 at speeds exceeding 100 tokens per second.
- Analyze images and text: Solve visual math and interface recognition tasks locally on device.
Example
import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "adriandj3/Liquid-Fusion-VL-2B"
model = AutoModelForImageTextToText.from_pretrained(
model_id, dtype=torch.bfloat16, device_map="auto", trust_remote_code=True
)
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "[https://placecats.com/300/200](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.1, top_k=50, repetition_penalty=1.1, max_new_tokens=16384
)
print(processor.batch_decode(output_ids[:, inputs["input_ids"].shape[1]:], skip_special_tokens=True)[0])Read more
Details• Architecture: linear weight merging (25% text model and 75% visual model) followed by logit distillation (SFT) and two-stage MOPD.
• Metrics: BFCL V4 parallel — 89.5, ScreenSpot-v2 desktop — 96.1, MathVista testmini — 82.8, MMMU val — 55.4.
• Hardware requirements: runs comfortably on a GTX 1080 and similar cards thanks to its compact size (2B).
• License: LFM Open License v1.0 (includes commercial use).










Comments