local-inference
Local LLM inference setup and optimization for agentic workflows. vLLM primary backend, hardware-adaptive VRAM budgeting, model selection for tool-calling, LiteLLM proxy wiring, and AOS task-routing policy. Part of AOS Stack plugin. Use for vLLM, VRAM, quantization, model selection, LiteLLM config, or local executor setup.
- License 许可
- MIT
- 所属仓库
- dasobral/skills
- 最近更新
- 2026-08-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- local-inference
- description
- Local LLM inference setup and optimization for agentic workflows. vLLM primary backend, hardware-adaptive VRAM budgeting, model selection for tool-calling, LiteLLM proxy wiring, and AOS task-routing policy. Part of AOS Stack plugin. Use for vLLM, VRAM, quantization, model selection, LiteLLM config, or local executor setup.
02 资源文件 6
- 参考文档references/model-registry.md3.6 KB
- 参考文档references/modern-inference-guide.md2.0 KB
- 参考文档references/vram-budget.md3.7 KB
- 其他SKILL.md.tmpl11.4 KB
- 参考文档templates/litellm-config.yaml3.0 KB
- 脚本templates/vllm-launch.sh3.0 KB
03 SKILL.md 正文
Local Inference
Expert guidance on local LLM inference for agentic orchestration systems.
Step 1 — Classify Request
| Category | Examples |
|---|---|
| Model selection | Which model fits? Best for tool calling? |
| Backend setup | vLLM install, LiteLLM proxy |
| VRAM sizing | Context window, quantization trade-offs |
| Task routing | Local vs cloud for a workload |
| Troubleshooting | OOM, malformed tool calls, latency spikes |
Step 2 — Detect Hardware
Run nvidia-smi (or ask user for VRAM budget). Read
references/modern-inference-guide.md and references/vram-budget.md.
Never recommend a model without explicit VRAM calculation including KV cache.
Step 3 — Backend Rules
- vLLM for anything agentic (tool calling, multi-turn)
- Ollama for experiments only — warn on unreliable tool loops
- Never run multiple large models simultaneously on one GPU
Recommended vLLM launch:
vllm serve <model> \
--max-model-len <fit-to-vram> \
--gpu-memory-utilization 0.90 \
--dtype auto \
--served-model-name <alias>
Step 4 — Model Selection
Use references/model-registry.md. Key rules:
- 8B models: single-step or human-supervised only
- 14B Q4: reliable for ≤3 sequential tool calls
- Reasoning/planning: cloud orchestrator (Opus/Sonnet/Composer class)
Step 5 — AOS Integration
LiteLLM config template: templates/litellm-config.yaml
Launch script: templates/vllm-launch.sh
Local tasks must be atomic with deterministic output — no chain-of-thought.
Step 6 — Troubleshoot
| Symptom | Likely cause | Fix |
|---|---|---|
| 2–5× latency | GPU spillage | Reduce --max-model-len |
| OOM on startup | VRAM exceeded | Smaller quant or shorter context |
| Malformed tools | Wrong model/backend | vLLM + tool-tuned model |
| Tools fail at step 3+ | Model too small | Route to cloud |
Rules
- VRAM first — cite concrete numbers
- Spillage is hard failure for agentic workloads
- Pair with
rust-systemsfor LiteLLM-compatible API implementation
04 同仓库更多 Skills
fixture-skill
Fixture skill used to prove trust inventory coverage.
write-conformant-code
Write code in any language that matches project conventions exactly. Reads CODING_REQUIREMENTS.md, prior review output, or built-in defaults before writing. Part of Codecraft pipeline: analyze → write → review → audit. Use when implementing features, functions, or any code that should fit seamlessly into an existing codebase.
test-crypto-interoperability
Record reproducible cryptographic interoperability cases, including negotiation, fallback, sizes, latency, fragmentation, and negative tests.
scientific-platform-architect
Design scientific computing platforms combining HPC kernels with modern infrastructure. Enforces compute-layer separation (Rust/PyTorch/Python), emulator-first thinking, and right-sized infrastructure. Use for MCMC pipelines, neural emulators, platform design, or scientific code review.
rust-systems
Rust systems engineering for daemons, HTTP APIs, and AOS components. Enforces Tokio/Axum async-first, LiteLLM-compatible OpenAI APIs, workspace layouts, tracing, and systemd-compatible daemon design. Part of AOS Stack plugin. Use for .rs files, Cargo.toml, daemons, or Rust orchestrator services.
run-agent-attack-replay
Aggregate isolated agent attack trials with deterministic side-effect assertions, Wilson intervals, and preserved trace evidence.