inference-optimisation
Skill : A reusable method: instructions, procedures, sometimes scripts or templates · requires any-agent
A skill that guides your agent to speed up a local LLM server, measurement by measurement.
This is not a list of settings but a method: compute the theoretical ceiling, change one thing at a time, measure against a control, and log failures too. For people who already serve a model locally and want more speed without losing stability.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
Speeding up a local language model server is tricky: measurement noise is around ±5 to 10%, and most gains seen on a single run are just drift. You also rarely know whether a target, say 100 tok/s, is actually reachable on your machine. This skill tackles both problems.
Concretely, it gives your agent a six-step method: compute the theoretical ceiling, change one thing at a time, measure against interleaved controls, log every result including failures, gate on long-context retrieval, then qualify a clean, pinned build before publishing. It covers single-user and concurrent decode, speculative decoding, prefill, KV cache size, startup time and time to first token. A small harness (standard-library Python and bash) is included and works with any OpenAI-compatible server.
The authors report results measured on named hardware. For example, on a laptop with an Intel Arc B390 integrated GPU, single-user decode goes from 43.6 to 53 tok/s (median) and startup from 113 to 43 s. These figures illustrate the method, they are not a promise for your machine.
It is for people who already serve a model locally and want more speed without losing stability. It is not a fit if you want a ready-to-copy list of settings, if you do not yet have a running server, or if you plan to use it on a production service.
What it offers
- ·Computes theoretical ceilings first (decode, prefill, time to first token, startup, KV cache) with ceiling.py, so you know whether a target is realistic.
- ·Enforces a strict loop: one change at a time, compared against interleaved controls, with at least 6 samples and medians.
- ·Ships bench.py, which tests any OpenAI-compatible server: startup, time to first token, 1-user and N-user decode, prefill at several lengths, long-context needle retrieval and peak memory with a watchdog.
- ·Flags looping output, failed requests and runs on battery, and counts tokens from server usage stats rather than streamed chunks.
- ·Includes queue.sh, a serialized, detachable run queue for control/candidate/control runs, and mem.sh, which reports a container's real memory footprint, including driver residency on unified-memory GPUs.
- ·Requires full-context validation (exact-match needles, concurrent soak with a full KV cache) before calling any configuration "best".
- ·Keeps a log (ledger.jsonl, PLAN.md) of every attempt, failures included, and provides references on levers, known traps per engine (vLLM, SGLang, llama.cpp, ExLlama) and publishing.
- ·Works with Claude Code and any agent that loads SKILL.md-style skills; PROMPT.md lets any model follow it too.
In practice
- Price
- Free
- Commercial use
- Commercial use: yes
- Available on
- claude-code, any-agent
- Host
- any-agent
- Licence
- MIT
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Your data
- Data stays local
- Maintenance
- Active
Links and repository checked on 29 November 2026 · added on 28 November 2026
How to install inference-optimisation
git clone https://github.com/sybil-solutions/inference-optimisation-skill && mkdir -p ~/.claude/skills && cp -r inference-optimisation-skill/skills/inference-optimisation ~/.claude/skills/