Skip to content

refactor(rl): unify training metrics, console phases and worker lifecycle - #210

Merged
wlgys8 merged 2 commits into
mainfrom
refactor-shared-training-logging
Dec 2, 2026
Merged

wlgys8 merged 2 commits into
mainfrom
refactor-shared-training-logging

Conversation

@wlgys8

@wlgys8 wlgys8 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Centralize logging and observation utilities under motrix_rl.log, with a structural MetricsSink protocol and one TrainingMetrics recording entry point.
  • Give loggers, terminal metrics panels, and external sinks independent aggregation windows and output cadences; keep device observation publication separate from backend writes.
  • Separate boot and metrics display phases, dynamically group canonical metric keys, and route throughput, episode, timing, and system displays without duplicate overview groups.
  • Share collector episode statistics, device-side metric accumulation, native profiler timing trees, worker startup/error reporting, and resource cleanup across APPO and FastSAC.
  • Include APPO reward breakdowns and recent completed-episode statistics; simplify FastSAC sync mapping and async learner observation publishing.
  • Fix non-TTY checkpoint notifications and preserve literal learner rank labels in timing views; rewrite the training-console design document to describe current contracts.

Breaking changes

  • Logging module imports move to motrix_rl.log; MetricsLogger is renamed to MotrixLiveLogger without compatibility aliases.
  • Training metrics use mapping-based record(), explicit progress advance(), and independently scheduled flush(); concrete sinks implement the shared protocol.
  • Training display methods move from TrainingPanelSession to its MetricsPanel phase handle.
  • Canonical metric names and grouping are normalized; APPO episode means use the recent completed-episode window, and episode/completed is no longer published.
  • FastSAC async workers use Worker/WorkerHandle instead of private process/error-queue plumbing.

Validation

  • prek run --all-files: passed.
  • Fast regression suite across motrix_rl, motrix_rl_appo, motrix_rl_builtin, and motrix_rl_supermimic: 654 passed, 73 deselected.
  • Targeted backend/worker/APPO trainer tests, including actual CPU spawn and resume: 19 passed.
  • git diff --check: passed.
  • No claim of long-running training convergence, real interactive TTY acceptance, or multi-learner GPU/NCCL validation.
image

…ycle

Centralize metric sinks, independent aggregation and output cadence under motrix_rl.log. Share collector episode statistics, device-side metrics and native profiler timing trees across APPO and FastSAC.

Unify worker startup and error reporting, dynamically group console metrics, route summary/system/timing views without duplicate displays, and include APPO reward breakdowns.

Validation: repository pre-commit hooks; 640 fast regression tests; 19 targeted tests including CPU spawn/resume integration.
@wlgys8
wlgys8 merged commit 0dc80cd into main Dec 2, 2026
12 checks passed
@wlgys8
wlgys8 deleted the refactor-shared-training-logging branch December 2, 2026 08:35
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