The htop for LLM inference. Measured. Not guessed.
Project description
LLM Inspector inspects live inference processes and shows exactly how GPU memory is being used, what model is running, how the runtime is configured, and where every reported value comes from.
Unlike traditional monitoring tools, it doesn't stop at inspection. It also analyzes the running workload and projects optimization opportunities—starting with quantization—to help you understand how different strategies would impact GPU memory before making any changes.
Example
Why?
Existing tools tell you that your GPU is using 18 GB.
LLM Inspector tells you why:
Weights 7 GB
KV Cache 8 GB
Workspace 1 GB
Other 2 GB
Then it tells you what would happen if you optimized:
FP8 would save ~3 GB of weights.
AWQ would save ~5 GB of weights.
Weight quantization won't fix an 8 GB KV Cache bottleneck.
That is the difference between a GPU monitor and an inference advisor.
Embedded goes deeper
Most tools stop here:
GPU
└── Process A
└── 17.3 GB
LLM Inspector goes one level deeper:
GPU
└── Process A
├── Weights
├── KV Cache
├── Workspace
├── Activations
└── Optimization Analysis (Projected)
That bridge—system observability + model internals, with an htop-style CLI—is the innovation. Deep metrics come from optional embedded attach() inside the inference process (see the install guide).
Measured vs Projected
| Section | Kind |
|---|---|
| Process, Hardware, Model, Memory, Runtime | Measured from live sources (or Unavailable with a reason) |
| Optimization Analysis | Projected from measured inputs — never mutates the model |
llminspect inspect <pid> --verbose # show provenance for every field
Install
Works on any NVIDIA GPU machine — laptop, workstation, cloud VM, bare-metal server, or DGX. Docker is optional.
pip install llm-inspector
For embedded deep metrics (Weights / KV / Activations) in the same Python env as the model:
pip install "llm-inspector[torch]"
From source (contributors):
git clone https://github.com/helasaoudi/llm-inspector
cd llm-inspector
python -m venv .venv && source .venv/bin/activate
pip install -e ".[torch]"
Try it
llminspect ps
llminspect inspect <pid>
llminspect inspect <pid> --verbose
With Ollama on the host (no Docker):
ollama run llama3
llminspect inspect $(pgrep -f "ollama serve") --verbose
Supports
Ollama · vLLM · HuggingFace Transformers · FastAPI · custom PyTorch
macOS · Linux · any NVIDIA GPU server (including DGX)
Documentation
| Guide | When to read it |
|---|---|
| Install & Integration | Host + Docker install, attach(), vLLM plugin, troubleshooting |
| DGX notes | Extra detail from a DGX Spark inference-service setup |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_inspector-0.6.0.tar.gz.
File metadata
- Download URL: llm_inspector-0.6.0.tar.gz
- Upload date:
- Size: 335.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e31654e6fdd984c91a169120e9f7234c69601da85d1d6659c8a6481ef4cb277
|
|
| MD5 |
13d06ea5b6df6981b3e6d8bac9d4952b
|
|
| BLAKE2b-256 |
7ad1de20546ed0f3590ab0026a204fc59f9053eed15611f9f0c0d1f76747d202
|
Provenance
The following attestation bundles were made for llm_inspector-0.6.0.tar.gz:
Publisher:
publish.yml on helasaoudi/llm-inspector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_inspector-0.6.0.tar.gz -
Subject digest:
1e31654e6fdd984c91a169120e9f7234c69601da85d1d6659c8a6481ef4cb277 - Sigstore transparency entry: 2191851620
- Sigstore integration time:
-
Permalink:
helasaoudi/llm-inspector@5963f3bb1883d4c80790632b83e663983f678b17 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/helasaoudi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5963f3bb1883d4c80790632b83e663983f678b17 -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_inspector-0.6.0-py3-none-any.whl.
File metadata
- Download URL: llm_inspector-0.6.0-py3-none-any.whl
- Upload date:
- Size: 102.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49b89d4354c7ecf008f50f48ed7fc74e411200c3e9f0d289e701c2500181875e
|
|
| MD5 |
7d63a2e1eeeea1c58d73bfff90d06590
|
|
| BLAKE2b-256 |
2258afbb3c8ae951eeb9c24475cb38175847d97176f23ef1198b8b81ddedd192
|
Provenance
The following attestation bundles were made for llm_inspector-0.6.0-py3-none-any.whl:
Publisher:
publish.yml on helasaoudi/llm-inspector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_inspector-0.6.0-py3-none-any.whl -
Subject digest:
49b89d4354c7ecf008f50f48ed7fc74e411200c3e9f0d289e701c2500181875e - Sigstore transparency entry: 2191851626
- Sigstore integration time:
-
Permalink:
helasaoudi/llm-inspector@5963f3bb1883d4c80790632b83e663983f678b17 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/helasaoudi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5963f3bb1883d4c80790632b83e663983f678b17 -
Trigger Event:
release
-
Statement type: