loglog-ml 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- loglog_ml-0.1.0/.github/workflows/ci.yml +37 -0
- loglog_ml-0.1.0/.github/workflows/publish.yml +50 -0
- loglog_ml-0.1.0/.gitignore +27 -0
- loglog_ml-0.1.0/LICENSE +21 -0
- loglog_ml-0.1.0/PKG-INFO +124 -0
- loglog_ml-0.1.0/README.md +64 -0
- loglog_ml-0.1.0/pyproject.toml +76 -0
- loglog_ml-0.1.0/src/loglog/__init__.py +485 -0
- loglog_ml-0.1.0/src/loglog/cli.py +227 -0
- loglog_ml-0.1.0/src/loglog/sdk/__init__.py +1 -0
- loglog_ml-0.1.0/src/loglog/sdk/api.py +208 -0
- loglog_ml-0.1.0/src/loglog/sdk/capture.py +172 -0
- loglog_ml-0.1.0/src/loglog/sdk/config.py +145 -0
- loglog_ml-0.1.0/src/loglog/sdk/run.py +832 -0
- loglog_ml-0.1.0/src/loglog/sdk/summary.py +123 -0
- loglog_ml-0.1.0/src/loglog/sdk/telemetry.py +116 -0
- loglog_ml-0.1.0/src/loglog/sdk/types.py +481 -0
- loglog_ml-0.1.0/src/loglog/sdk/writer.py +184 -0
- loglog_ml-0.1.0/src/loglog/server/__init__.py +1 -0
- loglog_ml-0.1.0/src/loglog/server/app.py +288 -0
- loglog_ml-0.1.0/src/loglog/server/static/assets/index-Bvdhw2gO.css +1 -0
- loglog_ml-0.1.0/src/loglog/server/static/assets/index-C4BFgHF7.js +66 -0
- loglog_ml-0.1.0/src/loglog/server/static/index.html +13 -0
- loglog_ml-0.1.0/src/loglog/server/static/report_template.html +73 -0
- loglog_ml-0.1.0/src/loglog/storage/__init__.py +1 -0
- loglog_ml-0.1.0/src/loglog/storage/index.py +247 -0
- loglog_ml-0.1.0/src/loglog/storage/layout.py +341 -0
- loglog_ml-0.1.0/src/loglog/storage/reader.py +161 -0
- loglog_ml-0.1.0/src/loglog/storage/reports.py +320 -0
- loglog_ml-0.1.0/src/loglog/storage/scanner.py +431 -0
- loglog_ml-0.1.0/src/loglog/storage/tfevents.py +415 -0
- loglog_ml-0.1.0/tests/test_sdk.py +308 -0
- loglog_ml-0.1.0/tests/test_server_and_reports.py +197 -0
- loglog_ml-0.1.0/tests/test_tfevents.py +121 -0
- loglog_ml-0.1.0/web/index.html +12 -0
- loglog_ml-0.1.0/web/package-lock.json +2181 -0
- loglog_ml-0.1.0/web/package.json +24 -0
- loglog_ml-0.1.0/web/report_template.html +13 -0
- loglog_ml-0.1.0/web/src/App.tsx +850 -0
- loglog_ml-0.1.0/web/src/ReportApp.tsx +245 -0
- loglog_ml-0.1.0/web/src/components/CodeArtifactInspector.tsx +361 -0
- loglog_ml-0.1.0/web/src/components/ConfigDiffTable.tsx +122 -0
- loglog_ml-0.1.0/web/src/components/KpiEditorModal.tsx +162 -0
- loglog_ml-0.1.0/web/src/components/KpiStrip.tsx +210 -0
- loglog_ml-0.1.0/web/src/components/MetricChart.tsx +1213 -0
- loglog_ml-0.1.0/web/src/components/PanelEditorModal.tsx +461 -0
- loglog_ml-0.1.0/web/src/components/ReportComposer.tsx +277 -0
- loglog_ml-0.1.0/web/src/lib/api.ts +116 -0
- loglog_ml-0.1.0/web/src/lib/colors.ts +23 -0
- loglog_ml-0.1.0/web/src/lib/defaults.ts +228 -0
- loglog_ml-0.1.0/web/src/lib/math.ts +681 -0
- loglog_ml-0.1.0/web/src/lib/types.ts +175 -0
- loglog_ml-0.1.0/web/src/main.tsx +5 -0
- loglog_ml-0.1.0/web/src/reportMain.tsx +5 -0
- loglog_ml-0.1.0/web/src/styles/tokens.css +1356 -0
- loglog_ml-0.1.0/web/tsconfig.json +16 -0
- loglog_ml-0.1.0/web/vite.config.ts +20 -0
- loglog_ml-0.1.0/web/vite.report.config.ts +17 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
python:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- uses: astral-sh/setup-uv@v5
|
|
18
|
+
with:
|
|
19
|
+
enable-cache: false
|
|
20
|
+
- name: Create venv and install
|
|
21
|
+
run: |
|
|
22
|
+
uv venv --python "${{ matrix.python-version }}" .venv
|
|
23
|
+
uv pip install --python .venv/bin/python -e ".[dev]"
|
|
24
|
+
- run: .venv/bin/ruff check src tests
|
|
25
|
+
- run: .venv/bin/pytest -v
|
|
26
|
+
|
|
27
|
+
web:
|
|
28
|
+
runs-on: ubuntu-latest
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v4
|
|
31
|
+
- uses: actions/setup-node@v4
|
|
32
|
+
with:
|
|
33
|
+
node-version: "22"
|
|
34
|
+
cache: npm
|
|
35
|
+
cache-dependency-path: web/package-lock.json
|
|
36
|
+
- working-directory: web
|
|
37
|
+
run: npm ci && npm run typecheck && npm run build
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build-and-publish:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
environment: pypi
|
|
13
|
+
permissions:
|
|
14
|
+
id-token: write
|
|
15
|
+
contents: read
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- uses: actions/setup-node@v4
|
|
20
|
+
with:
|
|
21
|
+
node-version: "22"
|
|
22
|
+
cache: npm
|
|
23
|
+
cache-dependency-path: web/package-lock.json
|
|
24
|
+
|
|
25
|
+
- name: Build bundled frontend & offline report template
|
|
26
|
+
working-directory: web
|
|
27
|
+
run: |
|
|
28
|
+
rm -rf ../src/loglog/server/static/assets
|
|
29
|
+
npm ci
|
|
30
|
+
npm run typecheck
|
|
31
|
+
npm run build
|
|
32
|
+
|
|
33
|
+
- uses: astral-sh/setup-uv@v5
|
|
34
|
+
with:
|
|
35
|
+
enable-cache: false
|
|
36
|
+
|
|
37
|
+
- name: Run Python lint and tests
|
|
38
|
+
run: |
|
|
39
|
+
uv venv --python 3.12 .venv
|
|
40
|
+
uv pip install --python .venv/bin/python -e ".[dev]"
|
|
41
|
+
.venv/bin/ruff check src tests
|
|
42
|
+
.venv/bin/pytest -v
|
|
43
|
+
|
|
44
|
+
- name: Build sdist and wheel
|
|
45
|
+
run: uv build --out-dir dist
|
|
46
|
+
|
|
47
|
+
- name: Publish to PyPI (Trusted Publishing)
|
|
48
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
49
|
+
with:
|
|
50
|
+
packages-dir: dist/
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
*.egg-info/
|
|
6
|
+
.eggs/
|
|
7
|
+
dist/
|
|
8
|
+
build/
|
|
9
|
+
.venv/
|
|
10
|
+
.pytest_cache/
|
|
11
|
+
.ruff_cache/
|
|
12
|
+
|
|
13
|
+
# Node / Frontend
|
|
14
|
+
web/node_modules/
|
|
15
|
+
web/.vite/
|
|
16
|
+
*.tsbuildinfo
|
|
17
|
+
|
|
18
|
+
# Local LogLog runs & caches
|
|
19
|
+
.loglog/
|
|
20
|
+
*.sqlite
|
|
21
|
+
*.sqlite-wal
|
|
22
|
+
*.sqlite-shm
|
|
23
|
+
|
|
24
|
+
# OS / Editor
|
|
25
|
+
.DS_Store
|
|
26
|
+
.vscode/
|
|
27
|
+
.idea/
|
loglog_ml-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sean A. Cantrell, PhD
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
loglog_ml-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: loglog-ml
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Lightweight, local-first W&B drop-in & TensorBoard alternative for deep learning and LLM research.
|
|
5
|
+
Project-URL: Homepage, https://github.com/errantdata/loglog
|
|
6
|
+
Project-URL: Repository, https://github.com/errantdata/loglog
|
|
7
|
+
Project-URL: Issues, https://github.com/errantdata/loglog/issues
|
|
8
|
+
Author-email: "Sean A. Cantrell, PhD" <sean.a.cantrell@gmail.com>
|
|
9
|
+
License: MIT License
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2026 Sean A. Cantrell, PhD
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
15
|
+
in the Software without restriction, including without limitation the rights
|
|
16
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
17
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
18
|
+
furnished to do so, subject to the following conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be included in all
|
|
21
|
+
copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29
|
+
SOFTWARE.
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Keywords: deep-learning,experiment-tracking,machine-learning,scaling-laws,tensorboard,wandb
|
|
32
|
+
Classifier: Development Status :: 3 - Alpha
|
|
33
|
+
Classifier: Intended Audience :: Science/Research
|
|
34
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
35
|
+
Classifier: Programming Language :: Python :: 3
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
39
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
40
|
+
Requires-Python: >=3.10
|
|
41
|
+
Requires-Dist: fastapi>=0.115.0
|
|
42
|
+
Requires-Dist: uvicorn[standard]>=0.30.0
|
|
43
|
+
Provides-Extra: all
|
|
44
|
+
Requires-Dist: httpx>=0.27.0; extra == 'all'
|
|
45
|
+
Requires-Dist: nvidia-ml-py>=12.0.0; extra == 'all'
|
|
46
|
+
Requires-Dist: psutil>=5.9.0; extra == 'all'
|
|
47
|
+
Requires-Dist: pyarrow>=15.0.0; extra == 'all'
|
|
48
|
+
Requires-Dist: pytest>=8.0.0; extra == 'all'
|
|
49
|
+
Requires-Dist: ruff>=0.6.0; extra == 'all'
|
|
50
|
+
Provides-Extra: dev
|
|
51
|
+
Requires-Dist: httpx>=0.27.0; extra == 'dev'
|
|
52
|
+
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
53
|
+
Requires-Dist: ruff>=0.6.0; extra == 'dev'
|
|
54
|
+
Provides-Extra: parquet
|
|
55
|
+
Requires-Dist: pyarrow>=15.0.0; extra == 'parquet'
|
|
56
|
+
Provides-Extra: telemetry
|
|
57
|
+
Requires-Dist: nvidia-ml-py>=12.0.0; extra == 'telemetry'
|
|
58
|
+
Requires-Dist: psutil>=5.9.0; extra == 'telemetry'
|
|
59
|
+
Description-Content-Type: text/markdown
|
|
60
|
+
|
|
61
|
+
# LogLog
|
|
62
|
+
|
|
63
|
+
**Lightweight, local-first, zero-API-key Weights & Biases drop-in & TensorBoard alternative for deep learning and LLM research.**
|
|
64
|
+
|
|
65
|
+
## Highlights
|
|
66
|
+
|
|
67
|
+
- **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 ...`.
|
|
68
|
+
- **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.
|
|
69
|
+
- **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.
|
|
70
|
+
- **Customizable Scaling-Law Dashboard (`loglog serve`):**
|
|
71
|
+
- 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.
|
|
72
|
+
- Compact color-accented KPI cards with customizable metric slots and click-to-pin baseline.
|
|
73
|
+
- Matched-X `Δ` (`run − baseline`) charts with linear interpolation across unaligned steps.
|
|
74
|
+
- 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**.
|
|
75
|
+
- Diff-only hyperparameter table, side-by-side `code.patch` diff inspector, and artifact/media viewer.
|
|
76
|
+
- **Frozen Shareable Snapshot Reports (`loglog freeze` / UI "Freeze Report"):**
|
|
77
|
+
- Interleave Markdown narrative, pinned interactive `uPlot` panels, KPI cards, diff-only config tables, code diffs, and artifacts — frozen at an immutable step/token snapshot.
|
|
78
|
+
- Export as a **single self-contained offline `.html` file** or share via local server permalink (`/r/<hash>`).
|
|
79
|
+
|
|
80
|
+
## Quickstart
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
pip install loglog-ml
|
|
84
|
+
# Optional GPU/CPU telemetry & Parquet export extras:
|
|
85
|
+
pip install "loglog-ml[telemetry,parquet]"
|
|
86
|
+
# Or install directly from GitHub:
|
|
87
|
+
pip install git+https://github.com/errantdata/loglog.git
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The PyPI package name is `loglog-ml`, while the Python import (`import loglog`) and CLI (`loglog`) stay short and clean.
|
|
91
|
+
|
|
92
|
+
### Drop-In Python SDK
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
import loglog as wandb
|
|
96
|
+
|
|
97
|
+
wandb.login() # silent local-first no-op
|
|
98
|
+
run = wandb.init(project="scale1b", name="mom-par-l16", config={"lr": 3e-4, "layers": 24})
|
|
99
|
+
wandb.define_metric("cumulative_tokens", summary="max")
|
|
100
|
+
wandb.define_metric("eval/*", step_metric="cumulative_tokens")
|
|
101
|
+
|
|
102
|
+
for step in range(1, 100):
|
|
103
|
+
wandb.log({"train/loss": 4.0 / (step ** 0.25), "cumulative_tokens": step * 524288}, step=step)
|
|
104
|
+
|
|
105
|
+
wandb.finish()
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Unmodified W&B Scripts (Zero Code Changes)
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
loglog run --shim-wandb --project my-llm -- python train.py --use-wandb
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Serve Live Dashboard (LogLog + TensorBoard Side-by-Side)
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
loglog serve ./.loglog /path/to/tb_logs/scale1b --port 6060
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Freeze an Offline Shareable HTML Report
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
loglog freeze ./.loglog --title "1.26B Scaling Run" --output report.html
|
|
124
|
+
```
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# LogLog
|
|
2
|
+
|
|
3
|
+
**Lightweight, local-first, zero-API-key Weights & Biases drop-in & TensorBoard alternative for deep learning and LLM research.**
|
|
4
|
+
|
|
5
|
+
## Highlights
|
|
6
|
+
|
|
7
|
+
- **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 ...`.
|
|
8
|
+
- **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.
|
|
9
|
+
- **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.
|
|
10
|
+
- **Customizable Scaling-Law Dashboard (`loglog serve`):**
|
|
11
|
+
- 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.
|
|
12
|
+
- Compact color-accented KPI cards with customizable metric slots and click-to-pin baseline.
|
|
13
|
+
- Matched-X `Δ` (`run − baseline`) charts with linear interpolation across unaligned steps.
|
|
14
|
+
- 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**.
|
|
15
|
+
- Diff-only hyperparameter table, side-by-side `code.patch` diff inspector, and artifact/media viewer.
|
|
16
|
+
- **Frozen Shareable Snapshot Reports (`loglog freeze` / UI "Freeze Report"):**
|
|
17
|
+
- Interleave Markdown narrative, pinned interactive `uPlot` panels, KPI cards, diff-only config tables, code diffs, and artifacts — frozen at an immutable step/token snapshot.
|
|
18
|
+
- Export as a **single self-contained offline `.html` file** or share via local server permalink (`/r/<hash>`).
|
|
19
|
+
|
|
20
|
+
## Quickstart
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install loglog-ml
|
|
24
|
+
# Optional GPU/CPU telemetry & Parquet export extras:
|
|
25
|
+
pip install "loglog-ml[telemetry,parquet]"
|
|
26
|
+
# Or install directly from GitHub:
|
|
27
|
+
pip install git+https://github.com/errantdata/loglog.git
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The PyPI package name is `loglog-ml`, while the Python import (`import loglog`) and CLI (`loglog`) stay short and clean.
|
|
31
|
+
|
|
32
|
+
### Drop-In Python SDK
|
|
33
|
+
|
|
34
|
+
```python
|
|
35
|
+
import loglog as wandb
|
|
36
|
+
|
|
37
|
+
wandb.login() # silent local-first no-op
|
|
38
|
+
run = wandb.init(project="scale1b", name="mom-par-l16", config={"lr": 3e-4, "layers": 24})
|
|
39
|
+
wandb.define_metric("cumulative_tokens", summary="max")
|
|
40
|
+
wandb.define_metric("eval/*", step_metric="cumulative_tokens")
|
|
41
|
+
|
|
42
|
+
for step in range(1, 100):
|
|
43
|
+
wandb.log({"train/loss": 4.0 / (step ** 0.25), "cumulative_tokens": step * 524288}, step=step)
|
|
44
|
+
|
|
45
|
+
wandb.finish()
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Unmodified W&B Scripts (Zero Code Changes)
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
loglog run --shim-wandb --project my-llm -- python train.py --use-wandb
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Serve Live Dashboard (LogLog + TensorBoard Side-by-Side)
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
loglog serve ./.loglog /path/to/tb_logs/scale1b --port 6060
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Freeze an Offline Shareable HTML Report
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
loglog freeze ./.loglog --title "1.26B Scaling Run" --output report.html
|
|
64
|
+
```
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.25"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "loglog-ml"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Lightweight, local-first W&B drop-in & TensorBoard alternative for deep learning and LLM research."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = { file = "LICENSE" }
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Sean A. Cantrell, PhD", email = "sean.a.cantrell@gmail.com" },
|
|
14
|
+
]
|
|
15
|
+
keywords = ["machine-learning", "deep-learning", "experiment-tracking", "tensorboard", "wandb", "scaling-laws"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 3 - Alpha",
|
|
18
|
+
"Intended Audience :: Science/Research",
|
|
19
|
+
"License :: OSI Approved :: MIT License",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
25
|
+
]
|
|
26
|
+
dependencies = [
|
|
27
|
+
"fastapi>=0.115.0",
|
|
28
|
+
"uvicorn[standard]>=0.30.0",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[project.urls]
|
|
32
|
+
Homepage = "https://github.com/errantdata/loglog"
|
|
33
|
+
Repository = "https://github.com/errantdata/loglog"
|
|
34
|
+
Issues = "https://github.com/errantdata/loglog/issues"
|
|
35
|
+
|
|
36
|
+
[project.optional-dependencies]
|
|
37
|
+
telemetry = [
|
|
38
|
+
"psutil>=5.9.0",
|
|
39
|
+
"nvidia-ml-py>=12.0.0",
|
|
40
|
+
]
|
|
41
|
+
parquet = [
|
|
42
|
+
"pyarrow>=15.0.0",
|
|
43
|
+
]
|
|
44
|
+
dev = [
|
|
45
|
+
"pytest>=8.0.0",
|
|
46
|
+
"httpx>=0.27.0",
|
|
47
|
+
"ruff>=0.6.0",
|
|
48
|
+
]
|
|
49
|
+
all = [
|
|
50
|
+
"loglog-ml[telemetry,parquet,dev]",
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
[project.scripts]
|
|
54
|
+
loglog = "loglog.cli:main"
|
|
55
|
+
|
|
56
|
+
[tool.hatch.build.targets.wheel]
|
|
57
|
+
packages = ["src/loglog"]
|
|
58
|
+
|
|
59
|
+
[tool.hatch.build.targets.sdist]
|
|
60
|
+
exclude = [
|
|
61
|
+
"/.loglog",
|
|
62
|
+
"/web/node_modules",
|
|
63
|
+
"/web/.vite",
|
|
64
|
+
]
|
|
65
|
+
|
|
66
|
+
[tool.pytest.ini_options]
|
|
67
|
+
testpaths = ["tests"]
|
|
68
|
+
addopts = "-q"
|
|
69
|
+
|
|
70
|
+
[tool.ruff]
|
|
71
|
+
line-length = 110
|
|
72
|
+
target-version = "py310"
|
|
73
|
+
|
|
74
|
+
[tool.ruff.lint]
|
|
75
|
+
select = ["E", "F", "W", "I", "UP"]
|
|
76
|
+
ignore = ["E501"]
|