llama-cpp

Run GGUF-quantized LLM inference on CPU and non-NVIDIA GPUs.

Updated Sep 1, 2021
One-click install
npx skills add https://github.com/unclehowell/unclehowell --skill llama-cpp-unclehowell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llama-cpp
Source: https://github.com/unclehowell/unclehowell/tree/main/skills/mlops/inference/llama-cpp
Command: npx skills add https://github.com/unclehowell/unclehowell --skill llama-cpp-unclehowell

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enables local and edge deployment of large language models when CUDA/NVIDIA hardware is unavailable, removing the dependency on datacenter GPUs and simplifying on-device inference.

Core Features & Use Cases

  • CPU and Apple Silicon Support: Optimized builds and Metal acceleration for M1/M2/M3/M4 Macs.
  • Non‑NVIDIA GPU Support: ROCm/HIP guidance for AMD and instructions for Intel GPUs and BLAS acceleration.
  • GGUF Quantization & Conversion: Recommendations and workflows for 1.5–8 bit GGUF quantization to reduce memory and increase throughput.
  • Server & Batch Deployment: OpenAI-compatible server mode, Docker deployment, monitoring, and load balancing for production inference.
  • Use Case: Run a GGUF-quantized Llama 2 7B model on an M3 Mac as a private assistant without any CUDA dependency.

Quick Start

Use the llama-cpp skill to run a GGUF-quantized Llama 2 7B model interactively on your local machine.

Frequently Asked Questions about llama-cpp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run LLM inference on Apple Silicon without CUDA?

Run LLM inference on Apple Silicon without CUDA by using optimized llama.cpp binaries with Metal acceleration for M1/M2/M3/M4 Macs. You need a GGUF-quantized model and appropriate threading configurations to enable efficient local model serving.

Can I use llama.cpp for AMD GPU inference with ROCm?

Yes, you can use llama.cpp for AMD GPU inference with ROCm/HIP guidance. It enables local LLM deployment on non-NVIDIA hardware, removing the dependency on datacenter GPUs and allowing interactive chat or batch processing on AMD systems.

What is GGUF quantization and when do I need it for local LLM deployment?

GGUF quantization reduces model memory requirements and increases throughput by converting weights to 1.5–8 bit formats. You need it for local LLM deployment on CPU or non-NVIDIA GPUs where memory is limited and CUDA acceleration is unavailable.

How do I set up an OpenAI-compatible server using llama.cpp?

Set up an OpenAI-compatible server using llama.cpp by configuring its server mode with your GGUF-quantized models. This enables production inference with Docker deployment, monitoring, and load balancing for local and edge environments without CUDA.

Does llama.cpp work on embedded devices and edge environments?

Yes, llama.cpp works on embedded devices and edge environments by running LLM inference on CPU and non-NVIDIA GPUs. It requires GGUF-quantized models and appropriate OpenBLAS or threading configurations to achieve efficient on-device serving.