LFM2.5-VL-3B-DSpark edge drafters (GGUF)
Quantized and reduced-vocabulary versions of Liquid AI's DSpark speculative-decoding drafter for
LFM2.5-VL-3B, for llama.cpp on small-memory and small-cache
devices. They are exported from the official
LFM2.5-VL-3B-DSpark-F16.gguf without retraining.
This is an independent project by Teng Mei, not affiliated with or endorsed by
Liquid AI. Measurements, tools and
reproduction: github.com/meitmt/EdgeSpecQ; technical note:
docs/tech_note.md.
Files
| File | Size | What | Runs on |
|---|---|---|---|
LFM2.5-VL-3B-DSpark-Q8_0.gguf |
305 MB | all weights Q8_0 | unpatched llama.cpp |
LFM2.5-VL-3B-DSpark-P3.gguf |
216 MB | decoder Q4_K; projection and Markov head Q8_0 | unpatched llama.cpp |
LFM2.5-VL-3B-DSpark-P3-V32k.gguf |
244 MB | P3 + 32k-token draft vocabulary ranked by the target's own answers | unpatched llama.cpp |
LFM2.5-VL-3B-DSpark-Q4_K_M-V16k.gguf |
183 MB | Q4_K_M + 16k-token draft vocabulary weighted toward Japanese | unpatched llama.cpp |
c4/LFM2.5-VL-3B-DSpark-P3-V32k-i32.gguf |
244 MB | same as P3-V32k with an I32 d2t map |
llama.cpp + C4 patch |
c4/LFM2.5-VL-3B-DSpark-Q4_K_M-V16k-i32.gguf |
183 MB | same as Q4_K_M-V16k with an I32 d2t map |
llama.cpp + C4 patch |
The files in the root load and run on unpatched llama.cpp (tested on 620d2225c). The c4/ files have identical
weights but an I32 d2t map. Unpatched llama.cpp aborts on them (GGML_ASSERT(model.d2t->type == GGML_TYPE_I64),
still present on master 19ab5a5e6, 2026-10-22). With
e9-c4-draft-space.patch
the Markov chain then stays in the draft vocabulary, which is faster. Checksums: SHA256SUMS.
Which file to use
| Device | Unpatched llama.cpp | With the EdgeSpecQ runtime patches |
|---|---|---|
| Small-cache GPU (e.g. Jetson Orin) | P3-V32k |
c4/P3-V32k-i32 |
| Desktop GPU | P3 (the reduced vocabulary is slower here without C4) |
P3 (c4/P3-V32k-i32 is on par) |
| Snapdragon Hexagon NPU | P3 |
c4/P3-V32k-i32 |
| Japanese-heavy workloads | Q4_K_M-V16k |
c4/Q4_K_M-V16k-i32 |
Draft length (--spec-draft-n-max): 6 on the Jetson, 8 on desktop GPUs and the phone NPU. On 8 GB boards also pass
--cache-ram 0 (the default 8 GiB host prompt cache does not fit).
llama-server -m LFM2.5-VL-3B-Q4_K_M.gguf --mmproj mmproj-LFM2.5-VL-3B-Q8_0.gguf \
-md LFM2.5-VL-3B-DSpark-P3-V32k.gguf --spec-type draft-dspark \
--spec-draft-n-max 6 --spec-draft-n-min 0 -ngl 99 -ngld 99 -fa on --cache-ram 0
The target and mmproj files come from LiquidAI/LFM2.5-VL-3B-GGUF.
Measured results
Target LFM2.5-VL-3B Q4_K_M, greedy decoding, decode throughput (image encoding and prefill excluded).
Unpatched llama.cpp 620d2225c, Jetson Orin Nano Super, 20-prompt probes, n_max 8, speedup over
target-only decoding:
| Drafter | Acceptance | Speedup |
|---|---|---|
| official F16 | 0.407 | 1.93× |
| Q8_0 | 0.409 | 2.40× |
| P3 | 0.400 | 2.46× |
With the EdgeSpecQ runtime patches (C1–C4), 120 multimodal samples in six task categories:
| Device | Drafter | Decode | vs target-only, same runtime | vs official F16 drafter ¹ |
|---|---|---|---|---|
| Jetson Orin Nano Super 8 GB, MAXN_SUPER | c4/P3-V32k-i32, n_max 6 |
86.6 t/s | 2.77× | 1.72× |
| RTX 5070 | c4/P3-V32k-i32, n_max 8 |
408.3 t/s | 1.80× | 1.24× |
| OnePlus 13, Hexagon NPU | c4/P3-V32k-i32, n_max 8 |
31.4 t/s | 1.29× | 1.07× |
¹ On the Jetson and the RTX 5070 against the official drafter on unpatched llama.cpp with n_max 8; on the phone
against the official drafter on the same patched runtime.
On 75 Japanese samples, c4/Q4_K_M-V16k-i32 gives 2.02× on the Jetson and 1.30× on the RTX 5070. Without the
C4 patch the reduced vocabulary still helps on the Jetson (+4.4 % over P3 with the other fixes applied) but is
slower than P3 on the RTX 5070 (−8.5 %). Per-sample results, confidence intervals and the remaining configurations
are in the EdgeSpecQ report.
Outputs. The drafter only proposes tokens; the target verifies them. In the greedy-equivalence tests, changing the drafter changed the target's output only at near-ties (top-1/top-2 margin below 0.3), as any change of verification batch shape can on llama.cpp. Task accuracy was not scored separately.
How they were made
- Quantization: stock
llama-quantizeon the official F16 drafter; P3 keepsfc,markov_w1andmarkov_w2at Q8_0 and the decoder at Q4_K. - Reduced vocabulary:
markov_w2is sliced to the kept rows, the drafter gets its own output head (the matching rows of LFM2.5-VL-3B's token embedding), and ad2tmap (draft row → target token id) is added, which llama.cpp's DSpark loader reads. Kept rows are copied exactly; the 32k vocabulary is ranked by the target's own answers to non-evaluation prompts, the 16k one with Japanese weight. - Reproducible:
scripts/quantize_draft.shandscripts/make_e9_drafters.shin EdgeSpecQ regenerate the measured files bit for bit (SHA256 inbenchmark/manifests/models.sha256).Q4_K_M-V16kwith the I64 map is the same export with--d2t-type i64; it was smoke-tested on unpatched llama.cpp but not benchmarked itself.
License
These files are modified versions of Liquid AI's LFM2.5-VL-3B-DSpark drafter, with the reduced-vocabulary output
heads taken from LFM2.5-VL-3B. They are distributed under the
LFM Open License v1.0, the license of the original models; a copy is included. Changes made:
requantization with llama-quantize; for the reduced-vocabulary files, row slicing of markov_w2, an output head
copied from the target's token embedding, and an added d2t tensor. No weights were retrained. Use is subject to
the license's terms, including its commercial-use threshold. "LFM" and "Liquid" are Liquid AI's names and are used
here only to describe the origin of the files.