Coderefercoderefer
CoursesWebinarsBlogAbout
Coderefercoderefer

Discover. Learn. Automate. Grow.

Learn

  • Courses
  • Webinars
  • Blog
  • Search

Company

  • About
  • Contact
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Refund Policy
© 2026 Coderefer. All rights reserved.
HomeBlogInference Optimisation Skill: Speed Up Your Local LLM
ai-toolsNovember 26, 20269 min read

Inference Optimisation Skill: Speed Up Your Local LLM

Sybil Solutions' open-source Claude Code skill hill-climbs local LLM speed with real benchmarks, and explains exactly when speculative decoding backfires.

V

Vamsi Tallapudi

Manager, Architect Technology at Cognizant

Inference Optimisation Skill: Speed Up Your Local LLM

Most "speed up your local LLM" advice online is a single flag someone tried once on their own machine. The inference-optimisation-skill from Sybil Solutions is different: it's a Claude Code skill that treats your tok/s problem like an actual experiment, with controls, a theoretical ceiling, and a hard rule that a win only counts if it beats noise twice in a row. It also comes with a blunt warning buried in its speculative decoding section: a draft model that gets accepted 80% of the time can still make your server slower, because acceptance rate isn't the thing you should be optimizing for.

That's the part of this repo nobody is talking about yet, so let's get into it.

What is inference-optimisation-skill?

It's an open-source agent skill published by Sybil Solutions on November 16, 2026. It packages a methodology, not a magic config, for improving how fast a local LLM server actually runs on the hardware you already own.

The repo describes itself as hill-climbing: "change one setting, measure the result, and keep only real wins." It targets six metrics: single-user decode speed, concurrent decode, prefill throughput, time-to-first-token, startup latency, and KV cache capacity. It covers basically any hardware (NVIDIA, AMD, Intel Arc, Apple Silicon, multi-GPU rigs) and any quantization format you're running: GGUF, EXL2/EXL3, AWQ/GPTQ, FP8, MLX, or BF16.

By the time I checked the GitHub API this week, the repo had crossed 2,000 stars and 184 forks in about a week, with 20 open issues. It's MIT licensed, so there's nothing stopping you from reading the whole thing in an afternoon.

You drop it into Claude Code (or any agent that reads SKILL.md files) and point it at a server you've already got running. It doesn't install models or stand up vLLM for you: it assumes you've done that part and just wants to make the thing you built go faster without quietly breaking output quality.

How does the hill-climbing method actually work?

The skill runs a loop, and it's stricter than what most people do by hand:

  1. Measure a baseline on your actual hardware, not a published benchmark.
  2. Calculate the theoretical ceiling before touching any setting.
  3. Change exactly one variable.
  4. Run a sandwich test: control, then candidate, then control again.
  5. Accept or reject based on whether the candidate beats both control runs, with no more than roughly 3% regression elsewhere.
  6. Repeat until three levers in a row land inside the noise band, then stop and report the gap to the ceiling.

That ceiling math is the part I actually find clever. Decode speed is memory-bandwidth bound, so the ceiling is just the bytes you have to read per token (weights, active experts, LM head, KV reads) divided by your measured bandwidth. Prefill is compute-bound instead, roughly twice the active parameter count plus attention cost, divided by about half of peak throughput to get a number you can realistically hit. If your setup is already at 90% of ceiling, the skill tells you to stop chasing phantom gains instead of burning an afternoon on a config that was never going to move the needle.

It also won't call anything a win on a single run. The documented noise floor is ±5–10% run to run, and the minimum sample size is six decode runs, scored on the median. A lot of "I got 20% faster!" posts you see on Reddit would fail this test.

Why speculative decoding can make things slower, not faster

This is the headline claim and it holds up. Speculative decoding works by having a small draft model guess several tokens ahead, which the big model then verifies in one batched pass instead of one token at a time. When it works, you get multiple tokens per forward pass instead of one.

