Skip to main content

win-llmtop

CI PyPI version Python versions Licence

A live, read-only terminal panel for llama.cpp's llama-server on Windows — see where your VRAM, shared GPU memory and system RAM go while a model runs.

The Live page

What it shows · Who it is for · Quick start · Install · Requirements · Get more out of it · Common options · Documentation

What it shows

win-llmtop is strictly read-only: it reads the server's HTTP API, log files, Windows performance counters and, on AMD cards, the driver's GPU activity sensor, and never changes the server. The only programs it runs are two helpers of the llama-server it watches — llama-server --help, to read each flag's default, and llama-fit-params, llama.cpp's own memory projection — and it runs them only from the folder of that running llama-server, never from a path the server reports, the current folder or PATH.

  • Dedicated and shared GPU memory per process against the DXGI OS budget, with alerts when Windows demotes VRAM into system RAM.
  • System RAM, commit charge and the page file — working sets by consumer, private commit headroom and disk page-ins/page-outs.
  • CPU load, clock and cache levels — per-core load, P/E cores and L1/L2/L3 sizes.
  • Live in-flight request progress — active phase (PREFILL or DECODE), prompt batch progress, ETA, live tokens/s and KV context fill.
  • Prompt and turn history — prefill and decode speed by context depth, cache hit and draft acceptance per turn and per prompt.
  • Model memory map and tensor placement — weights, KV cache, recurrent state and compute buffers derived from the GGUF header and checked against llama-fit-params, plus per-layer GPU/CPU placement.
  • Router and threshold events — model loads, queueing, evictions and sustained memory alerts persisted across restarts.

Who it is for

Built by Aaron Kane (@insane-kane) for Windows users running llama.cpp's llama-server — either in router mode across multiple presets or serving a single model — on the same machine. It answers whether a preset fits inside Windows' VRAM budget, when shared GPU memory spillover slows decoding down, and where host RAM goes.

Quick start

pipx install win-llmtop
win-llmtop --check
win-llmtop
  • pipx install win-llmtop — installs win-llmtop into an isolated environment and puts it on PATH; uv tool install win-llmtop does the same if you manage your tools with uv.
  • win-llmtop --check — checks Windows counters, the GPU budget, the running llama-server, logs and state directory, and exits 0 when the server is reachable and either GPU telemetry is present or the machine has no GPU adapters (1 otherwise).
  • win-llmtop — opens the live six-page terminal panel (1–6 or Tab switch pages, q quits).

Install options at a glance

See the full installation guide (docs/install.md) for commands, upgrades, uninstalls and package verification. Every method installs the same package; pick the one that matches your setup.

Method Command Use when
pipx pipx install win-llmtop You want win-llmtop on PATH in an isolated environment, installed from the Python you already have
uv tool uv tool install win-llmtop The same isolated PATH install, when you manage your tools with uv
pip py -m pip install win-llmtop You have an existing virtual environment, or want a --user install
GitHub release wheel py -m pip install win_llmtop-*.whl The machine has no internet access (offline or air-gapped)
From source py llmtop.py You want to run it from a git checkout without installing (zero dependencies)

Requirements

  • Windows 10 version 1709 or later — provides the per-process GPU Process Memory and GPU Engine performance counters.
  • 64-bit Python 3.11 or later — 32-bit Python cannot inspect a 64-bit llama-server process.
  • No third-party Python packages — uses the Python standard library only.
  • A local llama-server — running in router mode or single-model mode on the same machine.

Get more out of it

win-llmtop works with zero configuration, and unlocks deeper telemetry when llama-server exposes logs and slots:

  • Per-model log file with timestamps — pass --log-file and --log-timestamps to llama-server (win-llmtop reads the path from its command line; --log-dir only when it can't) for request history, cache hit rates, draft acceptance and wall-clock times (usage guide).
  • Live /slots telemetry — on by default in llama-server (build b11669; --no-slots turns it off), showing live prefill/decode progress, current tokens/s, ETA and context fill (usage guide).
  • Router event log — pass --router-log or --log-dir so win-llmtop can tail router model loads, request queueing and preset evictions (usage guide).

Common options

See win-llmtop(1) for the complete reference of every command-line option, environment variable and default.

Option Environment variable Default Purpose
--check — off Check prerequisites and reachable sources, then exit
--once — off Print a single snapshot and exit (combine with --page)
--plan [PRESET] — off Project preset VRAM against the OS budget without loading
--router URL LLMTOP_ROUTER find it llama-server URL (http://127.0.0.1:8080 or discovered)
--log-dir DIR LLMTOP_LOG_DIR (none) Directory containing per-model and router log files
--router-log PATH — (none) Path to the router's own log file
--api-key KEY LLMTOP_API_KEY or LLAMA_API_KEY (none) Bearer token for llama-server HTTP requests
--window {1m,5m,15m,1h,6h,24h} — 5m Initial time window for trend charts

Known issues

  • GPU load on NVIDIA and Intel cards is unverified (help wanted). AMD cards use the driver's own activity sensor, because Windows' GPU Engine counters proved erratic for compute work on an AMD card. Every other GPU, and an AMD card without that sensor, shows a 3-second mean of those counters, which has not been checked on real NVIDIA or Intel hardware and may read wrong. Nothing else depends on it, and win-llmtop --check says which source is in use. See Contributing for how to help.

Documentation

Contributing, support and security

Citing

If you use win-llmtop in research or benchmarks, see CITATION.cff for citation metadata.

Licence

Copyright (C) 2026 Aaron Kane.

GNU General Public License v3.0 or later (GPL-3.0-or-later); see LICENSE.

Metadata

Release files for win-llmtop 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for win-llmtop 0.4.1
File Size Uploaded Provenance Actions
win_llmtop-0.4.1.tar.gz 194.2 kB With provenance Details for win_llmtop-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for win-llmtop 0.4.1
File Interpreter ABI Platform Actions
win_llmtop-0.4.1-py3-none-any.whl Python 3 none any Details for win_llmtop-0.4.1-py3-none-any.whl

Total release size: 306.0 kB

Release files / win_llmtop-0.4.1.tar.gz

Download URL win_llmtop-0.4.1.tar.gz
Size 194.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3c81442488466c32bd62e36bbc9f15cdbb8752ae5ec57266f3b5f1376aac2ecb
BLAKE2b-256 checksum
How to use checksums
5e814ccd3876cf391baf0046a93153bb2f0fcc6adcc83af299b16c16748613b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / win_llmtop-0.4.1-py3-none-any.whl

Download URL win_llmtop-0.4.1-py3-none-any.whl
Size 111.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de6fc6452d1201e6e3eec59311733dd8d6a2576176cd974f4dbac19d40ae0fd0
BLAKE2b-256 checksum
How to use checksums
842c42804841b67f8a812f404bc4ef34d555f794c989b077dd82a786fd193ced
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for win-llmtop 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for win_llmtop-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page