Skill · DevOps & Homelab
Local GPU & Inference Ops
Size GGUF quants to VRAM, tune llama.cpp/Ollama context windows, debug GBNF tool grammars, and register multi-GPU boxes under Prometheus backends:.
Core
Markdown only · quarantined draft
Local 7B+
MIT
gpullama-cppollamagbnfvrambackends
How to use
Pure Markdown procedure — zero executable code bundled. Inspect the full source below, then drop it into your Prometheus skills directory (or promote it from SkillDraftStore once oara hub install ships).
Install
# Copy-in path on your Prometheus host: mkdir -p ~/.prometheus/skills/local-gpu-ops # Save the raw SKILL.md below as ~/.prometheus/skills/local-gpu-ops/SKILL.md # Upcoming CLI command: oara hub install skills/local-gpu-ops
Honest disclosures
- First-party OAra skill — pure Markdown operational guide, zero bundled code.
- Never modifies server configs without explicit operator approval.
Inspect raw source (skills/local-gpu-ops/SKILL.md)
---
name: local-gpu-ops
description: Size GGUF quantizations to VRAM, tune llama.cpp / Ollama context windows, debug Model Adapter GBNF grammars, and configure Prometheus multi-GPU backends.
license: MIT
tier: tool_search
---
<!-- Provenance: https://github.com/OAraLabs/hub | skills/local-gpu-ops/SKILL.md | MIT -->
# Local GPU & Inference Operations for Prometheus
Use this workflow when setting up, sizing, or troubleshooting local inference boxes (`llama.cpp`, `Ollama`, `vLLM`, `LM Studio`) behind Prometheus.
## 1. VRAM & Quantization Sizing (Rule of Thumb)
Reserve headroom for KV cache + OS/display before picking a quant:
| Available VRAM | Practical Sweet Spot | Suggested Context Window |
|---|---|---|
| 8–12 GB | 7B–9B at Q4_K_M / Q5_K_M | 16K–24K |
| 16 GB | 9B–14B at Q4_K_M | 24K–32K |
| 24 GB | 14B at Q8_0 or 27B–32B at Q4_K_M | 32K–64K |
| 48 GB+ | 32B at Q8_0 or 70B at Q4_K_M | 64K–128K |
- Check actual VRAM and hardware state via Prometheus's `anatomy` tool (`ANATOMY.md`) before recommending a model swap.
- Never assume a server's advertised context window fits in VRAM without checking KV-cache usage.
## 2. Multi-GPU Backend Registry (`prometheus.yaml`)
Register each inference box once under `backends:` so slash commands (`/gpu`, `/mini`), Beacon's model picker, and fallback chains stay in sync:
```yaml
backends:
gpu:
provider: llama_cpp
base_url: http://gpu-box:8080
mini:
provider: ollama
base_url: http://localhost:11434
model: qwen2.5:14b-instruct
models: [qwen2.5:14b-instruct, qwen2.5:7b-instruct]
```
- Run `/backends refresh` to force a live probe (model, context window, vision support, latency).
- Remember Prometheus never restarts or swaps a `llama-server` process remotely—one `llama-server` process serves one GGUF.
## 3. Model Adapter & GBNF Debugging
- **Cloud APIs** (`anthropic`, `openai`, etc.): `tier: off` / `strictness: NONE`.
- **Native tool-calling local models** (Qwen 2.5+, Gemma 4 in `model_registry.yaml`): `tier: light` (GBNF on if server isn't parsing natively, structural invariants checked).
- **Weaker open models**: set `strictness: STRICT` or `tier: full` for 4-stage extraction, auto-repair, and schema-error retries.
- Verify real improvement using the SHA-pinned Model Ladder (`scripts/ladder_run.py`) rather than ad-hoc prompts.