Liquid AI
Try LFM β€’ Docs β€’ Discord

LFM2.5-24B-A2B-DSpark

LFM2.5-24B-A2B-DSpark is a speculative-decoding draft model for LiquidAI/LFM2.5-24B-A2B. It accelerates generation by proposing tokens that the target model verifies.

On NVIDIA B300 with the FP8 target in SGLang, output throughput averages 2.4Γ— the target-only baseline at concurrency 1 (up to 3.1Γ—), and 1.7Γ— at concurrency 256.

Find more information about LFM2.5-DSpark in our blog post.

πŸ—’οΈ Model Details

  • Target model: LiquidAI/LFM2.5-24B-A2B
  • Draft parameters: 327.7M (BF16)
  • Backbone: 5 full attention layers, hidden_size=2048, intermediate_size=6144 with SiLU/SwiGLU, GQA with num_attention_heads=32 / num_key_value_heads=8, head_dim=64
  • Extra heads: Markov head (rank 256) + confidence head
  • Block size: 9
  • Vocabulary: 128,000

Other models in the LFM2.5-DSpark family:

πŸ“Š Performance

The target verifies every proposed token. Floating-point differences between batched verification and plain decoding can produce different text, including under greedy sampling. These measurements assess performance, not task accuracy. See LiquidAI/LFM2.5-24B-A2B for quality benchmarks.

Output throughput with DSpark relative to the target alone, on the full evaluation split of each dataset:

Dataset Tokens / step Concurrency 1 Concurrency 32 Concurrency 256
MATH-500 5.61 2.63Γ— 3.04Γ— 1.79Γ—
GSM8K 4.46 1.71Γ— 2.56Γ— 2.15Γ—
HumanEval 4.61 2.23Γ— 2.63Γ— 1.64Γ—
MBPP 6.70 3.08Γ— 3.28Γ— 1.64Γ—
MT-Bench 5.77 2.66Γ— 2.47Γ— 1.81Γ—
SimpleQA 5.22 2.48Γ— 2.91Γ— 1.95Γ—
LiveCodeBench 4.02 1.87Γ— 2.20Γ— 1.34Γ—
AIME 4.90 2.35Γ— 2.45Γ— 1.36Γ—
Arithmetic mean 5.16 2.38Γ— 2.69Γ— 1.71Γ—

B300 FP8 throughput and interactivity across eight datasets

Each measured shard uses one NVIDIA B300, the FP8 target, a BF16 KV cache, and temperature 0. Throughput is reported per GPU; sharded results pool output tokens and measured shard seconds. Tokens per step are measured at concurrency 1 and include the target's bonus token (the ceiling is 10). The raw results and full protocol are in benchmarks/.

πŸƒ How to run (SGLang)

Requires a recent SGLang build with LFM2-MoE DSpark support (PR #31041) and native Hugging Face configuration support (PR #43939). Launch the target with the draft attached:

python -m sglang.launch_server \
  --model-path LiquidAI/LFM2.5-24B-A2B-FP8 \
  --speculative-algorithm DSPARK \
  --speculative-draft-model-path LiquidAI/LFM2.5-24B-A2B-DSpark \
  --speculative-draft-attention-backend flashinfer \
  --speculative-dspark-block-size 9 \
  --speculative-num-draft-tokens 10 \
  --mem-fraction-static 0.8 --port 30000

Then query the OpenAI-compatible endpoint at http://localhost:30000/v1. The baseline is the same command without the --speculative-* flags.

πŸ“¬ Contact

Citation

@article{liquidAI202624BA2B,
  author  = {Liquid AI},
  title   = {LFM2.5-24B-A2B: Built for Fast On-Device Agents},
  journal = {Liquid AI Blog},
  year    = {2026},
  note    = {www.liquid.ai/blog/lfm2-5-24b-a2b},
}
@article{liquidAI2026dspark,
  author = {Liquid AI},
  title = {LFM2.5-DSpark: Up to 3.2x Faster Inference from H100 to MacBook},
  journal = {Liquid AI Blog},
  year = {2026},
  note = {www.liquid.ai/blog/lfm2.5-dspark},
}
Downloads last month
220
Safetensors
Model size
0.3B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for LiquidAI/LFM2.5-24B-A2B-DSpark

Finetuned
(13)
this model
Quantizations
1 model