LFM3-1.7B-DSpark, retargeted for the 8-11 loop bake

A DSpark speculative-decoding drafter for LiquidAI/LFM3-1.7B as served with the training-free depth loop of vaultpls/LFM3-1.7B-Looped (layers 8-11 executed twice, each pass damped by 0.5).

It is a redistribution of rasyosef/LFM3-1.7B-DSpark (Apache-2.0) with four integers in its GGUF metadata changed and nothing else. No retraining, no weight modification.

Why the metadata change

A DSpark drafter reads auxiliary hidden states from fixed layers of the target (dflash.target_layers). The upstream drafter was trained against plain LFM3-1.7B with

dflash.target_layers = [3, 11, 19, 23]

The loop bake duplicates layers 8-11 as 12-15 and renumbers every later layer, so original layer k >= 12 now lives at k + 4 in the 28-layer model. Upstream taps 19 and 23 would therefore read original layers 15 and 19 โ€” the wrong depths. This file carries

dflash.target_layers = [3, 11, 23, 27]

which points back at original layers 3, 11, 19, 23. Same byte length, in-place patch; see scripts/dspark_retarget.py.

Files

file size notes
gguf/LFM3-1.7B-DSpark-loop-taps-Q8_0.gguf 344 MB block size 8, 4 layers, ~316M params

The drafter shares the target's token embeddings and LM head; it is not a standalone model.

Usage

llama-server \
  -m LFM3-1.7B-loop-8-11-Q8_0.gguf \
  -md LFM3-1.7B-DSpark-loop-taps-Q8_0.gguf \
  --spec-type draft-dspark --spec-draft-n-max 4 --spec-draft-n-min 0 \
  -c 131072 -ngl 99 -fa on -np 1 --jinja

-np 1 matters: this is a single-stream optimisation.

Measured

RTX 4070 12 GB, target Q8_0 at 16k ctx, greedy, 160-token generations, np1. Baseline is the looped target with no drafter (~183 tok/s on every prompt).

prompt n-max=3 n-max=4 n-max=6
prose +45% +36% +33%
JSON (structured) +112% +158% +172%
arithmetic reasoning +95% +147% +144%

Draft acceptance: ~34% on prose, ~66% on JSON, mean accepted length ~2.0-2.1.

At --parallel 8 with a unified KV cache the same drafter loses ~26% aggregate throughput (1062 -> 782 tok/s): batched verification is compute-bound. Use it for interactive single-stream serving only.

Not bit-identical. Greedy text diverges from the no-drafter run within tens of characters (the batched verify path changes numerics). The algorithm is lossless in theory; this implementation is not bit-exact. Keep it off for benchmark runs whose numbers must reproduce.

Note also that a fine-tune target is worse: the same drafter on a post-trained LFM3-1.7B fine-tune loop only reached ~23% acceptance.

Provenance and licence

  • Drafter weights: rasyosef/LFM3-1.7B-DSpark, Apache-2.0, trained with vLLM speculators.
  • Target family: LiquidAI/LFM3-1.7B.
  • Modification: dflash.target_layers [3,11,19,23] -> [3,11,23,27], plus cosmetic general.name. No tensors changed; sha256 of the upstream file is ef29c215c1f4beb260206e8da18ac43797c1a45f34231ece79683ecf7865218e, this file is f43cde9486fdb842ae1c47bfe1a53c00c6b51ae17b885ec4deefbe483c66517a.
  • Licence: Apache-2.0, inherited from the upstream drafter. See NOTICE.
Downloads last month
-
GGUF
Model size
0.3B params
Architecture
dflash
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for vaultpls/LFM3-1.7B-DSpark-loop-taps

Quantized
(186)
this model