Who it is forA local AI user whose model loads slowly or runs out of memory.
The problemDefault settings may leave the GPU idle or overflow its memory on long chats.
The outcomeA launch command tuned to your hardware, with vision support if you add an mmproj file.
What you need first
- The KoboldCpp executable for Windows, Linux or macOS from the latest release (no installation required)
- A GGUF text model downloaded separately, for example from Hugging Face
- Optional: a GPU for offloading layers; the model size and context length decide how much memory you need
Steps
- List every option with
./koboldcpp-linux-x64 --help - Set GPU offload with
--gpulayers Nand the context length with--contextsize N - Add
--mmproj /path/to/mmproj.ggufnext to a compatible vision model for image understanding - On Apple silicon built from source, run
python3 koboldcpp.py --model /path/to/model.gguf --gpulayers -1
Prompt for your agent
Using LostRuins/koboldcpp, run `./koboldcpp-linux-x64 --help`, then launch <my model> with a `--gpulayers N` value and a `--contextsize N` value that fit <my GPU memory>, and report load time and whether it stayed in memory.
Caveat. A dedicated GPU is optional; if the binaries do not run on your hardware the README points to building from source.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for LostRuins/koboldcpp and "Fit a bigger model on your GPU with offload flags"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer