Deploying large language models on local hardware has historically been an exercise in manual trial and error. Engineers frequently spend days toggling command-line parameters across frameworks like vLLM, SGLang, and llama.cpp, tweaking speculative draft models, chunked prefill sizes, and KV cache quantizations without knowing whether a change genuinely improves throughput or merely conceals latency regressions.

Sybil Solutions has addressed this operational bottleneck with inference-optimisation-skill, an open-source repository that encodes performance engineering into an autonomous Agent Skill. Built on the open SKILL.md specification and compatible with coding agents such as Claude Code, Cursor, and Codex, the toolkit replaces guesswork with an automated, noise-controlled hill-climbing loop that tunes local LLM servers to their theoretical hardware limits.

The Pitfalls of Manual Flag Tweaking

Tuning an inference server is rarely as simple as copying optimized launch scripts from community benchmarks. Memory bandwidth, arithmetic intensity, and thermal throttling vary dramatically across consumer and enterprise hardware. Furthermore, aggressive optimizations frequently introduce silent failures:

  • KV cache thrashing: Over-allocating memory to speculative draft buffers can cause unexpected out-of-memory crashes when context windows scale beyond 32,000 tokens.
  • Degraded numerical stability: Quantizing key-value pairs or model weights without rigorous retrieval verification can degrade precision, causing models to pass basic sanity checks while failing complex needle-in-a-haystack tasks.
  • Noisy benchmarking: Isolated benchmark runs often mistake cold-cache latency or background operating system noise for genuine performance regressions.

Rather than providing a static list of recommended launch arguments, inference-optimisation-skill provides a systematic, closed-loop procedure that agents execute directly on the serving machine.

The Six-Step Hill-Climbing Methodology

The core architecture of inference-optimisation-skill revolves around a disciplined protocol designed to eliminate observational bias and ensure reproducible gains:

  1. Calculate the Theoretical Ceiling: Before modifying configurations, the agent calculates the machine’s theoretical memory bandwidth limit and peak FLOP bounds. This establishes a mathematically grounded performance target (e.g., maximum possible decode tokens per second given model parameter count and bus width).
  2. Single-Variable Perturbation: The agent adjusts exactly one parameter per cycle, such as speculative decoding lookahead steps, continuous batching intervals, or KV cache allocation percentages.
  3. Interleaved Control Benchmarking: To account for thermal drift and system variance, test runs are interleaved with baseline control runs. Changes must demonstrate statistically significant improvements over consecutive cycles.
  4. Negative Result Logging: Every failed experiment, out-of-memory crash, and regression is documented in a persistent experiment ledger, preventing the agent from revisiting ineffective configurations.
  5. Long-Context Retrieval Gating: Any configuration that demonstrates speed gains must survive an automated needle-in-a-haystack retrieval test across full context depths (ranging from 32K to 256K tokens) to ensure output fidelity remains uncompromised.
  6. Pinned Recipe Qualification: Once the hill-climbing cycle converges, the agent generates a pinned, clean server startup script containing verified flags and environmental variables.

Documented Empirical Results

The effectiveness of this structured loop is documented in public benchmarks provided by Sybil Solutions. In a documented test on mobile silicon featuring an Intel Arc B390 integrated GPU (64 GB unified LPDDR5X, ~115 GB/s bandwidth) serving the Ornith-1.5-35B-A3B model (EXL3 4 bpw, SGLang XPU + Multi-Token Prediction), the skill achieved substantial across-the-board gains:

MetricBaseline ConfigurationOptimized ResultNet Improvement
Single-User Decode Speed43.6 tok/s53.0 tok/s+21.5%
4-User Concurrent Decode84.7 tok/s103.0 tok/s+21.6%
32K Prefill Throughput1,037 tok/s1,660 tok/s+60.1%
256K Prefill Throughput297 tok/s628 tok/s+111.4% (2.1x)
Usable KV Cache Capacity264K tokens4 x 256K tokens3.8x expansion
Cold Server Startup Time113 seconds43 seconds-61.9%

Crucially, the 2.1x prefill speedup and KV cache expansion survived the full-context stability check, ensuring that long-form retrieval accuracy remained intact under production workloads.

Integrating the Skill into Autonomous Workflows

Because inference-optimisation-skill adheres to standard skill conventions, integration into developer workflows is straightforward. The repository houses instructions within skills/inference-optimisation/SKILL.md alongside reference architectures and a standalone PROMPT.md for harnesses lacking native skill discovery.

Developers operating with modern coding agents can mount the repository directly into their workspace. Once provided with hardware targets, memory caps, and priority metrics (such as prioritizing single-user decode speed over aggregate throughput), the agent assumes ownership of the server lifecycle: benchmarking baseline latency, adjusting engine parameters, verifying numerical output, and delivering a production-ready launch script.

By replacing intuition with automated empirical rigor, inference-optimisation-skill establishes a practical standard for running high-performance local AI infrastructure.