Skip to main content

A faster, columnar TensorBoard-style scalar viewer for many series and many runs.

Project description

tb_like

A faster, columnar TensorBoard-style scalar viewer — built for many series and many runs.

TensorBoard re-parses event files on demand and gets slow when a run has tens of thousands of scalar series across hundreds of experiments. tb_like instead converts TensorBoard event files into per-run Parquet once, then serves downsampled series on demand to a fast Plotly dashboard. New events are picked up incrementally in the background.

Why it's fast

  • Convert once, read many. Each run's events.out.tfevents.* are parsed into a columnar Parquet file sorted by (tag, step), with row-group statistics so a query for a few tags only touches the matching row groups — even when a run has ~18k series.
  • Incremental & idempotent. Ingestion tracks each event file's size and record count, so re-scans only parse new data. A background watcher keeps the cache in sync; parsing is parallelized across event files with joblib.
  • Lazy, prioritized rendering. The dashboard renders charts only as they scroll into view, fetched through a priority queue (visible first, then neighbors, biased toward the scroll direction).
  • LTTB downsampling keeps long curves cheap to draw without losing their shape.

Install

pip install tb-like
# or
uv tool install tb-like

Quick start

A "run" is a directory containing events.out.tfevents.* files. Point tb_like at a directory of runs and open the dashboard — that's it:

my_runs/
  run_a/  events.out.tfevents.*  config.yaml
  run_b/  events.out.tfevents.*
  ...
tblike my_runs --port 8000 --jobs 8
# open http://127.0.0.1:8000

The background watcher discovers runs under the folder, converts any that changed to Parquet (parsing event files across --jobs worker processes), keeps the cache in sync, and serves them — no separate build step. The cache lives in <runs_dir>/.tblike_cache by default (override with --cache-dir).

Dashboard features

  • Hierarchical, searchable tag tree (regex filter) with smart grouping: path compression of a.b.c chains, numeric-enumeration collapsing (…expert_idx_∗), and layer indices kept as their own levels.
  • Multi-run overlay, unified hover, EMA smoothing, log-y, step vs. relative-time x-axis, and outlier clipping by value percentiles.
  • Collapsible per-group chart sections, resizable sidebar, and a one-click Refresh selected that re-ingests from disk and rebuilds the plots.
  • Text diff panel (pinned at the bottom): compare logged text summaries — typically the run config — between any two runs/steps as a git-style diff.

Text summaries are ingested as event files are parsed, so new runs get them automatically. For runs converted by an older version (before text support), attach text without re-parsing scalars by running tblike backfill-text <runs_dir> — or just hit Refresh selected in the UI, which backfills any selected run that's missing text.

CLI

tblike <runs_dir> [--port P] [--host H] [--cache-dir D] [-j JOBS] [--no-watch]
                                            # the main command: serve + auto-ingest

Advanced / scriptable subcommands:

tblike convert RUN_DIR [RUN_ID] [-j JOBS]   # ingest one run into Parquet (one-off)
tblike scan                                 # one incremental ingest pass, no server
tblike backfill-text RUNS_DIR [-j JOBS]     # attach text (configs) to old caches

How it stores data

cache/<run_id>/
    data/seg-00000.parquet   # one immutable segment per ingest pass
    index.json               # tags, per-file ingest state, metadata
    meta.json                # tiny summary used for fast run listing

Reads union all segments and de-duplicate (tag, step) by latest wall_time.

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tb_like-0.1.9.tar.gz (41.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tb_like-0.1.9-py3-none-any.whl (46.3 kB view details)

Uploaded Python 3

File details

Details for the file tb_like-0.1.9.tar.gz.

File metadata

  • Download URL: tb_like-0.1.9.tar.gz
  • Upload date:
  • Size: 41.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for tb_like-0.1.9.tar.gz
Algorithm Hash digest
SHA256 4748d170296434e2e2c10686cb903a5ab8ba06fe98530e4ae3ea3d6b774b7976
MD5 ad9eb04b0d477c7c2f4f3be0a311325d
BLAKE2b-256 f00618a9b462b0bd5e1e996fe5054e0123e29102b06f231dea70ab10ff19852e

See more details on using hashes here.

File details

Details for the file tb_like-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: tb_like-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 46.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for tb_like-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 accc5f6df53d9998d0ab2268f2b91b3304a7c9413fae5db9cd4d4127f45f4e89
MD5 d4e370f2040bd07d35b400114a57ee1f
BLAKE2b-256 d4a4674b76defce22f3b7f3a56e42db07b3231ce712e4dbf97b23970908e49e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page