Skip to content

Repository files navigation

AI Benchmark

Find out exactly which local LLMs your PC can run — VRAM math, best quantization, tok/s estimates, and bottlenecks. No model downloads required.

AI Benchmark terminal UI

Features

  • Cross-platform — Windows, macOS, and Linux
  • Multi-source GPU detection — NVML, nvidia-smi, ROCm, sysfs, PowerShell, lspci
  • VRAM estimator — weights + KV cache + overhead (llama.cpp-aligned)
  • Model catalog — 12 popular open models from 3B to 72B
  • Rich TUI — hardware cards, VRAM fill bars, bottleneck tips
  • JSON export — for scripting and CI

Install

git clone https://github.com/doteyeso-ops/ai-benchmark.git
cd ai-benchmark
python -m venv .venv

# Windows
.venv\Scripts\activate
# macOS / Linux
source .venv/bin/activate

pip install -e .

Optional NVIDIA telemetry (more accurate VRAM on Windows):

pip install -e ".[nvidia]"

Usage

ai-benchmark                 # Rich TUI (default)
ai-benchmark --plain         # Simple tables (CI / logs)
ai-benchmark --json          # Machine-readable output
ai-benchmark -c 32768          # Evaluate at 32K context
ai-benchmark --micro-bench   # Include quick CPU probe

What you get

Section Details
Hardware CPU, RAM, GPU/VRAM, Apple Silicon unified memory
Compatibility Per-model fit: OK / tight / CPU offload / no fit
Throughput Estimated tok/s from published hardware profiles
Bottlenecks Primary constraint + actionable recommendations

How estimates work

VRAM = model weights + KV cache + framework overhead

  • Weights: params x bytes_per_param (Q4_K_M ~ 0.625 B/param)
  • KV cache: 2 x layers x kv_heads x head_dim x context x bpp (GQA-aware)
  • Overhead: ~1.2 GB + 512 MB system reserve

Throughput uses lookup tables (RTX 3060/3090/4090/5090, Apple M-series) scaled by model size. For ground truth, use llama-bench.

Development

pip install -e ".[dev]"
pytest tests/ -q
python scripts/generate_screenshot.py   # Regenerate README image

Roadmap

  • GGUF metadata parser for custom models
  • Optional llama-bench integration
  • HTML report export

References

License

MIT — see LICENSE.

About

Standalone CLI: detect hardware, estimate runnable local LLMs, VRAM, tok/s, and bottlenecks

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages