LFM2.5-24B-A2B + Pi adapter, merged (GGUF)
LiquidAI's LFM2.5-24B-A2B (QAD-Q4_0 GGUF) with harness-hub's Pi coding-agent LoRA merged into the weights.
One file, no adapter loading at run time. Made for diskformer.js,
whose native engine lfm2_moe_ssd.js runs it in the browser on WebGPU with the experts paged from disk (and
anyformer.js routes to it); llama.cpp loads it as a normal GGUF.
| File | Size | sha256 |
|---|---|---|
LFM2.5-24B-A2B-pi-QAD-Q4_0-dense-Q8_0.gguf |
13,954,629,664 bytes | f3348381f00f34ce582fb96051bb5bc366914cae8eaa207915b5a50ab8fc2a8c |
Use
In the browser (diskformer.js 0.6.17 or later, native engine Lfm2MoeSsd):
import { Lfm2MoeSsd } from 'diskformer/engines/lfm2_moe_ssd.js';
const m = await Lfm2MoeSsd.load(null, { url: '<this file URL>', poolBytes: 4 * 2 ** 30 });
With llama.cpp:
llama-server -m LFM2.5-24B-A2B-pi-QAD-Q4_0-dense-Q8_0.gguf --jinja
What was changed (licence section 4b)
This file is a modified copy of LFM2.5-24B-A2B-QAD-Q4_0.gguf from
LiquidAI/LFM2.5-24B-A2B-GGUF (sha256 89617cc4…):
- The LoRA
LFM2.5-24B-A2B-harbor-pi-lora-F16.gguffrom harness-hub/LFM2.5-24B-A2B-pi-GGUF (revisiona994cf7, sha2565e96d059…, rank 32, alpha 64) was merged with llama.cpp'sllama-export-lora(scale alpha/rank = 2; the touched matrices come out F16). - The 106 matrices the adapter changes (30 short-conv
in_proj/out_proj, 10 attentionq/k/v/output, the 2 leading dense FFNs) were requantised from that F16 to Q8_0, to keep the quality of the QAD base.llama-quantizecopies every tensor already at its target type byte for byte.
The commands (llama.cpp built from NakliTechie/llama.cpp webgpu-diskformer at 5ac033a52, CPU):
llama-export-lora -m LFM2.5-24B-A2B-QAD-Q4_0.gguf --lora LFM2.5-24B-A2B-harbor-pi-lora-F16.gguf \
-o LFM2.5-24B-A2B-pi-merged-F16dense.gguf -t 6
llama-quantize --allow-requantize --token-embedding-type q6_k --tensor-type _exps=q4_0 \
LFM2.5-24B-A2B-pi-merged-F16dense.gguf LFM2.5-24B-A2B-pi-QAD-Q4_0-dense-Q8_0.gguf Q8_0 8
- The other 322 tensors are byte-identical to the base file, including all 12.91 GB of routed experts (Q4_0) and the Q6_K token embedding. The adapter changes no expert.
Checks
Greedy, 64 tokens, 9 short chat prompts, against llama-server --lora (llama.cpp b11669, Metal) on the base file:
| Run | Identical replies |
|---|---|
| llama.cpp (Metal) on this file | 7 of 9 |
| diskformer native engine in Chrome on this file (4 GiB expert pool) | 8 of 9 |
| diskformer native engine on the unmodified base vs its own base reference | 8 of 9 |
Every miss is a late split between near-equal tokens. The prompts and references are in the diskformer repo
(examples/chat/refs/lfm2.5-24b-a2b-pi-*.json). Nothing here measures the adapter's effect on agent tasks; see the
adapter's own card for the authors' results, which were measured on a Q8_0 base.
Licence and attribution
LFM Open License v1.0 (lfm1.0, copy in LICENSE). Licensor: Liquid AI, Inc. The adapter is by harness-hub under
the same licence. Commercial use by an entity with annual revenue of US$10M or more is not licensed; see section 5.
LFM and Liquid are names of Liquid AI, Inc.; this repository is not affiliated with Liquid AI or harness-hub.