LFM2.5-8B-A1B-DSpark — DSpark draft, GGUF

GGUF conversion of the DSpark speculator for LiquidAI/LFM2.5-8B-A1B, for use with llama.cpp --spec-type draft-dspark. Paired target (ROCmFP4): kingjones777/LFM2.5-8B-A1B-ROCmFP4-COHERENT-GGUF.

⛔ READ THIS FIRST — measured SLOWER on AMD Strix Halo

We benchmarked this draft against its target and it reduced throughput. Published for completeness and reproducibility, not as a recommended speedup.

config generation effect
no drafter 137.3 t/s
--spec-type draft-dspark --spec-draft-n-max 8 85.1 t/s -38.0%

Mean accepted length 2.71 (block size 9). AMD Ryzen AI Max+ 395 / Radeon 8060S (gfx1151), ROCm 7.13.0, idle box, median of 3, -ngl 999 -ngld 999 -fa on -c 2048 -n 512 --temp 0 --seed 1234. All three LFM2.5 sizes measured negative: −28.4% (1.2B), −19.1% (2.6B), −38.0% (8B-A1B).

Why — two runtime causes, not the weights

  1. lfm2.cpp / lfm2moe.cpp do not populate t_layer_inp[], so draft-dspark aborts on GGML_ASSERT(t_layer_inp[il] != nullptr) out of the box. One-line fix: res->t_layer_inp[il] = prev_cur;
  2. With that applied, llama.cpp reports recurrent state rollback is not compatible with 'draft-dspark' and falls back to a checkpoint path that is not bit-exact for LFM2's recurrent state — DSpark output diverges from greedy target output (reproducible 3/3).

An off-by-one in target-layer mapping was ruled out: LLAMA_DFLASH_TARGET_LAYER_OFFSET=-1 gave a worse accepted length (2.22), confirming the converter's +1 convention is correct.

On other stacks the same technique wins: DSpark measured +75% on Ling-3.0-flash under SGLang (22.3 → 39.1 t/s) on the same day. Speculative value belongs to the (model, runtime) pair.

Files

file precision
LFM2.5-8B-A1B-DSpark-F16.gguf F16
LFM2.5-8B-A1B-DSpark-Q8_0.gguf Q8_0

No 4-bit draft is published: the draft's entire value is accepted length, and 4-bit would lower it further to save ~400 MB.

Requirements

llama.cpp with DSpark support (--spec-type draft-dspark), plus the t_layer_inp fix above for LFM2 targets. Converted with upstream llama.cpp e85caa81ea2b65797396018c179b87ad61fa38ab.

llama-cli -m <target>.gguf -md LFM2.5-8B-A1B-DSpark-F16.gguf \
  --spec-type draft-dspark --spec-draft-n-max 8 \
  -ngl 999 -ngld 999 -fa on

Provenance

Converted from LiquidAI/LFM2.5-8B-A1B-DSpark at revision 5b285c827912834665b1915f171897e49ff0f388. Licence inherited from the base model.

Downloads last month
18
GGUF
Model size
0.3B params
Architecture
dflash
Hardware compatibility
Log In to add your hardware

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for kingjones777/LFM2.5-8B-A1B-DSpark-ROCmFPX-GGUF

Quantized
(2)
this model