How to use from
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 lewisdog/lfm2.5-350m-cogs-query-GGUF:Q8_0
# Run inference directly in the terminal:
llama cli -hf lewisdog/lfm2.5-350m-cogs-query-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf lewisdog/lfm2.5-350m-cogs-query-GGUF:Q8_0
# Run inference directly in the terminal:
llama cli -hf lewisdog/lfm2.5-350m-cogs-query-GGUF:Q8_0
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf lewisdog/lfm2.5-350m-cogs-query-GGUF:Q8_0
# Run inference directly in the terminal:
./llama-cli -hf lewisdog/lfm2.5-350m-cogs-query-GGUF:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf lewisdog/lfm2.5-350m-cogs-query-GGUF:Q8_0
# Run inference directly in the terminal:
./build/bin/llama-cli -hf lewisdog/lfm2.5-350m-cogs-query-GGUF:Q8_0
Use Docker
docker model run hf.co/lewisdog/lfm2.5-350m-cogs-query-GGUF:Q8_0
Quick Links

LFM2.5-350M cogs query student (GGUF)

LoRA fine-tune of LiquidAI/LFM2.5-350M as the Cogitarium query student: translates a natural-language data request + schema into ONE LadybugDB Cypher query (openCypher-like, constrained single-MATCH grammar). Trained on 3,065 execution-verified pairs (teacher glm-5.2; every pair executed against a seeded store before admission).

Frozen 55-example execution eval (see the cogs-finetune-query runbook):

model exec match
base LFM2.5-350M few-shot 7.3% 0%
Qwen3-1.7B few-shot 94.5% 12.7%
this model (bf16) 98.2% 23.6%
this model (Q8_0) 96.4% 23.6%
this model (Q4_K_M) 63.6% 10.9%

Pins (measured): repetition penalty 1.0; Q8_0 quantization REQUIRED (Q4_K_M exhibits token corruption). Serve with the exact system prompts in Cogitarium src/data/prompts.ts (sha-pinned train/serve contract).

Downloads last month
48
GGUF
Model size
0.4B params
Architecture
lfm2
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 lewisdog/lfm2.5-350m-cogs-query-GGUF

Quantized
(83)
this model