Accelerating vision-language models with LFM2.5-VL-DSpark

AI-generated summary of reporting by Huggingface Blog. Read the original for the full story.

Why it matters

Liquid AI's DSpark drafter lets developers run a vision-language model up to 3.13x faster on-device today, though end-to-end gains are capped by unaccelerated prefill.

Read this as

Liquid AI has added a small companion model to its image-and-text AI model, LFM2.5-VL-3B. The companion, called a DSpark drafter, quickly guesses the next words so the main model can confirm them, making responses up to 3.13x faster on a Mac while adding only 8.9% more memory. Output is unchanged because every guess is verified. Developers using tools like llama.cpp can adopt it immediately.

Liquid AI shipped a draft model for LFM2.5-VL-3B that cuts decoding time up to 3.13x on an M5 Max and 2.66x on an H100, with end-to-end gains of 2.62x and 2.27x respectively. It costs just 280M extra parameters (8.9%) and outputs are identical to the base model. The main caveat is Amdahl's law: prefill and vision encoding are not accelerated, so long-image workloads see smaller wins. Support is day-one for llama.cpp, MLX-VLM and SGLang.

The vision DSpark drafter reuses the text LFM2.5-DSpark architecture: it taps hidden states at fixed layers, with image patches and text projected into a shared representation, and drafts blocks of k tokens. Ablations over 3-5 layers chose a 4-layer attention-only drafter, block size 9, trained 10 epochs on vision-language SFT data; it adds 280M parameters. Speculative decoding is exact. Decode speedups: M5 Max 2.30-3.13x, M3 Ultra 1.57-2.14x, H100 up to 2.66x. Limitation: prefill and vision encoding are not accelerated, capping end-to-end gains via Amdahl's law.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Liquid AI LFM2.5-VL-3B LFM2.5-VL-3B-DSpark llama.cpp MLX-VLM SGLang Hugging Face

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.4a0

Datasette now lets developers add custom chart types more easily, expanding visualisation options for data projects.