vision-language · image-text-to-text · transformers.js 4.3.0 · lfm1.0 · ~319.2 MB WebGPU / ~642.1 MB WASM

LiquidAI LFM2.5-VL-450M

Liquid AI's 450M-parameter edge vision-language model pairing a SigLIP2 NaFlex 86M native-resolution vision encoder with the hybrid gated-convolution + GQA LFM2.5-350M decoder. Runs 100% locally in your browser on WebGPU (q4f16 with shader-f16, ~319.2 MB) or CPU WASM (fp32 embeddings + q8 vision + q4 decoder, ~642.1 MB).

LiquidAI/LFM2.5-VL-450M image-text-to-text WebGPU q4f16 (~319.2 MB) CPU WASM (~642.1 MB) lfm1.0

1. Initialise LFM2.5-VL-450M locally

Probing browser WebGPU / shader-f16 support…

2. Choose an image, procedural scene, upload, or webcam frame

Active input: Évora Street (CC BY 2.0)

Initialise LFM2.5-VL-450M above, then ask a visual question.

Streaming on-device vision-language output will appear here.
Backend–
Dtype–
Prompt Tokens–
Vision Tensor–
TTFT–
Generated–
Decode Speed–
Total Time–

See inside — hybrid Conv+GQA backbone & NaFlex vision tokens

Instead of a pure Transformer decoder, Lfm2VlForConditionalGeneration pairs a SigLIP2 NaFlex 86M encoder (preserving native aspect ratios up to 512×512 with 2×2 pixel-unshuffle downsampling into 64–256 image tokens) with a 16-layer LFM2.5-350M decoder mixing 10 gated short-convolution blocks and 6 grouped-query full-attention layers (16 Q heads, 8 KV heads). On CPU WASM, keeping embed_tokens at fp32 avoids an ONNX Runtime GatherBlockQuantized crash while quantizing vision to q8 and the decoder to q4.

16-Layer LFM2.5-350M Decoder Topology (from config.json)

Applied ChatML Template

Run inference to inspect the exact LFM2.5-VL ChatML prompt sent to processor.apply_chat_template().

ONNX Weight Breakdown (CPU WASM vs WebGPU)

Exact decimal file sizes from onnx-community/LFM2.5-VL-450M-ONNX
Component WASM (~642.1 MB) WebGPU (~319.2 MB)
embed_tokensfp32 · 268.44 MBq4f16 · 38.80 MB
vision_encoderq8 · 110.06 MBq4f16 · 55.52 MB
decoder_model_mergedq4 · 260.27 MBq4f16 · 221.60 MB
tokenizer + configs3.31 MB3.31 MB

Use-case ladder — go deeper with LFM2.5-VL-450M

Model reference

Verified model card and runtime metadata
Upstream Model LiquidAI/LFM2.5-VL-450M (license lfm1.0 — LiquidAI Open License)
Browser ONNX Repo onnx-community/LFM2.5-VL-450M-ONNX
Task & Architecture image-text-to-text · Lfm2VlForConditionalGeneration (SigLIP2 NaFlex 86M + LFM2.5-350M hybrid decoder, 32k context, 9 languages)
Runtime Pin @huggingface/transformers@4.3.0 local escape hatch in worker.js
Backend & Quantization WebGPU q4f16 (~319.2 MB, requires shader-f16) or CPU WASM embed:fp32 · vision:q8 · decoder:q4 (~642.1 MB)