Downloads · 30 days
58
20% of all-time downloads
agney/lfm2-herdr-gguf
lfm2-herdr-gguf is a text generation model from agney. Use it when you need the model to write or continue text. The card lists the license as mit.
A merged LoRA fine-tune of LiquidAI/LFM2-350M, trained by the herdr-liquid-finetune repo to be an expert on the Herdr terminal multiplexer (25 Herdr tool-calling ops, plus off-topic refusal). Exported to GGUF for
Downloads · 30 days
58
20% of all-time downloads
All-time downloads
292
Public
Repo size
1.6 GB
Likes
0
Public
Click a slice to open those files.
.gguf1.6 GB · 100%
From the Hugging Face model README
A merged LoRA fine-tune of LiquidAI/LFM2-350M,
trained by the herdr-liquid-finetune
repo to be an expert on the Herdr terminal multiplexer
(25 Herdr tool-calling ops, plus off-topic refusal). Exported to GGUF for
llama.cpp so it runs as a single
binary — no Python needed.
The adapter lives at agney/lfm2-herdr-lora;
this repo is the same weights merged into the base and quantized.
| file | size | exact-call | note |
|---|---|---|---|
lfm2-herdr-f16.gguf | 679 MB | 96.1% | full-precision baseline |
lfm2-herdr-Q8_0.gguf | 362 MB | 96.1% | lossless vs bf16 — best pick |
lfm2-herdr-Q5_K_M.gguf | 249 MB | 95.1% | good default (1 pt off) |
lfm2-herdr-Q4_K_M.gguf | 219 MB | 92.2% | smallest / most CPU-friendly |
# 1. build llama.cpp (once): cmake -B build -G Ninja && cmake --build build
./build/bin/llama-cli \
-m lfm2-herdr-Q4_K_M.gguf \
-p "$(cat prompt.txt)" \
-st -n 128 --temp 0
prompt.txt is the same system env + Herdr tool schemas the training prompt
used — build it with the fine-tune repo's tokenizer.apply_chat_template(tools=...)
(or copy the 25 herdr_tools.SCHEMAS into the prompt). The model answers in the
native <|tool_call_start|>[name(k=v, ...)]<|tool_call_end|> syntax; parse it
with the repo's eval_lfm2.parse_calls.
For an OpenAI-style HTTP endpoint use llama-server with the same model, and
send your chat request with tools=.
Scored with scripts/eval_gguf.py (same prompt + parse_calls as the
eval_lfm2.py transformers eval). All quantizations keep 100% off-topic;
the diff is exact-call and a couple of arg-grounding rows.
| file | size | exact-call | tool-sel | off-topic |
|---|---|---|---|---|
| bf16 adapter (transformers) | — | 96.1% | 97.1% | 100% |
lfm2-herdr-f16.gguf | 679 MB | 96.1% | 97.1% | 100% |
lfm2-herdr-Q8_0.gguf | 362 MB | 96.1% | 97.1% | 100% |
lfm2-herdr-Q5_K_M.gguf | 249 MB | 95.1% | 97.1% | 100% |
lfm2-herdr-Q4_K_M.gguf | 219 MB | 92.2% | 98.1% | 100% |
Lossless: F16 and Q8_0 reproduce the bf16 adapter exactly; the merge + GGUF
conversion introduces no behavior change. Q4_K_M costs ~4 pts (mostly the
pane_current / pane_split arg-grounding rows the bf16 model already
struggles with). Pick Q8_0 for accuracy, Q5_K_M for the best size/accuracy
balance, Q4_K_M only if size is the priority.
llama.cpp binaries to run it,
and you still format the prompt/tool list yourself. It removes the
Python model-loading layer, not the inference harness.