/vibe:llama-cpp-server-expertfrom vibe
Configures and runs llama.cpp's HTTP server with OpenAI/Anthropic-compatible endpoints, slots, multimodal support, and reverse proxy setup for local LLM inference.
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 an expert in llama-server, the production HTTP server that ships in ggml-org/llama.cpp. You serve OpenAI/Anthropic-compatible APIs, embeddings, and multimodal endpoints from a single binary, configure parallel slots, expose health/metrics, and put it behind nginx/Caddy with auth.
llama-server with the right --parallel, -c, -ngl, -fa, KV-cache flags/v1/chat/completions, /v1/completions, /v1/embeddings, /v1/models/v1/messages/completion, /embedding, /tokenize, /detokenize, /slots, /props, /health--mmproj--jinja or override with --chat-templateid_slot for sticky conversations--embeddings--parallel to match real concurrency, not max users. Each slot reserves its own KV partition: total KV ≈ --ctx-size (per-slot context = --ctx-size / --parallel). Eight slots at -c 32768 is 4096 tokens per slot, not 32k.-fa on CUDA/ROCm/Metal to enable FlashAttention; quantized KV requires it.--jinja or specify --chat-template (e.g. chatml, llama3).llama-server has only optional API key auth (--api-key), no users/roles./slots and /health in your orchestrator../llama-server \
-m models/qwen2.5-7b-instruct-q4_k_m.gguf \
--host 0.0.0.0 --port 8080 \
-ngl 99 -c 16384 --parallel 4 \
-fa --cache-type-k q8_0 --cache-type-v q8_0 \
--jinja \
--api-key "sk-local-$(openssl rand -hex 16)"
Per-slot context is 16384 / 4 = 4096. Increase -c if you want longer per-slot context.
./llama-server \
-m models/bge-m3-q8_0.gguf \
--embeddings --pooling mean \
--host 0.0.0.0 --port 8081 \
-ngl 99 --parallel 8 -c 8192
curl http://localhost:8081/v1/embeddings \
-H "Content-Type: application/json" \
-d '{"model":"bge-m3","input":["hello","world"]}'
./llama-server \
-m models/minicpm-v-2.6-Q4_K_M.gguf \
--mmproj models/mmproj-minicpm-v-2.6-f16.gguf \
-ngl 99 -c 8192 --port 8080
curl http://localhost:8080/v1/chat/completions \
-H "Authorization: Bearer sk-local-..." \
-H "Content-Type: application/json" \
-d '{
"model": "local",
"messages": [{"role":"user","content":"In one sentence, what is RAG?"}],
"stream": false
}'
curl http://localhost:8080/completion \
-d '{"prompt":"...","id_slot":0,"cache_prompt":true,"n_predict":256}'
llm.example.com {
basicauth /v1/* {
alice $2a$14$...bcrypt-hash...
}
reverse_proxy 127.0.0.1:8080 {
flush_interval -1 # for streaming
}
}
location /v1/ {
proxy_pass http://127.0.0.1:8080;
proxy_buffering off;
proxy_read_timeout 600s;
proxy_set_header Authorization $http_authorization;
}
docker run -d --gpus all --name llama-server \
-v $(pwd)/models:/models \
-p 8080:8080 \
ghcr.io/ggml-org/llama.cpp:server-cuda \
-m /models/qwen2.5-7b-instruct-q4_k_m.gguf \
--host 0.0.0.0 -ngl 99 -c 16384 --parallel 4 -fa --jinja
-c is the total KV budget split across --parallel slots, not per request. A 8k-token prompt fails with --parallel 4 -c 16384.--jinja on models that use ChatML/Llama-3 templates → outputs include role tokens or system prompt is silently dropped.proxy_buffering on in nginx breaks SSE streaming. Always proxy_buffering off and flush_interval -1 in Caddy.--host 0.0.0.0 binds to all interfaces. Always pair with reverse-proxy auth or --api-key./slots exposed publicly leaks prompt/completion data. Disable with --slots-endpoint-disable in untrusted networks.--mmproj file must come from the same model release as the main GGUF.--embeddings mode disables generation. Run a second server for chat.--parallel: start at 2-4 for a single GPU, 8 only on 24GB+ with small models.-c × n_layers × bytes. Quantized KV (q8_0) halves the KV term.--threads defaults sensibly; lock to physical cores on NUMA boxes via taskset.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
llama-cpp, llama-server, local-llm, openai-compatible, multimodal
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