Skip to content

feat: log metrics to human-readable JSONL files#2176

Draft
mikasenghaas wants to merge 1 commit intomainfrom
feat/jsonl-metrics-logging
Draft

feat: log metrics to human-readable JSONL files#2176
mikasenghaas wants to merge 1 commit intomainfrom
feat/jsonl-metrics-logging

Conversation

@mikasenghaas
Copy link
Copy Markdown
Member

Summary

  • W&B only stores metrics in binary protobuf format locally — not human/agent-readable
  • Adds a JSONL sidecar file alongside W&B logging so metrics can be inspected with standard tools (cat, jq, python json)
  • Each process writes to its own file under {output_dir}/metrics/ to avoid race conditions: shared mode uses the process label (trainer.jsonl, orchestrator.jsonl), non-shared defaults to metrics.jsonl
  • Lines are flushed immediately so metrics are available in real-time

Tested e2e with examples/reverse_text/rl.toml (3 steps, offline mode, shared=false).

🤖 Generated with Claude Code

W&B stores metrics in a binary protobuf format that isn't readable
locally. This adds a JSONL sidecar file so metrics can be inspected
by humans and agents without the W&B API.

Each process writes to its own file under {output_dir}/metrics/ to
avoid race conditions: in shared W&B mode the filename uses the
process label (e.g. trainer.jsonl, orchestrator.jsonl), otherwise
it defaults to metrics.jsonl.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant