LogLog
Lightweight, local-first Weights & Biases drop-in and TensorBoard alternative built for deep learning and LLM scaling research.
Zero API keys. Zero accounts. Zero Docker, Postgres, or TensorFlow dependencies. LogLog writes plain, rsync-able files on disk with <10 µs logging overhead, ingests existing TensorBoard tfevents side-by-side without conversion, and serves a fast interactive uPlot dashboard built for log-log scaling laws, matched-X Δ comparisons, and single-file offline .html reports.
Live dashboard comparing a streaming TensorBoard run (tb · live) alongside native LogLog runs (ll) on log-log token axes, with pinned Δ baseline (1b-adamw), exact synced crosshairs across all panels, and an interpolated Matched-X Eval Loss Delta chart.
Why LogLog?
| Capability | LogLog | Weights & Biases | TensorBoard |
|---|---|---|---|
| Setup & Auth | pip install loglog-ml — zero keys, zero accounts |
Cloud account / API key (or heavy self-hosted stack) | Local, pulls TensorFlow/protobuf stack |
| Logging Hot Path | <10 µs median (non-blocking background writer) | Local agent + network sync daemon | Synchronous TFRecord event writer |
Log-Log Scaling & Matched-X Δ |
1-click X: Log / Y: Log, Tokens X-axis, interpolated run − baseline |
Manual custom charts / limited baseline diffs | Linear/log Y only; no matched-X delta |
TensorBoard tfevents |
Built-in pure-Python incremental reader (zero TF deps), side-by-side with LogLog runs | Requires sync/import step | Native |
| Storage & Portability | Plain JSONL / Parquet + SHA-256 blobs + regenerable SQLite cache (rsync-friendly) |
Cloud database / opaque sync files | Binary tfevents protobuf files |
| Code & Config Diffs | Auto git commit, dirty code.patch, env.txt, diff-only hyperparameter table |
Cloud UI | Not built-in |
| Shareable Reports | Single self-contained offline .html file + local /r/<hash> permalink |
Hosted cloud link | Static image export only |
Installation
pip install loglog-ml
Package vs. Import Name: Install
loglog-mlfrom PyPI; the Python import (import loglog) and CLI command (loglog) areloglog.
Optional extras:
# Background GPU/CPU telemetry (NVML + psutil)
pip install "loglog-ml[telemetry]"
# Optional Parquet compaction on run.finish() (pyarrow; enable via LOGLOG_PARQUET=1)
pip install "loglog-ml[parquet]"
# Both
pip install "loglog-ml[telemetry,parquet]"
Or install directly from GitHub:
pip install "loglog-ml @ git+https://github.com/errantdata/loglog.git"
Quickstart
Option 1 — One-Line Drop-In Replacement (import loglog as wandb)
Swap your import and keep your existing W&B training loop:
import loglog as wandb
run = wandb.init(
project="scale-1b",
name="1b-muon-qk",
config={"optimizer": "muon", "lr": 1.5e-3, "qk_norm": True, "d_model": 2048},
)
run.define_metric("eval/*", step_metric="progress/tokens_billions")
for step in range(1, 401):
wandb.log(
{
"progress/tokens_billions": step * 0.025,
"train/step_loss": train_loss,
"eval/loss": eval_loss,
"eval/accuracy": eval_acc,
"train/lr": lr,
},
step=step,
)
run.finish()
Option 2 — Zero Code Changes (--shim-wandb)
Run existing PyTorch, Hugging Face Trainer, Accelerate, or Lightning scripts verbatim without modifying a single line or setting WANDB_API_KEY:
loglog run --shim-wandb --project scale-1b -- python train.py
loglog run --shim-wandb injects a temporary wandb shim onto PYTHONPATH so every import wandb routes transparently to LogLog.
Option 3 — Launch the Dashboard (LogLog + TensorBoard Side-by-Side)
Point loglog serve at one or more .loglog/ directories, TensorBoard tfevents directories, or both together:
# Serve local ./.loglog automatically
loglog serve --open
# Combine native LogLog runs and existing TensorBoard logs side-by-side
loglog serve ./.loglog ./tb_logs --port 6060 --open
Interactive Dashboard
Scaling Curves, Synced Crosshairs & Customizable Layout
- Resizable & Foldable Sidebar: Drag the sidebar edge (
228–560 px), double-click the divider to reset, snap-collapse to a compact icon rail, or fold individual sections (Chart Defaults, Runs, Quick Add Metric, Layout Views). State persists automatically inlocalStorage. - Customizable Run KPI Strip: Displays a single-row ribbon for one run or top-accented comparison cards for multiple runs, complete with completion progress bars, live
tb · livestreaming badges, inline color pickers, double-click run renaming,★ Pin Δbaseline selection, and a Customize KPIs editor. - Exact Synced Crosshairs & Interactive Legends: Every chart displays a top-docked legend with solid/dashed line swatches and a toggleable
Statstable (Latest, Min, Max, Points). Hover a legend pill to isolate a curve, click to toggle visibility, or Shift+Click / double-click to solo. Moving the cursor over any plot draws a synchronized vertical hairline and exact pixel-segment intersection dots across all charts at the matching X value. - Clean Per-Panel Popover Controls: Each card exposes compact
Axes,Smooth,Export(PNG + publication-ready vector SVG), andPanel(Edit, Full / ½ / ⅓ width, Reorder, Duplicate, Remove) popovers. - Saved Views & Themes: Save dashboard layouts to the local SQLite store, export/import views as JSON, and switch between Dark, Light, and Paper themes.
Custom Panels, Per-Panel Axes & Derived Math Expressions
Click + Add Chart Panel (or any metric in Quick Add Metric) to build custom visualizations with independent controls per panel:
- Three Panel Modes:
- Scalar Line: Plot one or more Y metrics on the same panel with distinct dash styles.
- Matched-X
Δ(run − baseline): Linearly interpolates each run against your pinned baseline at matched X values (tokens, step, wall hours, or any scalar metric) with ay = 0reference line. - Math Formula: Plot live derived expressions such as
exp(eval/loss),eval/loss - train/step_loss,log10(train/grad_norm), oreval/accuracy / 100.
- Independent Y & X Axes: Override any panel's Y scale (
Global,Linear,Log-10), Y unit format (nats,pct,kps,delta,auto), explicit Y min/max bounds, X-axis source (Step,Tokens,Wall Hours, or any specific scalar metric), and independent EMA smoothing + raw ghost overlay.
Diff-Only Hyperparameter Comparison
Switch to Config Diff to compare hyperparameters across selected runs. Diff Only: ON automatically hides identical parameters and highlights only what changed:
Code Diffs, 2-Tier Artifacts, Tables & Environment
Switch to Code & Artifacts (or click Inspect on any run card) to verify exact reproducibility without leaving the dashboard:
- Automatic Code & Env Capture: Every LogLog run automatically records its
gitcommit, branch, remote, dirty working-treecode.patch, host/GPU metadata, andenv.txtpackage freeze. View a single run's patch or diff two runs against each other. - 2-Tier Artifacts (No Weight Bloat): Small files and directories (
≤ 50 MiBby default, configurable viaLOGLOG_BLOB_MAX_MB) are content-addressed and deduplicated into.loglog/blobs/sha256/. Large checkpoints and datasets are stored as lightweight immutable manifests (paths, sizes, hashes, metadata) orfile://references so multi-GB weights are never copied. - Tables & Media: Inspect logged
wandb.Table,wandb.plot.bar/line/scatter,wandb.Histogram,wandb.Image, andwandb.Htmlpayloads directly in the browser.
Frozen Shareable Snapshot Reports
Freeze any experiment comparison into an immutable snapshot — either from the Frozen Reports tab in the UI or via loglog freeze on the CLI:
Each frozen report produces:
- A single self-contained offline
.htmlfile containing the interactiveuPlotviewer, Markdown narrative, KPI cards, config diff table, and frozen metric data. Open it directly from disk, attach it to a GitHub PR, email it, or drop it in Slack — no server or internet connection required, while keeping full interactive pan/zoom, smoothing, log/linear toggles, theme switching, and SVG export. - A content-hashed local permalink (
/r/<hash>) served automatically byloglog serve.
loglog freeze ./.loglog ./tb_logs \
--title "1.2B Optimizer & Attention Scaling Study (10B Tokens)" \
--description "Muon + QK-Norm vs Sliding-Window Attention (tfevents) vs AdamW" \
--markdown-file notes/scaling_summary.md \
--baseline scale-1b/adamw001 \
--x-mode tokens \
--max-step 400 \
-o reports/scale-1b-report.html
W&B Drop-In SDK Reference
Supported APIs
| Feature | API | Behavior in LogLog |
|---|---|---|
| Lifecycle | init(), finish(), run, with loglog.init(...) as run: |
Local run creation, atexit + SIGINT/SIGTERM flush, resume (must/allow/never) |
| Disabled / Rank>0 Stub | mode="disabled" or WANDB_DISABLED=1 |
Returns zero-overhead DisabledRun no-op stub |
| Auth | login(...) |
Silent no-op returning True (no API key needed) |
| Scalars & Media | log(data, step=..., commit=...), define_metric(...) |
<10 µs bounded async queue; handles Python/NumPy/PyTorch/JAX scalars & nested dicts |
| Config & Summary | config, summary (run.config & module proxies) |
Dot/dict access, .update(), allow_val_change, atomic config.json & summary.json |
| Alerts & Files | alert(title, text, level=AlertLevel.INFO), save(), log_code() |
Persisted to alerts.jsonl (shown as chart markers) and files/ |
| 2-Tier Artifacts | Artifact, run.log_artifact(), run.use_artifact(), artifact.download() |
SHA-256 deduplicated blobs (≤ 50 MiB) or lightweight manifests/references |
| Tables & Plots | Table, Image, Html, Histogram, plot.{bar,line,scatter,histogram} |
Persisted under media/ and rendered in the Inspector tab |
| Programmatic Query | loglog.Api() |
Read-only local query client (api.runs(), api.run(), scan_history(), history()) |
| Runtime Shim | loglog.shim_wandb() |
Registers loglog as sys.modules["wandb"] in-process |
Querying Runs Programmatically (loglog.Api)
import loglog
api = loglog.Api(root_dir="./.loglog")
for run in api.runs("scale-1b"):
print(run.name, run.state, run.summary.get("eval/loss"))
df = run.history(keys=["progress/tokens_billions", "eval/loss"], pandas=True)
artifacts = run.logged_artifacts()
Environment Variables
LogLog honors both LOGLOG_* and standard WANDB_* environment variables (LOGLOG_* takes precedence):
| Variable | Fallback | Purpose |
|---|---|---|
LOGLOG_DIR |
WANDB_DIR |
Base directory for .loglog/ (default: ./.loglog) |
LOGLOG_PROJECT |
WANDB_PROJECT |
Default project name |
LOGLOG_NAME |
WANDB_NAME |
Run display name |
LOGLOG_RUN_GROUP |
WANDB_RUN_GROUP |
Run group identifier |
LOGLOG_RUN_ID |
WANDB_RUN_ID |
Explicit run ID (for resuming) |
LOGLOG_MODE |
WANDB_MODE / WANDB_DISABLED |
local (default), offline, or disabled |
LOGLOG_TELEMETRY |
— | Set to 1 (or interval in seconds) to enable background GPU/CPU telemetry |
LOGLOG_SAVE_UNTRACKED |
— | Set to 1 to include untracked source files in code.patch |
LOGLOG_PARQUET |
— | Set to 1 to compact metrics.jsonl into metrics.parquet on finish() (requires loglog-ml[parquet]) |
LOGLOG_BLOB_MAX_MB |
— | Size threshold for 2-tier artifact blobs vs. manifests (default: 50) |
CLI Reference
# Start the local web dashboard (supports multiple .loglog and tfevents roots)
loglog serve [PATHS...] [--host 127.0.0.1] [-p 6060] [--state-dir DIR] [--open] [-q]
# Launch a training command with LogLog env vars and optional `import wandb` shim
loglog run [--shim-wandb] [--project P] [--name N] [--group G] [--dir D] [--telemetry] [--save-untracked] -- <COMMAND...>
# Freeze an immutable snapshot report + standalone offline .html file
loglog freeze [PATHS...] --title TITLE [--description TEXT] [--markdown TEXT | --markdown-file FILE] \
[--runs KEYS] [--baseline KEY] [--max-step N] [--x-mode step|tokens|wall|metric] [--x-metric NAME] [-o OUT.html]
# List discovered LogLog and TensorBoard runs from the terminal
loglog ls [PATHS...] [--state-dir DIR] [--json]
On-Disk Storage Layout
Every file inside .loglog/ is plain, inspectable, and safe to rsync between GPU clusters and your laptop. Delete index.sqlite at any time — LogLog regenerates it cleanly on startup.
.loglog/
├── index.sqlite # Regenerable SQLite cache (runs, metrics, saved views)
├── blobs/
│ └── sha256/ # Content-addressed deduplicated small artifacts (≤ 50 MiB)
├── reports/
│ └── <hash>/
│ ├── report.json # Immutable frozen report payload
│ └── report.html # Self-contained offline interactive HTML report
└── <project>/
└── <run_id>/
├── meta.json # Run metadata, git commit/branch, host & GPU info
├── config.json # Hyperparameters (atomic JSON)
├── summary.json # Latest & min/max metric summary
├── metrics.jsonl # Append-only scalar log (live-tailed while running)
├── metrics.parquet # Optional compacted Parquet (with `loglog-ml[parquet]`)
├── alerts.jsonl # Logged alert markers
├── artifacts.json # 2-tier artifact & checkpoint manifests
├── code.patch # Dirty git diff captured at run start
├── env.txt # Python package freeze
└── media/ # Tables, custom charts, images, histograms, HTML
Development
git clone https://github.com/errantdata/loglog.git
cd loglog
# Create virtualenv and install editable package with dev tools
uv venv && source .venv/bin/activate
uv pip install -e ".[dev,parquet]"
# Run tests and linter
pytest -v
ruff check src tests
To rebuild the frontend bundle (Preact + Vite + uPlot + single-file report template):
cd web
npm install
npm run build # Outputs compiled SPA + report_template.html into src/loglog/server/static/
Explicit Non-Goals
LogLog stays intentionally fast, small, and dependency-light by not attempting to be:
- A hosted SaaS platform or multi-tenant cloud service with RBAC/SSO.
- A distributed hyperparameter sweep orchestrator or GPU cluster job scheduler.
- A binary checkpoint weight storage server (checkpoints are indexed by manifest/reference, never duplicated).
License
MIT — see LICENSE.
Metadata
Release files for loglog-ml 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| loglog_ml-0.1.1.tar.gz | 2.4 MB | With provenance | Details for loglog_ml-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| loglog_ml-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for loglog_ml-0.1.1-py3-none-any.whl |
Total release size: 2.6 MB
Release files / loglog_ml-0.1.1.tar.gz
| Download URL | loglog_ml-0.1.1.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1525f079a92ac84885136c47d3e151b3f08a570ed63f5347e8bf462cf194a18
|
|
BLAKE2b-256 checksum How to use checksums |
9402c9671aaa983261978524efe033e74dc50ea2624cced44449a617e7f7d66c
|
| 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 logRelease files / loglog_ml-0.1.1-py3-none-any.whl
| Download URL | loglog_ml-0.1.1-py3-none-any.whl |
|---|---|
| Size | 219.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69dece0a9c469c068ce3b1476e3f26b033cc3f17a642f9ace11bf956b7e3b88c
|
|
BLAKE2b-256 checksum How to use checksums |
efc68032f37e0b0dff33c087d220006b1967686ce9c6e306b60e20d946880d10
|
| 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 logSecurity for loglog-ml 0.1.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.
Attestation for loglog_ml-0.1.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 Nov 30, 2026.
Transparency logA 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.