Python
7 stars
Real-time terminal dashboard for Ollama — live output token counting (tokens/sec), CPU & thread usage, Apple Silicon GPU utilization, VRAM and loaded models. htop for your local LLM.
### Overview: Real-time terminal dashboard for Ollama — live output token counting, CPU & thread usage, GPU & VRAM monitoring.
### Key features:
- **Live Token Tracking**: Output tokens and prompt tokens counted as they stream, per-request tok/s, session totals, and a tok/s sparkline.
- **Per-Request Table**: Model, endpoint, output tokens, tokens/sec, elapsed time, and state (`generating`, `thinking/loading`, `done`).
- **CPU & Threads**: Total and per-core CPU, load average, plus CPU%, thread count, and memory of every Ollama process.
- **GPU Monitoring on Apple Silicon**: Device/renderer/tiler utilization % and GPU memory in use, read from `ioreg` (no sudo required).
- **Loaded Models**: Size, VRAM, GPU/CPU placement split, context length, and keep-alive expiry countdown (from `/api/ps`).
- **Single File, No Daemon**: One Python script using `rich`, `psutil`, `aiohttp`.
### Tech stack: Python
### Why it matters: Real-time monitoring and analysis of Ollama's performance metrics, including token counts, CPU and thread usage, GPU and VRAM utilization, and loaded models.