---
title: "Inference-optimisation tunes local LLM servers under a memory cap"
id: "story-111"
canonical_url: "https://emergent.fm/stories/111"
markdown_url: "https://emergent.fm/stories/111/article.md"
published_at: "2026-11-23T03:18:19.016Z"
modified_at: "2026-11-23T03:18:19.016Z"
source_at: "2026-11-16T18:40:04.000Z"
topic: "agent_skills"
trust_label: "Reported"
publisher: "Emergent.FM"
---

# Inference-optimisation tunes local LLM servers under a memory cap

## Key points

- The repository provides SKILL.md, reference guides, and a Python and bash harness to tune any OpenAI-compatible local LLM server under a peak memory cap.
- Changes are accepted only if they beat both neighbouring controls, regress nothing by more than 3%, and pass a long-context needle retrieval gate.
- The authors say the workflow came from runs that lifted 256K prefill 2.1x on an Intel Arc B390 iGPU, from 297 to 628 tok/s.

## Inference-optimisation harness overview

- 256K prefill result: 2.1x on Intel Arc B390 iGPU (297 to 628 tok/s)
- Server compatibility: Any OpenAI-compatible server
- Acceptance gates: Beat neighbouring controls, 3% max regression, needle check
- Benchmark safeguards: Flags loops, failed requests, battery runs; memory watchdog
- Usage options: SKILL.md with an agent, or ceiling.py and bench.py directly

The benchmark script flags loops, failed calls, and battery runs, and caps peak memory.

The authors say the workflow came from runs that lifted 256K prefill 2.1x on an Intel Arc B390 iGPU, from 297 to 628 tok/s.

The repository ships SKILL.md, reference guides, and a standard-library Python and bash harness for benchmarking any OpenAI-compatible server.

Builders can ask an agent to hill-climb decode and prefill for a local model under a memory cap or compute its theoretical max tok/s.

The harness only accepts changes that beat both neighbouring controls, regress nothing by more than 3%, and pass a long-context needle retrieval gate.

The benchmark script flags looping output, failed requests, and battery runs, and uses a watchdog to enforce a peak memory cap.

This matters to builders who run local LLM servers and want to tune decode, prefill, startup, or KV cache speed.

Point Claude Code or another agent at SKILL.md, or run ceiling.py and bench.py directly to measure your server's baseline.


## Source

- <https://github.com/sybil-solutions/inference-optimisation-skill>

Canonical page: <https://emergent.fm/stories/111>
