Up to 3.2x Faster Inference with LFM2.5-DSpark
Liquid AI releases ~300M-parameter DSpark speculative-decoding draft models for LFM2.5-1.2B-Instruct, LFM2.5-2.6B and LFM2.5-8B-A1B. DSpark combines a DFlash-style parallel drafting backbone, a Markov-chain sequential head and a confidence-scheduled verifier, and greedy output stays identical to the target model. Benchmarks at batch size 1 show up to 3.18x throughput on an H100 with SGLang and up to 2.87x on an M4 Max with llama.cpp/Metal, plus a 57% average cut in function-calling latency for the 2.6B model. The MoE model gains only about 18% on-device because llama.cpp's Metal MoE path is immature and verifying multiple tokens activates more experts. Launch commands for SGLang and llama.cpp are included.
Related posts
- Speculation Is All You Need
Modal hardMaster
Speculative decoding delivers integral-factor (2-3x+) LLM decode speedups, far beyond the few-percent gains from kernel or host-side optimization, and its benefit scales roughly linearly with acceptance length. Modal and Z Lab release DFlash speculators for several Qwen 3.5/3.6 models that add 5-20% over existing DFlash baselines, reaching over 1000 tok/s for Qwen 3.5 122B-A10B at concurrency 1 on a B200 node. Mocking acceptance in SGLang via SGLANG_SIMULATE_ACC_LEN shows Qwen 3.5 27B speeding up 5.62x at acceptance length 8, and a toy model plus a roofline model explain why speedup tracks acceptance length and where drafting overhead erodes it. Training custom speculators on application data is framed as easy-mode ML: fine-tuning has lifted acceptance length from 3 to over 9.
- Hill-climbing Inkling 2 Mini inference on one RTX PRO 6000
Hugging Face hardMasterAgent-driven tuning of Inkling 2 Mini, a looped 26B-total/3B-active MoE, on a single RTX PRO 6000 raised single-user decode from 136 to 190.6 tok/s (+40%) and 8-user throughput from ~570 to 716 tok/s by switching from SGLang to vLLM nightly and enabling DSpark speculative decoding with 7 drafts and probabilistic draft sampling. A bandwidth analysis shows the result sits at ~95% of the ~201 tok/s ceiling, because speculative verification on an MoE touches the union of experts across draft positions. Two memory flags, --max-model-len 262144 and --gpu-memory-utilization 0.85, were needed for vLLM's DSpark setup to start on 96 GB. The write-up also lists failed levers and benchmarking pitfalls (Triton JIT during timed runs, orphaned server processes, buried OOM errors, SGLang run-to-run variance) and verification gates: needle retrieval to 250K tokens and byte-identical greedy outputs.
- Faster Assisted Generation with Dynamic Speculation
Hugging Face mediumAdeptDynamic speculative decoding stops the draft model's token generation as soon as its softmax confidence falls below a threshold (assistant_confidence_threshold), rather than always drafting a fixed or heuristically adjusted number of tokens before verification by the target model. An oracle analysis shows optimal speculation lookahead varies widely across iterations, so static values waste forward passes. On an RTX 4090 the dynamic schedule beat the heuristic in every tested model pair, reaching 2.71x on OPT-6.7B summarization and 1.52x for Llama-3.1-8B with Llama-3.2-1B where the heuristic gave no speedup. It is the default for assisted generation in Transformers 4.45.0 and can be tuned or reverted through generation_config parameters.
- Achieve state-of-the-art inference latencies with speculative decoding
Modal hardMaster
Speculative decoding is the dominant lever for low-latency LLM serving because decode steps dominate latency and speculation yields multiplicative speedups roughly linear in acceptance length. Working with Decagon's voice agents, Modal combined regional serving, SGLang host-overhead fixes, and open-source kernels with DFlash draft models that reuse target-model KV projections and draft tokens in parallel. Fine-tuning ("mid-training") the speculator on synthetic data generated by the target model from public prompts in the task's output grammar avoids exposing user data. The custom speculator cut about 100ms from a ~290ms p50 baseline, roughly 40% of server-side decode latency, and beat proprietary providers by over 60ms. Out-of-distribution evaluation was used to guard against overfitting.
- Assisted Generation: a new direction toward low-latency text generation
Hugging Face mediumAdeptAssisted generation cuts autoregressive LLM latency by letting a much smaller assistant model with the same tokenizer greedily draft candidate tokens, then verifying them all in a single forward pass of the large model. The large model keeps matching tokens plus the first divergent one. The draft length adapts: it grows by 2 when every candidate matches and shrinks by 1 otherwise. The approach exploits the fact that forward passes are memory-bandwidth bound. In 🤗 Transformers it is exposed through an `assistant_model` argument to `generate` (batch size 1 only) and yields up to 2x speedups, 3x with INT8, and up to 10x when the model relies on memory offloading. It works best on input-grounded tasks like ASR and summarization, and with sampling only at low temperatures.