Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ajayrajan05-llama-cpp
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
llama-cpp- Description
- llama.cpp local GGUF inference + HF Hub model discovery.
- License
- MIT
- Instructions
- 238 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (7)
- SKILL.md
- advanced-usage.md · references/
- hub-discovery.md · references/
- optimization.md · references/
- quantization.md · references/
- server.md · references/
- troubleshooting.md · references/
SKILL.md (first lines)
# llama.cpp + GGUF
Use this skill for local GGUF inference, quant selection, or Hugging Face repo discovery for llama.cpp.
## When to use
- Run local models on CPU, Apple Silicon, CUDA, ROCm, or Intel GPUs
- Find the right GGUF for a specific Hugging Face repo
- Build a `llama-server` or `llama-cli` command from the Hub
- Search the Hub for models that already support llama.cpp
- Enumerate available `.gguf` files and sizes for a repo
- Decide between Q4/Q5/Q6/IQ variants for the user's RAM or VRAM
## Model Discovery workflow
Prefer URL workflows before asking for `hf`, Python, or custom scripts.
1. Search for candidate repos on the Hub:
- Base: `https://huggingface.co/models?apps=llama.cpp&sort=trending`
- Add `search=<term>` for a model family
- Add `num_parameters=min:0,max:24B` or similar when the user has size constraints
2. Open the repo with the llama.cpp local-app view:
- `https://huggingface.co/<repo>?local-app=llama.cpp`
3. Treat the local-app snippet as the source of truth when it is visible:
- copy the exact `llama-server` or `llama-cli` command
- report the recommended quant exactly as HF shows it
4. Read the same `?local-app=llama.cpp` URL as page text or HTML and extract the section under `Hardware compatibility`:
- prefer its exact quant labels and sizes over generic tables
- keep repo-specific labels such as `UD-Q4_K_M` or `IQ4_NL_XL`
- if that section is not visible in the fetched page source, say so and fall back to the tree API plus generic quant guidance
5. Query the tree API to confirm what actually exists:
- `https://huggingface.co/api/models/<repo>/tree/main?recursive=true`
- keep entries where `type` is `file` and `path` ends with `.gguf`
- use `path` and `size` as the source of truth for filenames and byte sizes
- separate quantized checkpoints from `mmproj-*.gguf` projector files and `BF16/` shard files
- use `https://huggingface.co/<repo>/tree/main` only as a human fallback
6. If the local-app snippet is not text-visible, reconstruct the command from the repo plus the chosen quant:
- shorthand quant selection: `llama-server -hf <repo>:<QUANT>`
- exact-file fallback: `llama-server --hf-repo <repo> --hf-file <filename.gguf>`
7. Only suggest conversion from Transformers weights if the repo does not already expose GGUF files.
## Quick start
### Install llama.cpp
```bash
# macOS / Linux (simplest)
brew install llama.cpp
```
```bash
winget install llama.cpp
```
```bash
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp
cmake -B build
cmake --build build --config Release
```
### Run directly from the Hugging Face Hub
```bash
llama-cli -hf bartowski/Llama-3.2-3B-Instruct-GGUF:Q8_0
```
```bash
llama-server -hf bartowski/Llama-3.2-3B-Instruct-GGUF:Q8_0
```
### Run an exact GGUF file from the Hub
Use this when the tree API shows custom file naming or the exact HF snippet is missing.
```bash
llama-server \
--hf-repo microsoft/Phi-3-mini-4k-instruct-gguf \
--hf-file Phi-3-mini-4k-instruct-q4.gguf \
-c 4096
```
### OpenAI-compatible server check
```bash
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"messages": [
{"role": "user", "content": "Write a limerick about Python exceptions"}
]
}'
```
## Python bindings (llama-cpp-python)
`pip install llama-cpp-python` (CUDA: `CMAKE_ARGS="-DGGML_CUDA=on" pip install llama-cpp-python --force-reinstall --no-cache-dir`; Metal: `CMAKE_ARGS="-DGGML_METAL=on" ...`).
### Basic generation
```python
from llama_cpp import Llama
llm = Llama(
model_path="./model-q4_k_m.gguf",
n_ctx=4096,
n_gpu_layers=35, # 0 for CPU, 99 to offload everything
n_threads=8,
)
out = llm("What is machine learning?", max_tokens=256, temperature=0.7)
print(out["choices"][0]["text"])
```
### Chat + streaming
```python
llm = Llama(
model_path="./model-q4_k_m.gguf",From AjayRajan05/VoiceOS, MIT.
More from AjayRajan05/VoiceOS
- 0.536score
maps
AjayRajan05
Geocode, POIs, routes, timezones via OpenStreetMap/OSRM.
SkillCFreshness: C★ 10Claude Code +9 - 0.535score
serving-llms-vllm
AjayRajan05
vLLM: high-throughput LLM serving, OpenAI API, quantization.
SkillCFreshness: C★ 10Claude Code +9 - 0.534score
voiceos-platform
AjayRajan05
Configure, extend, and operate VoiceOS as a voice-first agent OS.
SkillCFreshness: C★ 10Claude Code +9 - 0.534score
huggingface-hub
AjayRajan05
HuggingFace hf CLI: search/download/upload models, datasets.
SkillCFreshness: C★ 10Claude Code +9 - 0.532score
google-workspace
AjayRajan05
Gmail, Calendar, Drive, Docs, Sheets via gws CLI or Python.
SkillCFreshness: C★ 10Claude Code +9 - 0.532score
segment-anything-model
AjayRajan05
SAM: zero-shot image segmentation via points, boxes, masks.
SkillCFreshness: C★ 10Claude Code +9 - 0.531score
nano-pdf
AjayRajan05
Edit PDF text/typos/titles via nano-pdf CLI (NL prompts).
SkillCFreshness: C★ 10Claude Code +9 - 0.531score
obsidian
AjayRajan05
Read, search, create, and edit notes in the Obsidian vault.
SkillCFreshness: C★ 10Claude Code +9 - 0.531score
airtable
AjayRajan05
Airtable REST API via curl.
SkillCFreshness: C★ 10Claude Code +9
Signals
- Stars
- 10
- Forks
- 4
- Open issues
- 0
- Last commit (this folder)
- Jul 1, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/AjayRajan05/VoiceOS
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from AjayRajan05
- 0.536score
maps
AjayRajan05
Geocode, POIs, routes, timezones via OpenStreetMap/OSRM.
SkillCFreshness: C★ 10Claude Code +9 - 0.535score
serving-llms-vllm
AjayRajan05
vLLM: high-throughput LLM serving, OpenAI API, quantization.
SkillCFreshness: C★ 10Claude Code +9 - 0.534score
voiceos-platform
AjayRajan05
Configure, extend, and operate VoiceOS as a voice-first agent OS.
SkillCFreshness: C★ 10Claude Code +9 - 0.534score
huggingface-hub
AjayRajan05
HuggingFace hf CLI: search/download/upload models, datasets.
SkillCFreshness: C★ 10Claude Code +9 - 0.532score
google-workspace
AjayRajan05
Gmail, Calendar, Drive, Docs, Sheets via gws CLI or Python.
SkillCFreshness: C★ 10Claude Code +9 - 0.532score
segment-anything-model
AjayRajan05
SAM: zero-shot image segmentation via points, boxes, masks.
SkillCFreshness: C★ 10Claude Code +9
Cite this page
llama-cpp skill. Agent Mart. https://agentmart.dev/skills/ajayrajan05-llama-cpp (last updated 2026-10-24)