Metadata-Version: 2.5
Name: loglog-ml
Version: 0.1.0
Summary: Lightweight, local-first W&B drop-in & TensorBoard alternative for deep learning and LLM research.
Project-URL: Homepage, https://github.com/errantdata/loglog
Project-URL: Repository, https://github.com/errantdata/loglog
Project-URL: Issues, https://github.com/errantdata/loglog/issues
Author-email: "Sean A. Cantrell, PhD" <sean.a.cantrell@gmail.com>
License: MIT License
        
        Copyright (c) 2026 Sean A. Cantrell, PhD
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: deep-learning,experiment-tracking,machine-learning,scaling-laws,tensorboard,wandb
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Requires-Dist: fastapi>=0.115.0
Requires-Dist: uvicorn[standard]>=0.30.0
Provides-Extra: all
Requires-Dist: httpx>=0.27.0; extra == 'all'
Requires-Dist: nvidia-ml-py>=12.0.0; extra == 'all'
Requires-Dist: psutil>=5.9.0; extra == 'all'
Requires-Dist: pyarrow>=15.0.0; extra == 'all'
Requires-Dist: pytest>=8.0.0; extra == 'all'
Requires-Dist: ruff>=0.6.0; extra == 'all'
Provides-Extra: dev
Requires-Dist: httpx>=0.27.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: ruff>=0.6.0; extra == 'dev'
Provides-Extra: parquet
Requires-Dist: pyarrow>=15.0.0; extra == 'parquet'
Provides-Extra: telemetry
Requires-Dist: nvidia-ml-py>=12.0.0; extra == 'telemetry'
Requires-Dist: psutil>=5.9.0; extra == 'telemetry'
Description-Content-Type: text/markdown

# LogLog

**Lightweight, local-first, zero-API-key Weights & Biases drop-in & TensorBoard alternative for deep learning and LLM research.**

## Highlights

- **Zero-API-Key W&B Drop-In SDK:** Replace `import wandb` with `import loglog as wandb`, or launch unmodified PyTorch / HuggingFace / Lightning scripts with `loglog run --shim-wandb -- python train.py ...`.
- **Plain, `rsync`-able On-Disk Storage:** No Docker, no Postgres, no ClickHouse, no TensorFlow dependency. Runs live in `.loglog/<project>/<run_id>/` with atomic JSON metadata, append-only `metrics.jsonl`, `code.patch`, `env.txt`, and 2-tier content-addressed / manifest artifacts.
- **Native Incremental `tfevents` Ingestion:** Pure-Python byte-offset TFRecord+protobuf reader serves `.loglog/` runs and raw TensorBoard `tfevents` directories side-by-side on the exact same charts.
- **Customizable Scaling-Law Dashboard (`loglog serve`):**
  - Global X-axis switcher (`Step`, `Tokens` via logged metric or multiplier, `Wall Time`, or any logged metric), `X: Log` / `Y: Log`, EMA smoothing, and live auto-refresh.
  - Compact color-accented KPI cards with customizable metric slots and click-to-pin baseline.
  - Matched-X `Δ` (`run − baseline`) charts with linear interpolation across unaligned steps.
  - Add, remove, resize, reorder, and configure panels (multi-metric overlay, custom expressions like `exp(eval/loss)`, custom Y ranges & units) and persist layouts as **Saved Views**.
  - Diff-only hyperparameter table, side-by-side `code.patch` diff inspector, and artifact/media viewer.
- **Frozen Shareable Snapshot Reports (`loglog freeze` / UI "Freeze Report"):**
  - Interleave Markdown narrative, pinned interactive `uPlot` panels, KPI cards, diff-only config tables, code diffs, and artifacts — frozen at an immutable step/token snapshot.
  - Export as a **single self-contained offline `.html` file** or share via local server permalink (`/r/<hash>`).

## Quickstart

```bash
pip install loglog-ml
# Optional GPU/CPU telemetry & Parquet export extras:
pip install "loglog-ml[telemetry,parquet]"
# Or install directly from GitHub:
pip install git+https://github.com/errantdata/loglog.git
```

The PyPI package name is `loglog-ml`, while the Python import (`import loglog`) and CLI (`loglog`) stay short and clean.

### Drop-In Python SDK

```python
import loglog as wandb

wandb.login()  # silent local-first no-op
run = wandb.init(project="scale1b", name="mom-par-l16", config={"lr": 3e-4, "layers": 24})
wandb.define_metric("cumulative_tokens", summary="max")
wandb.define_metric("eval/*", step_metric="cumulative_tokens")

for step in range(1, 100):
    wandb.log({"train/loss": 4.0 / (step ** 0.25), "cumulative_tokens": step * 524288}, step=step)

wandb.finish()
```

### Unmodified W&B Scripts (Zero Code Changes)

```bash
loglog run --shim-wandb --project my-llm -- python train.py --use-wandb
```

### Serve Live Dashboard (LogLog + TensorBoard Side-by-Side)

```bash
loglog serve ./.loglog /path/to/tb_logs/scale1b --port 6060
```

### Freeze an Offline Shareable HTML Report

```bash
loglog freeze ./.loglog --title "1.26B Scaling Run" --output report.html
```
