local-llm-serving
Skill1 starsChanged 33 days agoMITView on GitHub
Plan and operate self-hosted LLM inference (vLLM, llama.cpp, Ollama, TGI) — GPU memory sizing, quantization, context length, concurrency, an OpenAI-compatible API and benchmarking. Use when choosing hardware or models for on-premise or private inference, or when a local model server is slow or runs out of memory.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- michielturmel-max/opencode-skillstheir own version, first seen Nov 16, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- michielturmel-max/opencode-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository105 other files it gives its agents.
- AGENTS.mdAGENTS.md
- instructions/AGENTS.mdAGENTS.md
- accessibility-reviewSkill
- agent-evaluationSkill
- agent-guardrailsSkill
- agenthub-routerSkill
- ai-red-teamingSkill
- ansible-reviewSkill
- api-designSkill
- api-integrationSkill
- architecture-decisionSkill
- backup-restoreSkill
- caching-strategySkill
- chaos-engineeringSkill
- ci-cd-pipeline-designSkill
- cloud-cost-optimizationSkill
- cloud-iam-least-privilegeSkill
- code-reviewSkill
- container-image-optimizationSkill
- cyber-resilience-actSkill
- database-migrationsSkill
- data-pipeline-reviewSkill
- data-privacySkill
- data-quality-checksSkill
- debugging-root-causeSkill
- dependency-auditSkill
- dependency-upgradeSkill
- disaster-recovery-drillSkill
- docker-hardeningSkill
- documentationSkill
- dora-readinessSkill
- dpiaSkill
- email-deliverabilitySkill
- embedding-model-selectionSkill
- error-handling-reviewSkill
- eu-ai-act-readinessSkill
- eu-data-sovereigntySkill
- european-accessibility-actSkill
- event-driven-architectureSkill
- feature-flagsSkill
- frontend-reviewSkill
- gdpr-dsar-handlingSkill
- github-actionsSkill
- gitlab-ciSkill
- git-workflowSkill
- go-developmentSkill
- graphql-api-reviewSkill
- helm-chart-reviewSkill
- i18n-localizationSkill
- incident-responseSkill
- java-spring-reviewSkill
- kubernetes-reviewSkill
- linux-server-hardeningSkill
- llm-cost-analysisSkill
- llm-gateway-routingSkill
- llm-observabilitySkill
- llm-output-evaluationSkill
- llm-structured-extractionSkill
- load-testingSkill
- log-analysisSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
If it does not fit: quantize weights, use an FP8 KV cache where supported, reduce the maximum context length, lower concurrency, or use a …
- Distinctive: line 47
Check model licences and acceptable-use terms.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Local LLM Serving
Goal
A private inference endpoint whose capacity, latency and quality are measured, sized for real workloads and secured like any other internal API.
Inputs
- Candidate models with parameter counts and licences, required context length, expected concurrent users and tokens per request.
- Hardware: GPU model and VRAM, CPU RAM, disk; drivers and container runtime support (for example NVIDIA Container Toolkit).
Sizing VRAM
- Weights ≈ parameters × bytes per parameter: FP16/BF16 = 2, FP8/INT8 = 1, 4-bit (AWQ, GPTQ, Q4 GGUF) ≈ 0.5–0.6. An 8B model needs about 16 GB in FP16 and about 5–6 GB in 4-bit.
- KV cache per token ≈ 2 × layers × KV heads × head dimension × bytes. Example: a model with 32 layers, 8 KV heads (grouped-query attention) and head dimension 128 in FP16 needs 2 × 32 × 8 × 128 × 2 B = 128 KiB per token, so 8 192 tokens ≈ 1 GiB per sequence.
- Total ≈ weights + KV cache × concurrent sequences + runtime overhead (activations, CUDA graphs; reserve 10–20 %).
- If it does not fit: quantize weights, use an FP8 KV cache where supported, reduce the maximum context length, lower concurrency, or use a smaller model.
Procedure
- Pick the engine: vLLM or TGI for multi-user GPU serving (continuous batching, paged attention); llama.cpp or Ollama for single-user, CPU or mixed CPU/GPU setups and GGUF models.
- Configure explicitly, for example for vLLM:
--max-model-len,--gpu-memory-utilization,--max-num-seqs, quantization and the served model name; pin the image version and model revision (commit hash). - Expose an OpenAI-compatible API behind authentication (gateway or API keys) and TLS; never expose the raw inference port to the internet.
- Benchmark with realistic prompt and output lengths: time to first token, output tokens per second per user, total throughput, and p95 latency at 1, 4 and 16 concurrent users; watch GPU memory and utilisation.
- Evaluate quality of quantized versus full-precision models on your own tasks (see
llm-output-evaluation); quantization effects are task-dependent. - Operate: health checks, a restart policy, GPU metrics (DCGM or nvidia-smi exporter), request logs without prompt contents unless approved, model files on persistent storage, and a planned procedure for driver updates.
Example fixture
GPU: 16 GB. Model: 8B, FP16 weights 16 GB → does not fit with any KV cache.
Option A: AWQ 4-bit (~5.5 GB) + 8k context × 6 sequences (~6 GiB KV) + overhead → fits with margin.
Option B: FP8 weights (~8.5 GB) + 4k context × 4 sequences (~2 GiB) → fits; benchmark both and compare quality.Acceptance checks
- The sizing calculation is documented and matches the observed memory use within about 15 %.
- Benchmarks report TTFT, tokens per second and p95 latency at stated concurrency and prompt sizes.
- The endpoint requires authentication; the inference port is not publicly reachable (negative test).
- The model licence permits the intended use.
Output
Sizing sheet, deployment configuration, benchmark and quality results, and an operations checklist.
Safety
Check model licences and acceptable-use terms. Prompts may contain sensitive data: restrict access to logs and the GPU host as you would for production databases.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

