llm-performance-benchmark
Installation
SKILL.md
LLM Performance Benchmark
1. Attempt Live Benchmark (if possible)
- If an API key is available and unmasked, run a timed generation (e.g., 400–500 tokens) and compute TPS = completion_tokens / elapsed_time.
- Pitfall: Config files may redact keys. Do not spend more than 2–3 attempts trying to extract a masked key.
- For this user, NanoGPT keys live in the Hermes env file — launch benches with
env -u PYTHONPATHso the project python doesn't inherit Hermes' PYTHONPATH and break on imports.
1b. Live Streaming Benchmark Workflow (proven)
Run scripts/bench_stream.py — it streams an OpenAI-compatible chat completion and reports TTFT (first byte and first content token), decode tok/s, end-to-end tok/s, and usage per trial:
env -u PYTHONPATH python3 bench_stream.py <model> [<model> ...] --trials 3 --max-tokens 700