The problem the skill calls out directly: a high acceptance rate doesn't automatically mean a speed win. If your draft step itself is expensive (a bigger draft model, more tokens drafted per round, extra sampling overhead), you can accept 90% of guesses and still come out slower than plain decoding, because you paid more per step than you saved. The skill's fix is to measure per-step timing, not acceptance percentage, and to sweep the draft length separately for every concurrency level and context length instead of picking one setting and assuming it generalizes.

Concretely, it recommends:

  • Pruning the draft model's vocabulary head so the draft pass itself is cheaper
  • Keeping sampling GPU-resident instead of round-tripping to the CPU between draft and verify steps
  • Testing multiple speculative methods against each other (built-in MTP, EAGLE-style draft heads, separate draft models, and n-gram lookup), because none of them wins on every hardware and batch-size combination

If you've ever turned on speculative decoding, seen your tok/s number go up in a demo, and then watched real multi-user traffic get worse, this is exactly why. Draft overhead scales with concurrency in ways a single-request benchmark won't show you.

What do the benchmark numbers actually show?

The repo's own examples are the most trustworthy numbers here, since they come with the exact model, quant, and engine attached rather than a vague "2x faster" headline.

HardwareModel / configMetricBeforeAfter
Intel Arc B390Ornith-1.5-35B-A3B, EXL3 4bpw, SGLang XPU + MTPSingle-user decode43.6 tok/s53 tok/s
Intel Arc B390Same configPrefill @ 256K context297 tok/s628 tok/s
Intel Arc B390Same configStartup time113s43s
4× H200 NVLDeepSeek-V4.1-FlashDecode throughputN/A229.1 tok/s
4× H200 NVLDeepSeek-V4.1-FlashPrefill throughputN/A17,546 tok/s

A 2.1x jump in 256K-context prefill is a real result, and the startup time drop (113s to 43s, mostly from persistent JIT/compile caches) is the kind of thing that matters way more in practice than raw decode speed if you're restarting a dev server fifteen times a day.

Worth saying plainly: these numbers are specific to that exact hardware, model, and quant combo. The skill's own stance is that the method transfers, not the settings: rerun the ceiling math and the sandwich tests on your own rig before you believe any number here applies to you.

What engines and hardware does it actually support?

The harness is engine-agnostic, meaning it wraps around whatever you're already running rather than replacing it:

  • Engines: vLLM, SGLang, llama.cpp, ExLlama/TabbyAPI, MLX, TensorRT-LLM
  • Hardware: NVIDIA, AMD, Intel Arc, Apple unified memory, multi-GPU setups
  • Quant formats: GGUF, EXL2/EXL3, AWQ/GPTQ, FP8, MLX, BF16

Before any speed lever, the skill forces a stability gate: a needle-in-haystack retrieval test at roughly 50% and 100% of context length, plus a concurrent full-KV soak test, plus a greedy-output equivalence check if you're claiming a change is lossless. That last one matters: it's the difference between "faster" and "faster because we quietly dropped quality," and a lot of local LLM tuning guides skip it entirely.

How do you install the skill in Claude Code?

git clone https://github.com/sybil-solutions/inference-optimisation-skill
mkdir -p ~/.claude/skills
cp -r inference-optimisation-skill/skills/inference-optimisation ~/.claude/skills/

Once it's in ~/.claude/skills/, Claude Code loads SKILL.md and can inspect your host, run bench.py and ceiling.py, and log results. The repo also ships a PROMPT.md if you want to hand the methodology to a different agent that doesn't speak the Claude skill format.

One operational detail that tells you this was written by someone who's actually run GPU benchmarks for a living: it insists on a serialized job queue (queue.sh with file locking) so you never run two benchmark jobs on the same GPU at once, and it explicitly tells you to drain and gracefully abort servers instead of force-killing them mid-batch. Little things, but they're the difference between clean numbers and a results log full of garbage runs you have to throw out.

Is it actually worth using?

I'd use this over hand-tuning flags, and here's why. The honest failure modes in local LLM tuning are almost always "I changed three things at once and can't tell which one helped" or "I ran it once, it looked faster, I told everyone." This skill structurally prevents both. The ceiling calculation alone is worth adopting even if you never touch the rest of the repo, because it tells you when to stop.

