llama.cpp: Local AI use cases
llama.cpp is the open-source C/C++ inference engine behind much of local AI. It runs quantized GGUF models on CPUs and GPUs and includes llama-server, an OpenAI-compatible API.
Read the guide: How to Run an LLM Locally (Ollama, LM Studio, llama.cpp) →
Pooling three laptop GPUs over Wi-Fi with llama.cpp RPC to fit an 8B Llama
A developer with only small laptop GPUs built HyperPod, a controller that splits a Llama model across laptops with llama.cpp RPC and rebuilds the pipeline when one drops out. Pooling added capacity, but each extra machine cost a lot of speed.
Why llama.cpp prompt lookup stops helping local coding agents
Testing local coding-agent edits on a Mac Studio, a developer found llama.cpp's n-gram prompt lookup drafts collapse once file edits are wrapped in JSON tool calls, while models with built-in multi-token prediction still sped up 61-63%.
Running Inkling 2 Mini on a 12 GB AMD card for a Twitch AI moderator
An applied AI engineer tuned llama.cpp to run Inkling 2 Mini on an RX 6750 XT for his home Twitch moderator project, and found that a shared-KV loop setting was quietly hurting the model's quality.
A self-hosted llama.cpp endpoint on three 16 GB GPUs with presets.ini and Docker
Theo Dufort shares the Compose file and 60-line presets.ini behind his private OpenAI-compatible endpoint: a 27B coding model at 132K context and a 26B MoE chat model.
A private OpenAI-compatible LLM API on an AMD GPU with llama.cpp
A Vietnamese developer's notes on building llama.cpp for AMD cards, choosing between Vulkan and ROCm, and running llama-server as a locked-down systemd service that existing OpenAI SDK code can call.
Faster local Qwen on an AMD eGPU with the llama-cpp-rdna-boosts patches
A developer running a Qwen3.8-27B fine-tune on an AMD R9700 eGPU swapped vanilla llama.cpp for a small set of AMD-specific patches in a Podman image and roughly doubled prefill speed.
llama.cpp 1.0 on a handheld PC's integrated GPU: 2x faster long prompts with flash attention
Before-and-after llama.cpp 1.0 tests on an MSI Claw's Intel Arc 140V found long prompts read about twice as fast only with flash attention on, and the new MoE cache lost to full GPU offload.
Choosing Gemma 4 settings for function calls on an 8 GB RTX 3050
xbill ran 840 Berkeley Function Calling Leaderboard problems through Gemma 4 E2B, E4B and 12B on one 8 GB RTX 3050 with llama.cpp, in four sampling and thinking settings, to pick what to serve for tool calls.
Running 80 GB MoE models on two 16 GB GPUs with llama.cpp 1.0
Gancho Stoychev measured five llama.cpp 1.0 settings one at a time on his homelab box with two RTX 5060 Ti 16 GB cards, running Qwen3.8-Flash-Next and DeepSeek V4 Flash, each about 80 GiB.
Switching two local GGUF models on a home server from Telegram
A personal assistant on a VPS uses a home server's RTX 3060 through llama.cpp, and its owner added a second local model and a Telegram /model switch, fixing OOM builds, GPU numbering and 64k context on the way.
Onira: on-device self-hypnosis scripts from a 2B model on Android
The Onira app writes 30-40 minute self-hypnosis sessions on a mid-range Android phone with a fine-tuned Gemma 4 E2B in llama.cpp, generating each block while the previous one is narrated and working in airplane mode.
BubbleFacts: source-checked song facts on stream from a local 3B model
An open-source desktop app for streaming musicians and DJs shows short facts about the song being played as OBS bubbles, written by Llama 3.2 3B on the streamer's own computer and screened against Wikipedia before anything is shown.
Long-term chat memory with a 4B model: 60.4% on LongMemEval fully offline
@GabrielNolo ran the LongMemEval long-term memory test fully offline on a Mac with a Qwen 4B model and a local hybrid search step, scoring 60.4% against 60.6% reported for GPT-4o reading the whole history.
On-device semantic search for a markdown notes app, on iPhone and desktop
Lavneet Sharma built VB Notes so a question like "what does my flatmate owe" finds the note "Rent split with Arjun", using a 350M-parameter embedding model that runs on the phone, and the same model through llama.cpp on desktop.
A local eve agent on a 4B model that keeps its pending approval through kill -9
@VarunChopr17597 ran Vercel's open-source eve 1.1 agent framework against Qwen3.5-4B on llama.cpp on a CPU-only Linux box, with no Vercel account, and tested whether a tool waiting for human approval survives the server being killed.
Two Qwen Code sessions on one Ollama slot waited 46 seconds; a slot each waited one
Tensward ran two Qwen Code sessions against Qwen3.8-27B on a 24 GB L4 and found that sharing one Ollama slot raised the median wait for a response to start from about one second to 46.
Running a 35B MoE model on a laptop with a 4 GB GTX 1650: measured, not guessed
Nabil Doghri ran Qwen3.6-35B-A3B (Q4_K_M) through Ollama on a GTX 1650 Max-Q laptop and measured about 21-22 tokens per second once loaded, with most of the 23 GB model sitting in system RAM.
Sharing one local model with several users: parallel-stream tests on a 2020 Radeon RX 6900 XT
Amuro Ray measured how total and per-user speed change when 1 to 8 people share a dense 27B or a 35B-A3B MoE model through llama.cpp's llama-server on a single 16 GB Radeon card.
Building llama.cpp 1.0 on a 4-core, 8 GB CPU box and measuring what the FP8 KV cache really costs
Muscle AI compiled the llama.cpp v1.0.0 tag from source on a 4-core machine with 8 GB of RAM, benchmarked a small Qwen2.5 model with the default and the new FP8 KV cache, and smoke-tested the hardened llama-server.
Typd: offline voice dictation where one fine-tuned Qwen3-ASR model in llama.cpp writes the finished text
Mehmet Dedeler built Typd, a GPL-3.0 Electron app for Windows and Apple-silicon Macs that runs a dictation model fine-tuned from Qwen3-ASR 1.7B in llama-server and pastes cleaned-up text into whatever app you're typing in.
Snakkie: a website chat penguin served by llama.cpp and SearXNG on a no-GPU Xeon VM
Dennis Hilk moved his site mascot Snakkie from canned answers to a Qwen3 1.7B model running in llama.cpp on his old Xeon server, with SearXNG for web lookups.
Yogurt: private meeting notes on your own computer with whisper.cpp and a local llama.cpp model
Eric built Yogurt, a free MIT-licensed desktop app that records calls without a bot joining, transcribes them with whisper.cpp and writes summaries with a local open-weight model.
smolmaxxing: 16B models on a 1 GB TV box and a 2013 iPad Air, and a 35B on a phone, with patched llama.cpp
Hyperion AI's open lab notebook shows how far a patched llama.cpp can push old, cheap devices by keeping popular experts in RAM and streaming the rest of a model from flash.
ge: a from-scratch Rust inference engine benchmarked against llama.cpp on a 4 GB laptop
Atharv Dusane wrote his own GGUF inference engine in Rust and compared it with llama.cpp on a Ryzen laptop with a 4 GB RTX 3050, reporting where it wins, ties and loses.
Tencent's DSpine drafter on a 3090: faster single-agent Qwen 27B in llama.cpp, slower when busy
Timothy Lewis rounded up llama.cpp numbers for Tencent's 2B DSpine speculative drafter in front of a local Qwen3.8-27B and explains when it helps and when it doesn't.
Bringing up vLLM and llama.cpp on a DGX Spark with the network fully blocked
Ashwin J.B. spent about a week getting vLLM, llama.cpp and a native backend to serve on an arm64 DGX Spark (GB10) with all outbound traffic blocked, and wrote down every error, its fix and the speeds he measured.
Predicting MoE experts for a 35B model on an 8 GB laptop, and why it didn't speed anything up
Oyama Mahiro built a lookup-table predictor for which experts a local Qwen3.6 35B MoE model needs next, wired it into llama.cpp, and found the hit rate rose while decode speed did not.
A custom inference engine for half a million tokens of context on a 24 GB MacBook
Marco Franzon built his own inference engine for Ternary Bonsai 2 27B, a 2-bit build of Qwen3.8-27B, and reports 500k context at 19 tok/s with 15 GB peak RAM on a 24 GB MacBook.
Running NVIDIA's looped Dory 4B on a CPU homelab with llama.cpp and an Ollama wrapper
Big Iron built NVIDIA's llama.cpp fork on a no-GPU Debian VM, measured Dory 1.0 4B at each loop count against Qwen3.5-4B, and got it running inside Ollama 0.40 through a wrapper around Ollama's internal llama-server.
Coding with a local Qwen 3.8 27B on a self-hosted NVR project: what worked and what didn't
Willy (Shimitar) used Open WebUI, OpenTerminal and llama.cpp running Qwen 3.8 27B to add RTSP streaming, themes and docs to his open-source camera viewer LazyNVR, and found it failed at big autonomous changes but excelled at small, tightly reviewed steps.
Re-benchmarking local GGUF models for a coding agent after a llama.cpp upgrade
Jordi Marçal re-ran his fixed coding-agent benchmark on seven local GGUF models after three weeks of llama.cpp updates, and found the harness's generation caps, not the models, explained a sudden score collapse.
Replacing Ollama with a llama.cpp router on a shared workstation GPU
A developer moved a busy single-GPU workstation (chat UI, agent, batch study-guide writer, embedders, classifiers) from Ollama to llama.cpp's router mode and measured throughput and embedding parity before switching.
Local PLaMo 3 Translate API plus a game diff-translator that keeps human edits
Tom's Go tools run PLaMo 3 Translate 0.8B via llama-server as a loopback HTTP API, then a second CLI retranslates only new or changed Godot strings while preserving manual and approved translations.
llama-sleep: park GPU models in RAM so llama-swap switches in about 2 seconds
On an RTX 3060 home server, Robert Zaage wraps llama-server so idle Gemma 4 models are cuda-checkpointed into host RAM; swaps behind llama-swap drop from 10.3 s to about 1.7–2.1 s with prompt cache intact.
plamo-tr-local: a pipeable CLI that runs PLaMo 3 Translate fully offline
Conao3's Rust CLI downloads a PLaMo 3 Translate GGUF once, builds the PFML3 prompt locally, and translates stdin or --text through llama.cpp with no API key; measured MIT-license translation on a Core Ultra 5 225U CPU.
Local AI Starter: a one-click Mac wizard that installs llama.cpp, Qwen3, and OpenCode in one folder
Kirill Lukyanov built an MIT-licensed double-click wizard that sizes a Mac’s RAM, downloads a pinned llama.cpp build plus a Qwen model and OpenCode, proves the model answers, then opens a sandboxed coding agent and browser chat.
A copy-paste path to a local OpenAI-compatible LLM endpoint with LM Studio, Ollama, or llama.cpp
Mikalai Karytka’s Nov 2026 guide walks through installing LM Studio’s lms CLI (plus Ollama and llama.cpp equivalents), sizing RAM for a quantized model, serving an OpenAI-compatible API, and checking tool-calling before you build agents on top.
Hob: an open-source desktop coworker that runs Gemma or gpt-oss locally with llama.cpp and works on your files
Christian at Frigade’s Show HN project Hob is a free MIT desktop app for Mac, Windows and Linux that picks an open-weight model for your hardware, runs it with llama.cpp, and can edit files, run sandboxed Python, search the web, and dictate — all on-device.
A homelab llama-server on Fedora that runs as a systemd service and swaps models on demand
A homelabber's notes on keeping llama.cpp's server running on a Fedora VM with a systemd user unit, a fixed LAN address and a models folder, with Open WebUI as the chat front end.
A Baroque music events calendar fed by a local Qwen agent on a home llama.cpp server
A data scientist serves small models with llama.cpp from a 16 GB RTX 4060 Ti box on his home network, and a LangChain agent on it finds upcoming concerts for his wife's Bavarian Baroque events calendar.
A small firm proofreads NDA-bound reports on its own 8-GPU llama.cpp rig with GLM 5.3
Jacques Mattheij's company can't send confidential due-diligence reports to a cloud AI without breaking its NDAs, so it built a ~$25K in-house GPU rig and proofreads them locally with open-weight models.
LM Studio vs Ollama on an RTX 5080: memory settings mattered more than the app
LK Wood IV ran LM Studio and Ollama on the same RTX 5080 with identical GGUF files and found the apps within 14% of each other, while one wrong offload or context setting cost up to 3.4x.
Letting a coding agent tune llama.cpp on an 8 GB AMD GPU: 3x faster prompt reading for OpenCode
Cliff K had his coding agent benchmark llama.cpp backends and flags for a Qwen3.6 35B MoE on a Radeon RX 6600 XT, at the context depths OpenCode really uses, and turned the process into an open-source skill.
Link Séance: a local Gemma 3 writes grounded epitaphs for the dead links in your bookmarks
Abdul AmberNeel built a command-line tool that checks every link in a bookmarks file, finds the last living Wayback Machine snapshot of dead ones, and has a local Gemma 3 write a two-sentence epitaph only from what the archive kept.
The Dogu Remembers: a 40-second short film made entirely with local models
unotchi made a 40-second film of a Jōmon clay figure speaking, with the script from a local Japanese Llama model in llama.cpp, the voice from GPT-SoVITS, the images rendered in Blender and the edit in ffmpeg.
Gemma 4 E2B quantization ladder on four GPUs, from a 4 GB GTX 1650 laptop to an RTX 3050
xbill ran nine quantizations of Gemma 4 E2B, BF16 down to Q2_K, through 250 GSM8K questions with llama.cpp on a 4 GB laptop GPU, an 8 GB desktop card and two cloud GPUs, and found Q5_K_M the best trade on every card.
Selective MoE offloading in llama.cpp on a 16 GB laptop GPU: faster for some models, much slower for others
Jessica Doering benchmarked five Mixture-of-Experts models too big for her 16 GB RTX 4090 laptop GPU, comparing llama.cpp's --n-cpu-moe expert offloading against plain layer offloading.
Ollama on an AMD Radeon: five silent ways it falls back to CPU
Marco Orta spent three weeks measuring Ollama on a 24 GB Radeon RX 7900 XTX across Windows, Linux and WSL2, and documented five failures that quietly cost speed or context without any error.
Quantizing the Ollama KV cache on a laptop: half the memory, slower replies
Steef-Jan Wiggers benchmarked f16, q8_0 and q4_0 KV caches for qwen3-coder:30b in Ollama on a Surface Laptop Ultra and found smaller caches saved memory and unlocked a 262K context, but decoded about a third slower.
Memoria: local Whisper and Gemma 3 4B turn a family voice memo into a keepsake
Jeffrey Turov built Memoria, an oral-history archivist that transcribes a family voice memo with Whisper and has Gemma 3 4B in llama.cpp pull out people, places, themes, verified quotes and follow-up questions, all on a local CPU.
Morning Sloth: Gemma 4 on an Arduino UNO Q triages Gmail overnight and shows one LED face
Muhammad Murtuza Hussain runs Gemma 4 E2B in llama.cpp on an Arduino UNO Q's own CPU to read his Gmail overnight and show whether anything needs him as a sloth face on the board's LED matrix.
Fine-tuning Gemma 4 E2B on an 8 GB RTX 3050 so it thinks less
xbill used one 8 GB RTX 3050 to have Gemma 4 E2B write its own training data, fine-tune itself through its served 4-bit weights and get graded on 250 held-out maths problems, the whole loop in 6 h 44 min.
Running a 14.4 GB Gemma 4 26B MoE on an 8 GB RTX 3050 with llama.cpp
A step-by-step llama.cpp setup that serves Gemma 4 26B A4B from an 8 GB RTX 3050 by keeping most expert layers in system RAM, reaching 131,072 tokens of context and scores level with the 12B that fits the card.
Home RAG assistant for embedded-systems docs on Proxmox
Ollama, llama.cpp, Open WebUI, BGE-M3 and SearXNG in a GPU-passthrough VM. Moving from 6 GB to 16 GB of VRAM changed which models could run.
Replacing Google Nest Minis with local Assist on llama.cpp
After a year of Nest Minis getting dumber, a household moved to fully local Assist. Higher-quant GGUF models from Hugging Face are what finally fixed tool calling.
Obsidian vault Q&A with Mini-RAG and llama.cpp
An Obsidian plugin that chats with a note or folder, using separate local llama.cpp servers for chat and embeddings (Ollama works too).
Offline LLM on a Raspberry Pi 5 for classification and extraction
Phi-3 mini at Q4_K_M runs at 4-6 tokens per second on an 8 GB Pi 5 with no network at all. Under GDPR, data that never leaves the board isn't transferred anywhere.
Offline chat on desktop or Android via Termux with Prefrontal
A privacy-first chat UI that works with Ollama on desktop or llama.cpp anywhere, including Android through Termux. No telemetry, no subscriptions.
Security camera descriptions and search with Frigate GenAI
Frigate sends camera frames to a local vision model (qwen3-vl via Ollama or llama.cpp) for searchable event descriptions, review summaries and chat.