Instructions to use vaultpls/LFM3-1.7B-DSpark-loop-taps with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use vaultpls/LFM3-1.7B-DSpark-loop-taps with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0 # Run inference directly in the terminal: llama cli -hf vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0 # Run inference directly in the terminal: llama cli -hf vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0
Use Docker
docker model run hf.co/vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use vaultpls/LFM3-1.7B-DSpark-loop-taps with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vaultpls/LFM3-1.7B-DSpark-loop-taps" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vaultpls/LFM3-1.7B-DSpark-loop-taps", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0
- Ollama
How to use vaultpls/LFM3-1.7B-DSpark-loop-taps with Ollama:
ollama run hf.co/vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0
- Unsloth Desktop
- Pi
How to use vaultpls/LFM3-1.7B-DSpark-loop-taps with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use vaultpls/LFM3-1.7B-DSpark-loop-taps with Docker Model Runner:
docker model run hf.co/vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0
- Lemonade
How to use vaultpls/LFM3-1.7B-DSpark-loop-taps with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0
Run and chat with the model
lemonade run user.LFM3-1.7B-DSpark-loop-taps-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use vaultpls/LFM3-1.7B-DSpark-loop-taps with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use vaultpls/LFM3-1.7B-DSpark-loop-taps with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "vaultpls/LFM3-1.7B-DSpark-loop-taps:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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 cosmeticgeneral.name. No tensors changed; sha256 of the upstream file isef29c215c1f4beb260206e8da18ac43797c1a45f34231ece79683ecf7865218e, this file isf43cde9486fdb842ae1c47bfe1a53c00c6b51ae17b885ec4deefbe483c66517a. - Licence: Apache-2.0, inherited from the upstream drafter. See
NOTICE.
- Downloads last month
- -
8-bit