Hill-climbing a local model, one variable at a time, failures included

Most advice about making a local model faster is a list of flags. Enable this, quantise that, raise the batch size, try the other attention kernel. The list is roughly accurate and completely unusable, because the interaction between the flags depends on the card, the model, the quantisation and the context length, and nobody tells you which of their numbers would survive on your machine.
A repository published on 16 November takes the opposite approach. inference-optimisation-skill is a skill for Claude Code, and any agent that loads a SKILL.md, that encodes a procedure rather than a flag list. It also ships a PROMPT.md so a model without skill support can follow it.
The loop
The README states six steps, and they are worth reading in order because the order is the argument.
Compute the theoretical ceiling first. Before changing anything, work out what the hardware could theoretically do, so you know whether the current number is 20% off or 4× off. Without a ceiling, every improvement looks like success, including one that leaves 80% of the performance on the floor.
Change one thing at a time. Then measure against interleaved controls, meaning the baseline runs between the variants rather than before them, because thermal throttling and background load make a single before-and-after comparison lie.
Log every result, including the failures. This is the step everyone skips and the one that makes the rest useful, because a record of what did not work is what stops you re-testing it next month.
Gate on long-context retrieval. A configuration that is fast and loses the ability to find a fact at 200K tokens is not faster; it is broken in a way benchmarks do not catch.
Qualify a clean, pinned build before publishing. The number you report has to come from something reproducible, not from a session where four other things changed.
The numbers, with their hardware attached
The repository publishes a table of results from the hill-climbs the skill was distilled from, each one labelled with the machine.
On an Intel Arc B390 integrated GPU in a laptop, with 64 GB of unified LPDDR5X at roughly 115 GB/s, an Ornith-1.5-35B-A3B model at EXL3 4 bpw running SGLang with multi-token prediction went from 43.6 to 53 tok/s for a single user, and from 84.7 to 103 tok/s at four users. Prefill at 32K went from 1,037 to 1,660 tok/s; at 256K from 297 to 628, a 2.1× improvement. KV cache went from 264K tokens to four sequences of 256K. Startup dropped from 113 to 43 seconds.
The same table shows an Arc Pro B70 running Qwen3.8-27B: 91.2 tok/s single-user and 365 tok/s at sixteen users with vLLM and custom XPU kernels, against 25.0 tok/s for llama.cpp Q4_K_M on the same card. That comparison is the one that makes the point. The gap between two engines on identical silicon is larger than the gap between two generations of hardware.
An RTX 3090 with the same 27B model at EXL3 3 bpw plus MTP reaches 96.2 tok/s on prose and 141.1 on code. A 35B-A3B model on the same card reaches 251.7 and 357.9. And four H200 NVL cards running DeepSeek-V4.1-Flash under vLLM with speculative decoding, after crashing under load at the start, ended at 229.1 tok/s decode and 17,546 tok/s prefill with all six gates passing.
Every row names the engine, the quantisation and the hardware. That is the minimum for a number to be useful, and it is rare enough to be worth pointing out.

What a ceiling calculation actually looks like
Step one sounds abstract until you do it once. For single-user decode, the model has to read its weights for every token, so the theoretical ceiling is roughly memory bandwidth divided by the bytes read per token. A 27B model at 3 bits per weight is about 10 GB of weights per token; on a card with 936 GB/s of bandwidth, that puts the ceiling near 90 tok/s before any overhead.
Which is why the RTX 3090 result at 96.2 tok/s for prose is interesting: it is at or slightly above a naive bandwidth estimate, because multi-token prediction changes how many tokens come out per pass. A number like that tells you the implementation is doing something structural rather than shaving milliseconds off a loop.
Run the same arithmetic on a laptop iGPU at 115 GB/s and the ceiling for a 35B-A3B model at 4 bpw lands in the tens of tokens per second, not hundreds. The 53 tok/s result is then legible as a good outcome against the hardware rather than a disappointing one against a datacentre card.
That is the whole point of the first step. It converts a benchmark into a fraction of what was possible, and fractions are comparable across machines in a way that raw tok/s is not.
Why memory caps and retrieval gates matter more than tok/s
Two constraints in the method deserve separate attention.
The first is that it works under a memory cap. Local inference tuning has a habit of producing a configuration that hits a great decode number by consuming memory that was supposed to hold the context. A cap forces the trade-off into the open: you cannot buy speed with memory you do not have.
The second is the long-context retrieval gate. Decode speed is measured on short prompts, and aggressive optimisation rarely crashes. It produces a model that still answers, in fluent sentences, from a context it can no longer reliably read. The gate catches that before the configuration gets published as a win.
That combination is what separates this from a benchmark table. A tuning guide that only reports throughput will happily hand you a build that is 40% faster and subtly worse.
What the skill actually is
Mechanically, it is a folder of instructions. The value is in what the instructions prevent: changing two things at once, comparing against a baseline measured an hour earlier, reporting the best of five runs, and shipping a build that nobody can reproduce.
It is also a document about how the numbers in the table were obtained. The skill links to the underlying recipes and to a pull request with the full hill-climb log, including the failed attempts. That is an unusual level of disclosure for a performance claim, and it is the reason the numbers are believable rather than merely impressive.
Where this approach breaks
Hill-climbing assumes a fixed target. If your workload is mixed, a configuration tuned for single-user decode may be the wrong one for a batch job, and the skill's answer is to run the loop again for the other workload rather than to find a compromise.
It also assumes you can measure. On a shared machine, or a laptop that thermally throttles, the interleaved controls are doing a lot of work and may not be enough. The honest response is to stop and fix the measurement environment, which the method implies but cannot enforce.
And the published results are a starting point, not a preset. An Arc B390 recipe will not transfer to a 3090, and the README does not pretend otherwise. What transfers is the sequence: ceiling, one variable, controls, log, gate, pin.
For anyone running models locally for image or video work, that sequence is the part that matters. The difference between a 40-second generation and a 25-second one is rarely a new model. It is usually four afternoons of measuring, and a note about the three configurations that looked faster and were not.
Turn ideas into images with ChatPicture
60 free credits every day. Generate, edit, and download — no prompt engineering degree required.
Related articles
Thirteen eggs stump a whole lineup of models: AI images can draw, but they cannot count
On the evening of November 18, "Doubao stumped by thirteen eggs" reached Weibo's trending list. Of nine image models, only four got the number right, and research already says prompt tweaks cannot fix counting. The problem is a diffusion model with no counter.
A trading skill pack that refuses to tell you what to buy
claude-trading-skills ships four workflows for reviewing a portfolio, screening a setup and journaling a closed trade. It never issues a buy signal, and the README says so three times.
Tencent's Hy3D 3.6 generates the 3D draft, not the finished asset
Hy3D 3.6 pushes generated models to two million faces and eight-kay PBR textures, then hands them to a retopology artist. Tencent had hundreds of its own 3D artists blind-test it first.
ChatPicture
Start generating
Generate production-ready AI images for e-commerce, design, and film.