Skip to main content

tinker-inspect

CI

Zero-dependency CLI and single-file HTML diagnostics viewer for Tinker RL (tinker-cookbook) runs, live monitoring (watch), paired eval diffs (diff), run comparisons (compare), and multi-checkpoint progressions (series).

Point it at any Tinker log_path directory (metrics.jsonl, config.json, timing_spans.jsonl, checkpoints.jsonl, iteration_*/train_rollout_summaries.jsonl) for an instant terminal health check and self-contained, zero-CDN .html report.

Live Demos

Browse all interactive reports at brunose.github.io/tinker-inspect:

Demo What it shows
8-Arm Zero-Shot AIME 2024+2025 (series) Complete 60/60 ladder @ 4,096 tok: Qwen3-4B BF16 Think ON 2.5% & Think OFF 20.8% → Inkling Base CoT 59.2% → Base TIR 69.2% → Step-16 TIR v1 80.8% (1,639 tok) → Step-16 TIR v2 76.7%.
Multi-Turn TIR RL + 3 Eval Tabs (inspect) One report with 3 paired eval tabs (AIME 24+25 +11.7 pp, Polaris 1/8 OOD +15.6 pp, Held-Out +10.9 pp), pre-filter reward (0.527 → 0.703), 1.86× prefill, and 50% sampling idle wait.
OOD Olympiad 1/8 Progression (series) 6-arm 48-task paired progression from 25.0% → 50.0% (+25.0 pp [+14.6, +36.5], 2.0× Base CoT, strict 4096-to-4096).
TIR RL v1 vs v2 (compare) Side-by-side 3072 sync vs 4096 stream_minibatch showing +43% length drift, 53% cross-step idle wait, and an upstream post-filter summary bug.
Run #1 vs Run #2 (compare) Acting on truncation alerts cut max_tokens cutoffs 61.3% → 19.8% and turned a flat run into +10.9 pp.
Qwen3.5-4B Git Tool RL (inspect) 3.45× multi-turn prefill amplification (~76% cacheable), 71% constant-reward drop rate, and timing Gantt.

What It Catches

  • Hidden constant-reward drop rates: Reconciles pre-filter train_rollout_summaries.jsonl against post-filter metrics.jsonl to surface true reward progression and mixed / all_good / all_bad group drop rates.
  • Multi-turn prefill & cost: Reads native tokens/* and cost/* from tinker-cookbook, falling back to exact turn-by-turn reconstruction (sum(ob_len) vs final_ob_len, cache-hit split). Pass --rates or --fetch-pricing for offline/live cost estimates.
  • KL0 drift, truncation & stragglers: Checks kl_sample_train_v1/_v2, flags max_tokens/max_turns/timeouts, and maps timing_spans.jsonl (with group_idx links) into an interactive per-step Gantt.
  • Paired evals & multi-arm series: Supports JSONL and .jsonl.zst (including Prime hosted traces), deterministic paired/clustered 95% bootstrap CIs, Ended How decomposition, and side-by-side transcripts.

Quick Start

Python 3.11+ stdlib only (zero runtime dependencies):

# Run directly with uvx
uvx --from git+https://github.com/BrunoSE/tinker-inspect tinker-inspect /path/to/log_dir

# Attach multiple before/after eval pairs as interactive tabs (.jsonl or .jsonl.zst)
tinker-inspect /path/to/log_dir \
  --eval-before base_heldout.jsonl --eval-after final_heldout.jsonl \
  --base-label "Base Held-Out" --final-label "Final Held-Out" \
  --eval-before base_ood.jsonl --eval-after final_ood.jsonl \
  --base-label "Base OOD" --final-label "Final OOD" \
  --sanitize-paths --out report.html --open

# Default HTML outputs refuse silent overwrite; pass --force (or --out / --no-html)
tinker-inspect /path/to/log_dir --force

# JSON output or CI health gate (exits 2 on FAIL)
tinker-inspect /path/to/log_dir --json --no-html
tinker-inspect /path/to/log_dir --strict --no-html

# Standalone paired eval diff (with cluster bootstrap + regression gate)
tinker-inspect diff base.jsonl.zst final.jsonl.zst --cluster-by family --fail-if-regression success

# Overlay two runs side-by-side
tinker-inspect compare run_a/ run_b/ --out compare.html

# Multi-checkpoint / multi-method progression report
tinker-inspect series "Base=base.jsonl" "Step 16=s16.jsonl" "TIR RL=tir.jsonl" --out series.html

# Live-monitor an active run (exits 2 immediately on KL0 drift or health failure)
tinker-inspect watch /path/to/active/log_dir --interval 5 --fail-fast

Development

uv run ruff check src tests
uv run ruff format --check src tests
uv run pytest -v

License

MIT

Metadata

Release files for tinker-inspect 0.4.0

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

Source distribution (sdist)

Source distribution for tinker-inspect 0.4.0
File Size Uploaded Provenance Actions
tinker_inspect-0.4.0.tar.gz 108.6 kB With provenance Details for tinker_inspect-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tinker-inspect 0.4.0
File Interpreter ABI Platform Actions
tinker_inspect-0.4.0-py3-none-any.whl Python 3 none any Details for tinker_inspect-0.4.0-py3-none-any.whl

Total release size: 204.7 kB

Release files / tinker_inspect-0.4.0.tar.gz

Download URL tinker_inspect-0.4.0.tar.gz
Size 108.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cca3797fe23664d523d6e520c12c4385053f03b65b860598de1d6c7642230f57
BLAKE2b-256 checksum
How to use checksums
3b137a7a819777708da471e8ef5c1ef1e3e085ec883bdc0e84d994dd796dc4ee
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 Nov 30, 2026.

Transparency log

Release files / tinker_inspect-0.4.0-py3-none-any.whl

Download URL tinker_inspect-0.4.0-py3-none-any.whl
Size 96.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45cd5c968f36576c96ddc2ac67612e0e19399244c0d04fc4730801d1f932a32a
BLAKE2b-256 checksum
How to use checksums
ae366db77468c8d25fe1f84770d26dd2aaedb6559df1831bd58b58c36be7306b
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 Nov 30, 2026.

Transparency log

Security for tinker-inspect 0.4.0

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 tinker_inspect-0.4.0.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 Nov 30, 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.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files Full provenance

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