Skip to content

Add early stopping and regularization study - #9

Merged
almondsun merged 1 commit into
mainfrom
agent/early-stopping-regularization
Jul 13, 2026
Merged

almondsun merged 1 commit into
mainfrom
agent/early-stopping-regularization

Conversation

@almondsun

Copy link
Copy Markdown
Owner

Summary

  • add validation-based early stopping with inspectable stop state and preserved best/final checkpoint semantics
  • fail fast on non-finite losses before optimizer mutation and require standards-compliant JSON artifacts
  • compare ByteBPE512 early stopping with and without AdamW weight decay 0.01
  • record milestone 022 results and extend training theory/documentation

Results

  • early stopping reproduces best BPC 2.008269 at step 1750 and stops at step 2500
  • runtime falls from 422.7s to 209.3s and stopped-final BPC improves from 2.244955 to 2.055447
  • weight decay 0.01 reaches best BPC 2.008018; the 0.000251 difference is effectively neutral

Validation

  • uv run --frozen --extra dev make check (121 tests, 91.18% coverage)
  • uv run --frozen --extra dev make audit
  • two controlled training runs plus best/final greedy and seeded generation diagnostics
  • post-change correctness and security audits; all findings resolved

@almondsun
almondsun marked this pull request as ready for review July 13, 2026 03:31
Copilot AI review requested due to automatic review settings July 13, 2026 03:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@almondsun
almondsun merged commit eb3b0f8 into main Jul 13, 2026
5 checks passed
@almondsun
almondsun deleted the agent/early-stopping-regularization branch July 13, 2026 03:32
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.

2 participants