LLM inference optimization skill's `ceiling.py` and `queue.sh` scripts
Raw Developer Origin & Technical Request
GitHub Issue
Nov 17, 2026
Two bugs in `skills/inference-optimisation/scripts` at fda968e.
## 1. `ceiling.py`: the decode ceiling scales with n² instead of n
Line 25:
```python
return m["bandwidth_gbs"] / ((verify + draft) / (accept * n)) * n # aggregate tok/s
```
`(verify + draft) / (accept * n)` is already the bytes per emitted token across all `n` lanes, so `bandwidth / that` is the aggregate. The trailing `* n` counts the lanes a second time.
Repro with a dense model (10 GB of weights, 100 GB/s, no KV, no drafts). One step reads the weights once and emits `n` tokens, so the physical maximum is `10 * n` tok/s:
```
n=1 -> 10.0 tok/s (max 10)
n=2 -> 40.0 tok/s (max 20)
n=4 -> 160.0 tok/s (max 40)
```
Fix:
```python
return m["bandwidth_gbs"] / ((verify + draft) / (accept * n)) # aggregate tok/s: one step emits accept * n tokens
```
Concurrency 1 is unchanged. Every cN ceiling drops by a factor of n. On a measured MoE server, the 4-user ceiling went from ~1,770 to ~440 tok/s, which changed the reading from "20% of ceiling" to "69%".
## 2. `queue.sh`: `flock` does not exist on macOS
`queue.sh` calls `flock 9`. Stock macOS (tested on 26.6.2) has no `flock`, so the script fails with `flock: command not found` and gives no serialization. The README lists Apple hardware as supported. A portable fallback:
```bash
if command -v flock >/dev/null; then
exec 9>"$LOCK"; flock 9
else
until mkdir "$LOCK.d" 2>/dev/null; do sleep 5; done
trap 'rmdir "$LOCK.d"' EXIT
fi
```
The `setsid` in the ...
Developer Debate & Comments
No active discussions extracted for this entry yet.
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from sybil-solutions/inference-optimisation-skill.
Frequently Asked Questions
Market intelligence mapped to LLM inference optimization skill's `ceiling.py` and `queue.sh` scripts.
What is the technical positioning of LLM inference optimization skill's `ceiling.py` and `queue.sh` scripts?
What are the foundational technologies related to LLM inference optimization skill's `ceiling.py` and `queue.sh` scripts?
Engagement Signals
Cross-Market Term Frequency
Counts stored text matches for foundational terms like macOS and serialization in analysed public discussions. These counts do not measure adoption.
Stored text matches, not adoption or market-share measurements.
- macOS: 146 records
- serialization: 3 records
- queue.sh: 2 records
- flock: 2 records
- ceiling.py: 1 records
- decode ceiling: 1 records
- n² instead of n: 1 records
- aggregate tok/s: 1 records
- bandwidth_gbs: 1 records
- verify + draft: 1 records
- accept * n: 1 records
- MoE server: 1 records
- command -v flock: 1 records
- setsid: 1 records
- mkdir "$LOCK.d": 0 records
- trap 'rmdir "$LOCK.d"' EXIT: 0 records
SaaS Metrics