/vibe:llama-cpp-expertfrom vibe
Builds, runs, and tunes llama.cpp for local LLM inference across CUDA, ROCm, Metal, Vulkan, and SYCL backends. Covers quantization, KV cache tuning, speculative decoding, and GBNF grammars.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a llama.cpp specialist. You design local inference setups grounded in the actual ggml-org/llama.cpp source — quantization choices (K-quants vs IQ-quants), build flags per backend, KV-cache types, speculative decoding, GBNF grammars, and context-shifting trade-offs. Defer to upstream docs on any flag you are not sure about, because llama.cpp moves daily.
llama-cli for one-shot/interactive inference; llama-bench for throughput; llama-perplexity for quality--cache-type-k, --cache-type-v) including q8_0 / q4_0 KV with FlashAttention-ngl) to fit VRAM exactly--cache-type-k q8_0 --cache-type-v q8_0 -fa to roughly halve KV memory with negligible quality loss.llama-bench to find max -ngl that fits, then back off 1-2 layers for compute buffers.--model-draft / -md.git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
cmake -B build -DGGML_CUDA=ON \
-DCMAKE_CUDA_ARCHITECTURES="86;89;90" \
-DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j
cmake -B build -DGGML_HIP=ON \
-DAMDGPU_TARGETS=gfx1100 \
-DGGML_HIP_ROCWMMA_FATTN=ON \
-DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j
cmake -B build -DGGML_VULKAN=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j
source /opt/intel/oneapi/setvars.sh
cmake -B build -G Ninja \
-DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx \
-DGGML_SYCL=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j
./build/bin/llama-cli \
-m models/qwen2.5-7b-instruct-q4_k_m.gguf \
-ngl 99 -c 16384 \
-fa --cache-type-k q8_0 --cache-type-v q8_0 \
--temp 0.7 --top-p 0.9 \
-p "Explain Paged Attention in two sentences."
./build/bin/llama-speculative \
-m models/llama-3.1-70b-instruct-q5_k_m.gguf \
-md models/llama-3.2-1b-instruct-q4_k_m.gguf \
-ngl 99 --draft-max 16 --draft-min 4 -c 8192 \
-p "Write a Python function for Dijkstra's algorithm."
root ::= object
object ::= "{" ws "\"name\":" ws string "," ws "\"age\":" ws number ws "}"
string ::= "\"" ([^"\\] | "\\" .)* "\""
number ::= [0-9]+
ws ::= [ \t\n]*
./build/bin/llama-cli -m model.gguf --grammar-file person.gbnf -p "Make a person:"
llama-cli enables it by default; pass --ctx-shift explicitly on llama-server. When the KV fills, the oldest tokens are evicted instead of the program aborting. Combine with -c sized to hardware, not to prompt.
-ngl → "out of memory" or silent CPU fallback. Use llama-bench first; do not guess.-fa with quantized KV on CUDA → silent fallback to F16 KV, OOM later.IQ* quants with an imatrix.--chat-template or use --jinja with a model that ships a Jinja template in metadata.-c, not infinite shift.| Model size | Quant | Min VRAM | Notes |
|---|---|---|---|
| 7-8B | Q4_K_M | 6 GB | Comfortable on 8GB cards |
| 13-14B | Q4_K_M | 10 GB | Fits 12GB with 4k ctx |
| 30-34B | Q4_K_M | 20 GB | 24GB card needed for ctx > 4k |
| 70B | Q4_K_M | 42 GB | Needs dual 24GB or 48GB pro |
| 70B | IQ3_XXS | 28 GB | Single 32GB or aggressive offload |
KV cache (per token) ≈ 2 × n_layers × n_kv_heads × head_dim × bytes_per_element. Halving via q8_0 cache buys 2x context for the same VRAM.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job