Run LFM2.5 Thinking on an Intel i5-12400 desktop
Run Liquid AI’s text-only Thinking checkpoint with an exact Q4_K_M GGUF and llama.cpp 0.7.0 on an owned Intel Core i5-12400 desktop. Allocate one CPU sequence and a 4096-token context, with a 1024-token validation output cap to leave room for reasoning. Keep the endpoint private and authenticated. Reasoning is returned as raw content; full memory fit, speed and exact output behavior have not been measured.
- Hardware
- Intel Core i5-12400 desktop, 4-thread allocation, 8 GiB host RAM
- Runtime
- llama.cpp v0.7.0 (620d2225cc436ab0b001e3200e590e3b286ef9ab) · CPU
- Model format
- GGUF · GGUF Q4_K_M mixed quantization · Q4_K_M post-training quantization
- Workload
- 4,096 token context · 1 concurrent
Based on source documentation; this setup has not been executed by OpenTools. Memory: unknown. No compatible measurement available.
Read the complete setup guide
Before you start
- Use an Intel Core i5-12400 desktop (6 cores / 12 threads) with Ubuntu 24.04 x86_64, sudo and HTTPS access; allocate four inference threads, 8 GiB installed host RAM and 20 GiB free disk. Intel lists SSE4.1/SSE4.2/AVX2. Build on this same CPU with GGML_NATIVE=ON; do not copy a binary built for another CPU. RAM/disk/thread choices are author planning allocations, not vendor minimum requirements or measured fit.
- Read the LFM Open License v1.0. It is custom restricted-weight licensing, not Apache/MIT. Commercial-use and redistribution terms apply.
- This documented recipe has not been executed by OpenTools. No model inference, fit or throughput measurement is claimed.
Exact model and requirements
- Artifact:
- Liquid AI / LFM2.5-1.2B-Thinking Q4_K_M · checkpoint LiquidAI/LFM2.5-1.2B-Thinking-GGUF
- Publisher revision:
- 9584426effbfa44b677e925793a12188a36b44ce
- Artifact digest:
- sha256:7223a2202405b02e8e1e6c5baa543c43dc98c1d9741a5c2a0ee1583212e1231b
- Download size:
- 0.68 GiB
- Memory requirement (unknown):
- Unknown — No exact full-process peak memory evidence for this configuration.
- System RAM / disk:
- Unknown / Unknown
- Placement:
- single device. One CPU host; no tensor/pipeline sharding. CPU-only execution; --device none and zero GPU layers. No disk or accelerator offload.
- KV cache:
- F16 K and V; hybrid convolution state managed separately by llama.cpp
- Workload:
- 4,096 token context; Unknown; Unknown; concurrency 1; batch 1; cache unknown; repetitions Unknown.
- Tokenizer:
- Embedded LFM2.5 Thinking GGUF tokenizer and chat template · 9584426effbfa44b677e925793a12188a36b44ce
- Sampling / reasoning:
- temperature 0.05; top_k 50; repeat_penalty 1.05; top_p 1.0; min_p 0.0. Validation max_tokens 1024 counts reasoning plus final content. Thinking checkpoint; --reasoning-format none and --skip-chat-parsing return raw generated text in message.content, including any <think> blocks. No promise of separate reasoning_content field, reasoning budget or automatic final-answer extraction. No tool executor.
- Runtime prerequisites:
- Ubuntu 24.04 x86_64; See prerequisites above.
The custom license defines a USD 10 million annual-revenue threshold and conditions commercial rights on not exceeding it; commercial use by entities exceeding it is not licensed under this agreement. Read the full license for exact scope, redistribution and qualified nonprofit terms.
- CPU weights (730895360 bytes on disk), attention cache, convolution state, buffers and OS share system RAM. File size alone cannot prove fit; Thinking output can require more decode work than a short Instruct response without establishing any measured difference.
- Use the stated allocation as a starting resource choice, validate locally, and record actual startup and process peak before making fit claims.
One-time setup and hardware
- hardware
- Unknown — Existing desktop purchase price and incremental hardware cost depend on the reader; unknown.
- Existing desktop purchase price and incremental hardware cost depend on the reader; unknown. Tax: unknown.
- setup
- Unknown — Initial provisioning/build time and labor cost are unknown.
- Initial provisioning/build time and labor cost are unknown. Tax: unknown.
Recurring costs
- electricity
- Unknown — Actual wall power, electricity rate and powered hours are unknown; no TDP-to-wall-power conversion.
- Actual wall power, electricity rate and powered hours are unknown; no TDP-to-wall-power conversion. Tax: unknown.
- storage
- Unknown — Incremental cost of local disk capacity is unknown. The 20 GiB free-disk walkthrough allocation is an author choice, not a measured requirement.
- Incremental cost of local disk capacity is unknown. The 20 GiB free-disk walkthrough allocation is an author choice, not a measured requirement. Tax: unknown.
- egress
- Unknown — Data transfer price, allowances and traffic volume are unknown.
- Data transfer price, allowances and traffic volume are unknown. Tax: unknown.
- administration
- Unknown — Maintenance labor rate and hours are unknown.
- Maintenance labor rate and hours are unknown. Tax: unknown.
Install the runtime
1. Build the pinned CPU server
Install build dependencies and compile the exact official source revision. These packages are system shared dependencies; no CUDA/GPU driver is required. GGML_NATIVE=ON selects -march=native for this GNU/Linux x86 build, compiling for the host CPU. Build and run on the same machine; no AVX-512 requirement is imposed on the i5-12400.
Commandsudo apt-get update sudo apt-get install -y build-essential cmake git curl ca-certificates openssl mkdir -p "$HOME/lfm25-thinking-hosting/models" cd "$HOME/lfm25-thinking-hosting" git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp git checkout --detach 620d2225cc436ab0b001e3200e590e3b286ef9ab cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_METAL=OFF -DGGML_NATIVE=ON cmake --build build --config Release -j 4 ./build/bin/llama-server --versionExpected result: Build succeeds and server version identifies pinned source. Stop if checkout or build fails.
Download the model
1. Download and verify the exact GGUF
Download this exact Thinking Q4_K_M GGUF; the Instruct sibling has a different checkpoint, recommended temperature and artifact digest. Official metadata reports public ungated access. No provider API subscription is needed.
Commandcd "$HOME/lfm25-thinking-hosting" curl --fail --location --output models/LFM2.5-1.2B-Thinking-Q4_K_M.gguf 'https://huggingface.co/LiquidAI/LFM2.5-1.2B-Thinking-GGUF/resolve/9584426effbfa44b677e925793a12188a36b44ce/LFM2.5-1.2B-Thinking-Q4_K_M.gguf' printf '%s %s\n' '7223a2202405b02e8e1e6c5baa543c43dc98c1d9741a5c2a0ee1583212e1231b' 'models/LFM2.5-1.2B-Thinking-Q4_K_M.gguf' | sha256sum --checkExpected result: LFM2.5-1.2B-Thinking-Q4_K_M.gguf reports OK against publisher LFS SHA-256; 730,895,360 bytes. Stop on mismatch.
Configure
1. Create a private service credential
Generate this only on your own host when following the guide. It is a local service password, not an OpenAI/provider credential. Keep it private and never paste it into tickets. Create it only when absent; preserve an existing key so a repeated setup does not silently rotate access. It is not created during this documentation run.
Commandcd "$HOME/lfm25-thinking-hosting" umask 077 if [ ! -e .api-key ]; then openssl rand -hex 32 > .api-key fi test -s .api-key || { echo 'Existing .api-key is empty; restore it before continuing.'; exit 1; } chmod 600 .api-keyExpected result: A non-empty private .api-key file exists; existing key preserved. No secret is printed.
Start the model
1. Start one CPU-only sequence
Use one foreground CPU-only server with the exact Thinking GGUF and embedded chat template. Keep 4096 total context and one slot. --reasoning-format none plus --skip-chat-parsing explicitly retains raw reasoning and final text in message.content; no automatic split is claimed. Validation allows 1024 output tokens, so keep prompt plus template within the remaining context. A cap can still truncate reasoning; inspect finish_reason and final text. No reasoning-budget flag is imposed.
Commandcd "$HOME/lfm25-thinking-hosting" export LFM25_THINKING_SERVICE_KEY="$(cat .api-key)" ./llama.cpp/build/bin/llama-server -m models/LFM2.5-1.2B-Thinking-Q4_K_M.gguf --alias lfm25-thinking --host 127.0.0.1 --port 8080 --api-key "$LFM25_THINKING_SERVICE_KEY" --device none -ngl 0 -t 4 -c 4096 -np 1 --cache-type-k f16 --cache-type-v f16 --temp 0.05 --top-k 50 --top-p 1.0 --min-p 0.0 --repeat-penalty 1.05 --reasoning-format none --skip-chat-parsingExpected result: Model initializes and listener starts. Pass health and authenticated chat checks before relying on the service. Command-line credentials may be visible to privileged/local users; trusted host required.
Connect to your endpoint
http://127.0.0.1:8080/v1
Same desktop loopback only; no LAN/public listener. Use on a trusted single-user host.
Access: loopback. Reader-generated private service key in Authorization: Bearer header for chat; /health is public on loopback. Run the client on this same desktop. Keep the key private; this is not an OpenAI API key.
Verify the setup
1. Check readiness and authenticated text generation
Run checks from a second server terminal using the private key. Health is public on loopback. Raw mode returns any reasoning tags and final answer together in choices[0].message.content; do not assume choices[0].message.reasoning_content exists. Check final text and finish_reason before accepting the response. This is a functional arithmetic check, not a quality or speed benchmark.
Commandcd "$HOME/lfm25-thinking-hosting" export LFM25_THINKING_SERVICE_KEY="$(cat .api-key)" curl --fail http://127.0.0.1:8080/health curl --fail http://127.0.0.1:8080/v1/chat/completions -H "Authorization: Bearer $LFM25_THINKING_SERVICE_KEY" -H 'Content-Type: application/json' -d '{"model":"lfm25-thinking","messages":[{"role":"user","content":"A shop packs 3 boxes with 4 pencils each and gives away 5 pencils. How many pencils remain? Finish with a concise final answer."}],"max_tokens":1024,"temperature":0.05,"top_k":50,"top_p":1.0,"min_p":0.0,"repeat_penalty":1.05}' curl -o /dev/null -s -w '%{http_code}\n' http://127.0.0.1:8080/v1/chat/completions -H 'Content-Type: application/json' -d '{"model":"lfm25-thinking","messages":[{"role":"user","content":"Hello"}]}'Expected result: Ready health HTTP 200; authenticated completion contains non-empty choices[0].message.content with a completed final answer (7 pencils for this prompt), finish_reason is not length, and any <think> block closes before the final answer. Missing/truncated final text is a failed validation. Unauthenticated chat returns HTTP 401. Output can still be wrong.
Performance evidence
No compatible measurement available. Documented support and estimated memory do not establish response speed.
Limits and troubleshooting
- The publisher advertises 32768 context; this recipe configures 4096 total prompt plus output and one active slot. Larger context/concurrency or another quantization is a different configuration.
- No speed numbers are imported from the old LFM2 desktop table, phone Q4_0, NPU runs or speculative decoding. No OpenTools execution occurred.
- Operating system packages and build tool dependencies resolve when installed. Save tool versions/build logs with any actual execution. Local hardware is Intel Core i5-12400 with four inference threads allocated; no exact-hardware benchmark is claimed.
- The custom license defines a USD 10 million annual-revenue threshold and conditions commercial rights on not exceeding it; commercial use by entities exceeding it is not licensed under this agreement. Read the full license for exact scope, redistribution and qualified nonprofit terms.
- Loopback and a service key do not isolate the service from privileged local users. A shared/public service needs separately designed TLS, authentication and operations.
- Documented support only. Exact process peak RAM, full fit, latency and throughput are unknown. The 730,895,360-byte GGUF is not total working memory.
- This is the Thinking checkpoint, not Instruct. Its publisher recommends temperature 0.05, top-k 50 and repetition penalty 1.05, versus Instruct temperature 0.1. Thinking may spend more output tokens before a final answer; no latency comparison is claimed.
- The official source chat template supports <think>...</think> reasoning fields/history. This recipe uses the GGUF embedded template and raw-content mode; equality of its embedded template with the independently archived native template was not inspected by downloading weights. No executed parser result is claimed.
- Raw mode intentionally keeps reasoning in message.content. Applications must handle incomplete/missing closing tags or missing final answer rather than exposing reasoning as a final result. finish_reason length or an unfinished reasoning block fails this walkthrough validation. A 1024-token cap may be inadequate for a harder problem; increasing it changes workload and may require shorter input.
- Publisher recommends agentic tasks, extraction and RAG and cautions against knowledge-intensive tasks and programming. This recipe checks only a short arithmetic chat; no tool execution, constrained JSON or application quality guarantee is provided.
- Download or checksum failure
- Verify exact uppercase filename and pinned URL; remove only the incomplete dedicated model file and retry. Do not run a mismatching file.
- Architecture unsupported or build fails
- Confirm exact pinned source commit, Ubuntu compiler/CMake dependencies and GGUF. Do not substitute an older packaged llama.cpp silently.
- Out of memory or context overflow
- Stop server, free/provision RAM or reduce context and restart; shorten input/output within configured total. Allocation is not a measured guarantee; record any changed configuration.
- Connection refused or HTTP 401
- Check foreground server logs, 8080 binding, matching private key and Bearer header. Run the client on this same desktop and keep the loopback listener.
- Only reasoning, unfinished <think> block, missing final answer or finish_reason length
- Treat validation as failed. Verify the Thinking artifact and temperature 0.05. Use a shorter/easier prompt or allow more output within the 4096 total context; record any workload change. Do not interpret a trace fragment as the final answer. Raw mode deliberately provides no reasoning_content split.
Stop the model
1. Stop the service
Press Ctrl+C in server terminal. Unset key in each shell. Confirm this desktop localhost:8080 no longer serves the model.
Commandunset LFM25_THINKING_SERVICE_KEYExpected result: Server stops and localhost:8080 stops serving.
Uninstall
1. Remove dedicated model, build and credential files
Back up wanted logs/files first. Remove only this walkthrough directory after confirming its path. Shared apt packages can remain; do not remove other workloads.
Commandrm -r -- "$HOME/lfm25-thinking-hosting"Expected result: Dedicated files and local service credential removed; shared system dependencies remain.
Sources and verification
Sources checked Oct 16, 2026. Verification source
- https://huggingface.co/api/models/LiquidAI/LFM2.5-1.2B-Thinkingpublisher · retrieved Oct 16, 2026
- https://huggingface.co/api/models/LiquidAI/LFM2.5-1.2B-Thinking-GGUFpublisher · retrieved Oct 16, 2026
- https://huggingface.co/LiquidAI/LFM2.5-1.2B-Thinking/raw/f313478934a7612d22991f752959d7a1a8756fec/README.mdpublisher · retrieved Oct 16, 2026 · revision f313478934a7612d22991f752959d7a1a8756fec
- https://huggingface.co/LiquidAI/LFM2.5-1.2B-Thinking/raw/f313478934a7612d22991f752959d7a1a8756fec/LICENSEpublisher · retrieved Oct 16, 2026 · revision f313478934a7612d22991f752959d7a1a8756fec
- https://huggingface.co/LiquidAI/LFM2.5-1.2B-Thinking/raw/f313478934a7612d22991f752959d7a1a8756fec/chat_template.jinjapublisher · retrieved Oct 16, 2026 · revision f313478934a7612d22991f752959d7a1a8756fec
- https://huggingface.co/LiquidAI/LFM2.5-1.2B-Thinking/raw/f313478934a7612d22991f752959d7a1a8756fec/generation_config.jsonpublisher · retrieved Oct 16, 2026 · revision f313478934a7612d22991f752959d7a1a8756fec
- https://huggingface.co/LiquidAI/LFM2.5-1.2B-Thinking-GGUF/raw/9584426effbfa44b677e925793a12188a36b44ce/README.mdpublisher · retrieved Oct 16, 2026 · revision 9584426effbfa44b677e925793a12188a36b44ce
- https://huggingface.co/api/models/LiquidAI/LFM2.5-1.2B-Thinking-GGUF/tree/9584426effbfa44b677e925793a12188a36b44ce?recursive=false&expand=falsepublisher · retrieved Oct 16, 2026
- https://docs.liquid.ai/lfm/inference/llama-cppruntime maintainer · retrieved Oct 16, 2026
- https://raw.githubusercontent.com/ggml-org/llama.cpp/620d2225cc436ab0b001e3200e590e3b286ef9ab/docs/build.mdruntime maintainer · retrieved Oct 16, 2026 · revision 620d2225cc436ab0b001e3200e590e3b286ef9ab
- https://www.intel.com/content/www/us/en/products/sku/134586/intel-core-i512400-processor-18m-cache-up-to-4-40-ghz/specifications.htmlmanufacturer · retrieved Oct 16, 2026
- https://raw.githubusercontent.com/ggml-org/llama.cpp/620d2225cc436ab0b001e3200e590e3b286ef9ab/tools/server/README.mdruntime maintainer · retrieved Oct 16, 2026 · revision 620d2225cc436ab0b001e3200e590e3b286ef9ab
- https://raw.githubusercontent.com/ggml-org/llama.cpp/620d2225cc436ab0b001e3200e590e3b286ef9ab/common/arg.cppruntime maintainer · retrieved Oct 16, 2026 · revision 620d2225cc436ab0b001e3200e590e3b286ef9ab
- https://api.github.com/repos/ggml-org/llama.cpp/releases/latestruntime maintainer · retrieved Oct 16, 2026
- https://raw.githubusercontent.com/ggml-org/llama.cpp/620d2225cc436ab0b001e3200e590e3b286ef9ab/ggml/src/ggml-cpu/CMakeLists.txtruntime maintainer · retrieved Oct 16, 2026 · revision 620d2225cc436ab0b001e3200e590e3b286ef9ab