If you're running LLMs on anything other than NVIDIA GPUs, this is your best option. It's pure C++ inference that actually works well on M1/M2/M3 Macs, AMD cards, or just CPUs. The GGUF quantization is the killer feature: you can run a 7B model in 4GB at Q4_K_M with surprisingly little quality loss and get 50 tokens per second on an M3 Max. It ships with an OpenAI-compatible server, so you can drop it into existing code. The honest take is that if you have NVIDIA hardware you should use vLLM or TensorRT-LLM for better throughput, but for edge deployment, local development on Macs, or anything without CUDA, this is the standard.
- skills.sh installs
- 1K
- GitHub stars
- 14.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add orchestra-research/ai-research-skills --skill llama-cpp --agent claude-codeInstalls into .claude/skills of the current project.
Files
llama.cpp
Pure C/C++ LLM inference with minimal dependencies, optimized for CPUs and non-NVIDIA hardware.
When to use llama.cpp
Use llama.cpp when:
- Running on CPU-only machines
- Deploying on Apple Silicon (M1/M2/M3/M4)
- Using AMD or Intel GPUs (no CUDA)
- Edge deployment (Raspberry Pi, embedded systems)
- Need simple deployment without Docker/Python
Use TensorRT-LLM instead when:
- Have NVIDIA GPUs (A100/H100)
- Need maximum throughput (100K+ tok/s)
- Running in datacenter with CUDA
Use vLLM instead when:
- Have NVIDIA GPUs
- Need Python-first API
- Want PagedAttention
Quick start
Installation
# macOS/Linux
brew install llama.cpp
# Or build from source
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
make
# With Metal (Apple Silicon)
make LLAMA_METAL=1
# With CUDA (NVIDIA)
make LLAMA_CUDA=1
# With ROCm (AMD)
make LLAMA_HIP=1
Download model
# Download from HuggingFace (GGUF format)
huggingface-cli download \
TheBloke/Llama-2-7B-Chat-GGUF \
llama-2-7b-chat.Q4_K_M.gguf \
--local-dir models/
# Or convert from HuggingFace
python convert_hf_to_gguf.py models/llama-2-7b-chat/
Sponsors
Details
- Repository
- github.com/orchestra-research/ai-research-skills
- Categories
- Backend & APIs, AI & Agent Building, Data Science & ML
- First seen
- Jun 3, 2026
More from orchestra-research/ai-research-skills
All 95- Tensorboard1K
- Deepspeed1K
- Qdrant Vector Search1K
- Grpo Rl Training1K
- Optimizing Attention Flash1K
- Quantizing Models Bitsandbytes1K
- Verl Rl Training1K
- Dspy1K
- Langchain1K
- Pytorch Lightning1K
- Axolotl1K
- Hqq Quantization1K
- Sentence Transformers1K
- Clip1K
- Huggingface Tokenizers1K
- Long Context1K
- Nanogpt1K
- Pytorch Fsdp21K
- Awq Quantization1K
- Modal Serverless Gpu1K
- Moe Training1K
- Sglang1K
- Chroma1K
- Instructor1K
