# sybil-solutions/inference-optimisation-skill — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `skills`
- Overall score: `3.2/5`
- Implementation check: `partial`
- Maturity: `early`
- Audited commit: `fda968e7fc19` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T11:15:53Z
- Repository: https://github.com/sybil-solutions/inference-optimisation-skill
- Radar entry: https://radar.alplab.co/#repo/sybil-solutions/inference-optimisation-skill
- License: `MIT`
- Tags: `llm-serving`, `benchmarking`, `inference`, `gpu`, `agent-skill`

## Summary

An agent skill and standard-library harness for benchmarking OpenAI-compatible local LLM servers and guiding controlled inference-tuning experiments.

## Implementation Check

README.md's stability claim is only partly automated: scripts/bench.py `run` offers a single optional needle run, while SKILL.md requires concurrent full-KV soak and equivalence gates.

## When to Use

Use for a bounded local-server tuning pilot when you can supply trusted launch commands and validate results yourself. Do not treat its benchmark output as sufficient qualification evidence.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 3.5/5 |
| usability | 3.5/5 |
| reliability | 2.5/5 |
| security | 3.5/5 |
| integration | 3.0/5 |

## Code Evidence

- skills/inference-optimisation/scripts/bench.py `Server.chat` measures TTFT, decode rate, usage-token counts, concurrent throughput, prefill, and optional retrieval.
- skills/inference-optimisation/scripts/ceiling.py `decode_ceiling` and `prefill_ceiling` calculate model- and hardware-input ceilings.
- skills/inference-optimisation/SKILL.md defines control/candidate/control comparisons, a memory cap, AC checks, and long-context qualification.
- skills/inference-optimisation/scripts/mem.sh sums cgroup anonymous memory with NVIDIA or DRM GPU residency for containerized servers.

## Issues Found

- scripts/bench.py `run` does not implement the concurrent full-context soak mandated by SKILL.md before qualifying a configuration.
- scripts/bench.py `Server` has no configuration for authorization headers, limiting use with authenticated OpenAI-compatible servers.
- scripts/bench.py executes user-supplied `launch`, `stop`, and memory-probe command arrays, so configurations must be treated as trusted local code.

## Key Risks

- No automated tests or CI are present in the audited tree.
- scripts/bench.py requires a streaming OpenAI-compatible API that returns completion and prompt usage statistics.
- The harness only automates one optional needle retrieval; full-context concurrency soak and greedy equivalence checks remain procedural.
- The repository is a one-commit early project, so its documented workflows have limited maintenance history.

## Reviewed Files

- `README.md`
- `skills/inference-optimisation/SKILL.md`
- `skills/inference-optimisation/scripts/bench.py`
- `skills/inference-optimisation/scripts/ceiling.py`
- `PROMPT.md`
- `skills/inference-optimisation/scripts/queue.sh`
- `skills/inference-optimisation/scripts/mem.sh`
- `skills/inference-optimisation/references/methodology.md`
- `skills/inference-optimisation/references/publishing.md`
- `skills/inference-optimisation/references/ceilings.md`
- `skills/inference-optimisation/references/levers.md`
- `skills/inference-optimisation/examples/config-sglang-docker.json`
- `skills/inference-optimisation/examples/config-existing-server.json`
- `LICENSE`
