Skip to content

Add thermal monitoring and cooperative pauses for macOS training - #7

Merged
AndreaPi merged 5 commits into
masterfrom
codex/training-thermal-monitor
Oct 4, 2026
Merged

AndreaPi merged 5 commits into
masterfrom
codex/training-thermal-monitor

Conversation

@AndreaPi

@AndreaPi AndreaPi commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Long macOS training runs previously required starting the thermal logger separately, and multi-fold queues could stall at a new sudo password prompt between jobs. Add a shared launcher that verifies monitoring before starting training under caffeinate, records per-run logs, displays progress and thermal transitions, and stops its process groups on failure, interruption or terminal hangup.

Opt-in cooperative pauses use macOS thermal state at training and validation batch boundaries, retain model/optimizer state in memory, and resume after sustained cooling. Live terminal output uses bounded asynchronous queues so a blocked terminal cannot stall thermal control or shutdown. A queue wrapper authenticates once, renews sudo noninteractively across jobs and evaluation gaps, and prevents subsequent jobs from starting after renewal failure.

Validation:

  • 40 script tests and 62 backend tests passed; git diff --check passed.
  • Real macOS smoke test passed: two powermetrics monitors, caffeinate, one initial password prompt, two automatic sudo renewals, and cleanup after both completion and interruption.
  • Terminal-hangup checks covered running and cooperatively paused jobs; blocked-terminal tests covered continued control and bounded shutdown.
  • Severe thermal states were simulated, without deliberately overheating hardware. No model or dataset promotion is included.

@AndreaPi
AndreaPi merged commit 06a16fc into master Oct 4, 2026
1 check passed
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