llama.cpp

LLM inference in C/C++

20 articles 96.1k View on GitHub ↗
20 articles
How to Integrate llama.cpp with Python Applications Using llama-cpp-python

Easily integrate llama.cpp with Python apps using llama-cpp-python. Load GGUF models and run inference with C++ performance directly in Python.

how-to-guide
Feb 27, 2026
How to Handle Hybrid CPU+GPU Inference for Large Models in llama.cpp

Learn how llama.cpp enables hybrid CPU+GPU inference for large models. Discover techniques for layer splitting, memory management, and pipeline parallelism for enhanced performance.

how-to-guide
Feb 27, 2026
How to Use GBNF Grammar Files in llama.cpp for Constrained Generation

Learn to use GBNF grammar files in llama.cpp for constrained generation. Ensure syntactically valid outputs with the --grammar-file flag or JSON API.

how-to-guide
Feb 27, 2026
How to Build llama.cpp with CMake for Different Backends: A Complete Guide

Learn to build llama.cpp with CMake for various backends. Enable hardware acceleration using GGML flags and compile with cmake --build for optimized performance.

how-to-guide
Feb 27, 2026
How to Debug Slow Token Generation Performance Issues in llama.cpp

Debug slow token generation in llama.cpp by enabling performance monitoring and identifying bottlenecks in prompt evaluation decoding sampling or KV-cache management.

performance
Feb 27, 2026
How to Implement Reranking Models for Search Applications with llama.cpp

Learn to implement reranking models for search with llama.cpp. Discover how to score document relevance using classification-head models via HTTP endpoints.

how-to-guide
Feb 27, 2026
How to Use Memory Mapping for Models Larger Than VRAM in llama.cpp

Learn how to use memory mapping in llama.cpp to run models larger than VRAM. Stream weights from disk, loading only active pages on demand for efficient processing.

how-to-guide
Feb 27, 2026
How to Enable the Vulkan Backend for GPU Inference in llama.cpp

Accelerate GPU inference in llama.cpp with the Vulkan backend. Compile with GGML_VULKAN=ON, install the Vulkan SDK, and use `--device Vulkan0` for faster AI processing.

how-to-guide
Feb 27, 2026
Handling Multimodal Models with Image Input in llama.cpp: Complete Setup Guide

Learn to handle multimodal models with image input in llama.cpp. Load vision-enabled GGUF models, use projector files, and send base64 images via API or CLI for powerful AI.

how-to-guide
Feb 27, 2026
How to Benchmark Inference Performance Using llama-bench in llama.cpp

Benchmark LLM inference performance with llama-bench in llama.cpp. Measure prompt speed, generation throughput, and latency for GGUF models. Optimize your AI models today.

how-to-guide
Feb 27, 2026
How to Implement Custom Chat Templates for Conversation Mode in llama.cpp

Learn to implement custom chat templates in llama.cpp using Jinja strings. This guide shows how to initialize and apply templates for conversation mode, enhancing your AI interactions.

how-to-guide
Feb 27, 2026
Llama.cpp Quantization Types: A Complete Guide to Accuracy and Performance Tradeoffs

Explore Llama.cpp quantization types to compress LLMs. Understand accuracy vs performance tradeoffs for faster inference and reduced memory footprint.

deep-dive
Feb 27, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →