AIToday
Hugging Face BlogPublished: Aug 21, 2026, 04:03 JST3 min read

Liquid AI releases LFM2.5-DSpark: up to 3.18x faster inference on GPU

Liquid AI releases LFM2.5-DSpark: up to 3.18x faster inference on GPU

Key takeaway

  • Liquid AI released speculative decoding draft models for its LFM2.5 family, enabling inference speedups of up to 3.18x on H100 GPUs and up to 2.87x on edge devices like the M4 Max MacBook, without altering output quality.

  • The approach uses lightweight draft models to predict tokens and a target model to verify them in a single pass, reducing memory-bound latency.

  • Function-calling latency drops by 57% on average for LFM2.5-2.6B, and the models are available immediately in llama.cpp and SGLang with open-source integrations.

3 Key Points

  1. What happened

    Liquid AI released draft model checkpoints for three LFM2.5 models—LFM2.5-1.2B-Instruct, LFM2.5-2.6B, and LFM2.5-8B-A1B—using speculative decoding to speed up inference. The draft models, each around ~300M parameters, use a lightweight architecture to predict candidate tokens, which a target model then verifies in a single forward pass. Day-one support is available in llama.cpp and SGLang.

  2. Why it matters

    Speculative decoding trades minimal memory overhead for significant speed gains without changing output quality. On an H100 GPU, LFM2.5-8B-A1B achieves up to 3.18x throughput improvement, while on-device (M4 Max MacBook), LFM2.5-2.6B reaches 139 tokens per second on average—comparable to proprietary cloud models. For function-calling tasks, LFM2.5-2.6B's latency drops by 57% on average, making on-device agentic inference more practical.

  3. What to watch

    The draft model checkpoints are available now on Hugging Face in both Safetensors and GGUF formats (LFM2.5-2.6B-DSpark, LFM2.5-1.2B-Instruct-DSpark, and LFM2.5-8B-A1B-DSpark). Speedup varies by dataset and model size; LFM2.5-8B-A1B's on-device improvement is limited to 1.18x on average due to current MoE implementation constraints in llama.cpp's Metal backend.

Ask the AI about this article →

Context & Analysis

Speculative decoding has emerged as a practical technique to overcome the memory-bound bottleneck in LLM inference. The decode phase, where a model streams weights from DRAM to SRAM to produce each token sequentially, is the latency-critical component—not the computation itself. Liquid AI's DSpark approach combines three refinements: a parallel backbone (like DFlash) that produces hidden states for all draft tokens in one forward pass, a lightweight sequential Markov-chain head that captures inter-token dependencies and boosts acceptance rates at later positions, and a confidence-scheduled verifier that prunes low-confidence token sequences when verification would be more costly than single-token decode.

The draft models themselves are modest in size (~300M parameters across all three variants), trained on a diverse mix of SFT, chat, code, and function-calling data. Rather than optimizing for minimal loss, Liquid AI selected training epochs by acceptance rate—a direct proxy for inference speedup. This pragmatic choice reflects that the goal is not general accuracy but effective token-prediction fidelity under speculative decoding's constraints.

The empirical results show strong GPU performance: LFM2.5-8B-A1B hits 3.18x on MATH500 (428 → 1362 tok/s), while LFM2.5-2.6B averages 2.67x across five benchmarks on H100. On-device gains are more variable. LFM2.5-2.6B achieves 2.27x on average on M4 Max (61 → 139 tok/s), crossing the ~140 tok/s threshold of typical proprietary cloud offerings—a meaningful milestone for interactive on-device inference. However, LFM2.5-8B-A1B's on-device speedup drops to 1.18x average, constrained by the current implementation of mixture-of-experts (MoE) in llama.cpp's Metal backend; verifying multiple tokens activates more experts, increasing weight traffic relative to single-token decode. This gap illustrates that speculative decoding's gains depend on architecture and backend optimization, not just algorithmic correctness.

FAQ

What is speculative decoding and how does it work?
Speculative decoding uses a lightweight draft model to produce candidate tokens, then has the target model verify them all in a single forward pass, sharing the cost of loading weights across multiple tokens. This reduces latency in the memory-bound decode phase of LLM inference.
What are the speedup numbers on different hardware?
On an H100 80 GB GPU in BF16, LFM2.5-8B-A1B achieves up to 3.18x throughput improvement (428 → 1362 tok/s on MATH500). On an M4 Max MacBook using Metal, LFM2.5-2.6B reaches 2.63x speedup on average across datasets, reaching 139 tokens per second mean throughput.
Will using DSpark change the model's output?
No. Under greedy decoding, a draft token is only accepted if it matches the target model's distribution; on rejection, the target model's own token replaces it. The emitted sequence is identical to baseline greedy by construction, so benchmark accuracy is unchanged.
Where can I download the models?
The DSpark draft model checkpoints are available on Hugging Face in Safetensors format (LFM2.5-2.6B-DSpark, LFM2.5-1.2B-Instruct-DSpark, LFM2.5-8B-A1B-DSpark) and GGUF format (with -GGUF suffix). Integration with SGLang requires PR #31041; llama.cpp support requires PR #27383.
Hugging Face BlogRead Original Article

Get AI news like this every morning

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytime

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Next articleRamp launches AI model router to compete in inference market

The AI news that matters, in one minute each morning.

Sign up free