Skip to main content

inference-optimisation tunes LLM serving.

Guides local LLM tuning with ceiling estimates, one-change experiments, interleaved controls and logs, then checks context and resource limits.

Source facts

sybil-solutions

Repository sybil-solutions/inference-optimisation-skill

Last source activity
November 16, 2026 at 18:40
Detected SKILL.md language
English
Stars
2,591
Forks
237

Examples

In the README's author-reported Arc B390 example, Ornith-1.5-35B-A3B with EXL3 4 bpw on SGLang XPU plus MTP went from 43.6 to 53 tokens/s for single-user median decode and from 113 to 43 seconds startup. The same source separately labels Registry Lab gate numbers, so those should not be compared as if measured by the same harness. These are attributed source results, not an independent replication.

Uses

Use it to investigate single-user or concurrent decode, speculative decoding, prefill, KV capacity, startup time or time to first token. The procedure covers different engines and hardware, but a result belongs to the tested model, quantization, engine version, machine and workload. It prioritizes configuration levers before kernel work, and asks you to label any permitted quality trade-off rather than treat it as lossless.

Prerequisites

Use an agent that loads SKILL.md, or give a shell-capable coding agent the supplied PROMPT.md on the machine serving the model. Supply the model and revision, quantization, engine, current launch command or endpoint, hardware, metric priorities, memory cap, required context, concurrency and allowed quality changes. The procedure asks for measured bandwidth, matrix throughput and clocks; these are not automatically measured by ceiling.py. The harness uses standard-library Python and Bash; queue.sh also uses flock. bench.py needs an OpenAI-compatible server with /v1/models, streaming /v1/chat/completions and server usage token counts. The bundled memory probe targets Linux Docker/cgroups plus nvidia-smi or DRM; reading other users' fdinfo may require root or a narrowly configured passwordless sudo command.

How to use

Begin with the documented request, "hill-climb decode and prefill for the model on :8000 under a 40 GiB cap", and fill in the remaining constraints. Establish a baseline and record measured hardware inputs and ceiling arithmetic in THEORY.md. Keep PLAN.md, per-run configs/, ledger.jsonl and best-config.json. Change one variable, run control/candidate/control in the serialized queue, compare neighboring controls and record why the candidate is kept or rejected. The documented method calls for long-context retrieval, a concurrent full-context soak when applicable, and equivalence checks for lossless claims before calling a configuration best. At a plateau, report baseline/current/ceiling with measurement methods and unverified items. Publishing a recipe is a separate, explicitly requested step requiring pinned dependencies, a clean build and the documented acceptance gates.

Limitations

Configuration is executable operational input: launch, stop and memory.probe run local commands. The Docker example aborts requests, stops the container named llm and executes docker rm -f llm; its probe uses sudo -n and reads DRM residency. Review container names, mounts, paths, privileges and stop behavior before using it. Documentation says to drain before stopping; the sample's fixed wait is not proof that every request has drained. The server is normally left running after a benchmark.

bench.py sends test prompts and configured extra_body data to base_url, which defaults to localhost:8000 but can be remote. Measurements and error details go to ledger.jsonl; configurations stay in configs/, and the queue saves run logs. Together these may reveal model, endpoint, command, path or other sensitive information. The source requires checking publication evidence for secrets and personal information; do not publish credentials or credential-file paths. The prompt's mode-600 storage advice is not a reason to put credentials in logs.

The method's gates are not all automatic. Memory monitoring requires a configured probe, the initial AC refusal requires require_ac, and long retrieval requires --long. The existing-server example configures neither memory nor require_ac. Probe exceptions are ignored; without stop, a memory-cap callback cannot stop the server. AC detection errors return true. The script records long retrieval without failing the run for a missed code; LOOP is a flag, not an automatic rejection. Controls, concurrent full-length soak, greedy equivalence, performance-profile enforcement and clean-build publication gates still need explicit orchestration and review.

The default CLI uses six c1 samples; configuration defaults include temperature 0.6, concurrency four and prefill lengths 4096/32768. Prompt lengths are approximate and reported token counts come from the server. A theory estimate is not a measured maximum: independently check ceiling.py arithmetic, especially decode_ceiling, where concurrency appears in the inner accepted-token divisor and again as a final multiplier. Do not rely on its concurrent output as a validated physical bound.

The announcement's speedup claims and the README's hardware results are author reports, not results reproduced here or promised gains. The root license is MIT, Copyright (c) 2026 Sybil Solutions contributors, with no warranty.

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
13 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
nameinference-optimisation
descriptionHill-climb the serving speed of a local LLM on any hardware (NVIDIA, AMD, Intel, Apple, unified-memory laptops, multi-GPU) and any quantization (GGUF, EXL2/EXL3, AWQ/GPTQ, FP8, MLX, BF16): single-user and concurrent decode tok/s, speculative decoding, prefill tok/s, KV cache size, startup time and TTFT, under a memory cap and with full-context stability. Computes the theoretical ceiling first, runs noise-controlled A/B experiments, keeps a ledger, and qualifies the winner before publishing it. Use when asked to optimise, tune, speed up, benchmark or hill-climb a model server (vLLM, SGLang, llama.cpp, ExLlama/TabbyAPI, MLX, TensorRT-LLM...), to find the maximum possible tok/s on a machine, or to publish a tuned recipe. Triggers: hill climb, tok/s, decode speed, prefill speed, MTP, EAGLE, draft model, speculative decoding, KV cache, TTFT, startup time, theoretical maximum.