Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

Repository files navigation

LLM Measurement Guides

Nine guides to LLM usage, with commands and output from released tools. An evidence page explains what can be shared and retained with summaries.

Current command examples pin fleetdiff v0.8.0. Collector configuration remains at v0.3.2, Helm chart at 0.3.4, and llm-sketchkit at v0.3.0. Historical evidence retains the versions and source revisions used for those measurements.

Question Page
Which user is driving my LLM token spike? Token spike
Who is tokenmaxxing? Find your heaviest AI token users Tokenmaxxing
Why did our LiteLLM usage jump, and are the spend logs complete? LiteLLM spend
LiteLLM session over its budget? Check what the budget counts Session budget
Prompt cache hit rate dropped after an update? Find whose uncached input grew Cache check
How do I see LLM usage per user without a metric label for every user? Per-user metrics
How do I detect anomalies in LLM token consumption? Anomalies
Do my LLM traces record token usage and user IDs? Trace check
How do I count distinct LLM users without storing user IDs? Distinct users
Why summaries instead of raw logs Summaries

Build And Check

Requires Python 3.11 or later. The static-site builder uses only the standard library.

python3 scripts/build.py
python3 -m unittest discover -s scripts -p 'test_*.py'
python3 scripts/check.py

Open docs/index.html in a browser. The site uses Plausible for visitor analytics. The guides are static HTML and require no account or external fonts to read.

The outsider check extracts the exact command blocks from each guide, runs them in separate new temporary directories with fresh caches, and checks the displayed output against the captured output. It downloads public release artifacts and verifies the fleetdiff checksums and attestations. It needs Git, curl, gh, shasum, tar, Python 3.11+, and Go 1.26.9 or later for the synthetic history generator. Run it outside a cloud-synced folder:

python3 scripts/outsider.py --output evidence/local

Machine, versions, source tags, methods and commands for the checked examples are recorded in evidence/README.md.

Publishing

The generated docs/ directory is ready for branch-based GitHub Pages hosting. Enable it only after the page text has been reviewed and merged. Sitemap and canonical URLs use https://llm-measurement.github.io/; they become live on publication. This scaffold does not enable hosting or change repository settings.

Change the source pages, rebuild, and check the generated diff in the same PR. The public Google verification file at the repository root is copied unchanged into docs/, outside the generated-assets cleanup, for Search Console verification. Keep results tied to released versions. Each guide keeps a short interpretation line linked to the shared Measurement notes section on the summaries page. Commits must be signed and signed off (git commit -s -S).

Licensed under Apache-2.0. The sessions image comes from fleetdiff under the same license.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages