An agent skill for tuning local LLM servers starts by computing what is impossible
inference-optimisation makes a coding agent work out the hardware's speed ceiling first, then accept a change only if it beats the control runs on both sides.
inference-optimisation is a skill, meaning a folder of instructions and scripts, that a coding agent loads to speed up a local LLM server. It comes from the GitHub organization sybil-solutions. The README says it is “not a list of flags”. It is a procedure for not fooling yourself, written for an agent that would otherwise happily report a 6 percent win that is really noise.
How it works
The workflow has six steps, and the first is the unusual one. Before changing anything, the agent computes the theoretical ceiling for the machine: bytes read per token divided by memory bandwidth, and arithmetic per token against the chip’s peak. That gives a maximum for decode speed, prefill speed, and cache size.
Then comes the loop. Change one thing. Run it sandwiched between two control runs, in a serialized queue, with at least six samples and medians. Accept the change only if it beats both neighboring controls and makes nothing else more than 3 percent worse. The README puts run-to-run noise at 5 to 10 percent and says most single-run wins are drift.
Every result goes into a ledger file, failures included.
A fast configuration then has to pass a long-context test: retrieving exact strings planted in a full context window, and a soak test with the cache full under concurrent load. Only after that does a clean, pinned build get qualified and published.
The bundled scripts are standard-library Python and bash. bench.py talks to any OpenAI-compatible server and takes token counts from the server’s usage stats, not from counting streamed chunks.
The results it grew out of
All numbers are the authors’ own. The run the skill was distilled from used a laptop with an Intel Arc B390 integrated GPU and 64 GB of unified memory, serving a model called Ornith-1.5-35B-A3B:
| Measure | Before | After |
|---|---|---|
| Decode, 1 user (tok/s) | 43.6 | 53 |
| Decode, 4 users (tok/s) | 84.7 | 103 |
| Prefill at 256K (tok/s) | 297 | 628 |
| Startup (s) | 113 | 43 |
The honest part is the reading. The target was 100 tokens per second for one user. The ceiling calculation put the practical figure at about 88 to 97, and the README says the run reached about 55 percent of it, blaming kernel efficiency for the rest. Prefill came much closer: 628 against a ceiling of about 670 to 684.
The README also lists results on an Intel Arc Pro B70, an RTX 3090, and four H200s, and links the logs in the authors’ other repos. We did not open those.
Try it yourself
The repo is MIT licensed and has a single commit. For Claude Code, copy skills/inference-optimisation into ~/.claude/skills/. Other agents can be pointed at SKILL.md or given PROMPT.md. The scripts also run without an agent, starting with ceiling.py on the included example.
We have not run the skill or its benchmarks; this is based on the README alone.
Disclosure: Claude, an Anthropic model, helps write this site.