The catch is real too: this is nine days old as of this week, built for one person's hardware mix first, and the speculative decoding section in particular assumes you're comfortable reading per-step timing output rather than trusting a single tok/s headline. If you want a one-command speed boost, this isn't that. If you want to actually understand why your server is slow before you change anything, it's one of the better things to come out of the Claude Code skills ecosystem this month, up there with what Theo's t-stack skills are doing for scaffolding.

If you're setting up a local LLM for the first time rather than tuning an existing one, start with a local AI agent setup guide first, get something running, then come back to this for the speed pass. And if you're on the hardware side of this equation, it pairs well with the kind of consumer-GPU unlock work covered in getting unused tensor cores working on older RTX 30-series cards: more usable compute first, then squeeze the software on top of it.

FAQ

What is the inference-optimisation-skill?

It's an open-source Claude Code skill from Sybil Solutions, published November 16, 2026, that gives an AI agent a structured method for speeding up a local LLM server. It covers decode speed, prefill, speculative decoding, startup time, time-to-first-token, and KV cache capacity on any hardware or quantization format.

Can speculative decoding actually make a local LLM slower?

Yes. A draft model with a high acceptance rate can still slow decoding down if the draft step itself costs more time per round than it saves. The skill recommends measuring per-step timing instead of acceptance rate, and sweeping draft length separately for each concurrency level and context length.

Does this skill only work with Claude Code?

No. It's built around the SKILL.md format that Claude Code uses, but the repo also ships a PROMPT.md so any other agent framework can run the same methodology without the skill wrapper.

What inference engines and GPUs does it support?

It's engine-agnostic and works with vLLM, SGLang, llama.cpp, ExLlama/TabbyAPI, MLX, and TensorRT-LLM, across NVIDIA, AMD, Intel Arc, and Apple unified-memory hardware. The repo's own benchmarks use Intel Arc B390/B70, RTX 3090, and H200 NVL clusters.

How much faster does it actually make a local LLM?

In the repo's own example, an Intel Arc B390 running a 35B model went from 43.6 to 53 decode tok/s and from 297 to 628 tok/s on 256K-context prefill, a 2.1x jump. Results are hardware- and model-specific; the skill's own position is that you need to rerun the ceiling math and controlled tests on your own machine rather than assume these numbers transfer.

Is the skill free to use?

Yes, it's MIT licensed and free on GitHub. It had crossed 2,000 stars and 184 forks about a week after release.

Does it change model output quality to get speed gains?

Not by default. Every accepted configuration has to pass a stability gate first: long-context needle retrieval tests, a concurrent full-KV-cache soak test, and a greedy-output equivalence check for any change claimed to be lossless.

ai-tools claude-code local-llm 2026

Comments

    Get AI tricks that save you hours every week

    New AI tools, automation workflows, and course drops — straight to your inbox. Join 2,400+ builders.

    Read Next

    How to Use fast-anything with Claude Code to Port Only the Slow 5% to Rust
    ai-tools

    How to Use fast-anything with Claude Code to Port Only the Slow 5% to Rust

    fast-anything profiles your Python or Node app, has Claude Code port the slowest function to Rust, and verifies it against 500 real calls before swapping it in.

    November 26, 20267 min read
    How to Run Ternary Bonsai 2.5 27B Locally: A 5.9 GB Agentic Coding Model
    ai-tools

    How to Run Ternary Bonsai 2.5 27B Locally: A 5.9 GB Agentic Coding Model

    Ternary Bonsai 2.5 27B packs a 27B coding model into a 5.9 GB download. Here's how to run it locally, what hardware you need, and where the benchmarks don't hold up.

    November 26, 20267 min read
    Ladybird Alpha Is Out: How to Install It on macOS or Linux
    ai-tools

    Ladybird Alpha Is Out: How to Install It on macOS or Linux

    Ladybird's first public alpha (build 2026.47.7) is live for macOS and Linux. Here's how to install it and test your site in its from-scratch engine.

    November 26, 20267 min read
    View all posts →