From 835d327caa0a86d3b9fdc7b1008d717c5d4c5bed Mon Sep 17 00:00:00 2001 From: Yuren Hao Date: Fri, 17 Jul 2026 00:44:11 -0500 Subject: save final ckpt at last step (fixed-eval protocol); fw72m_ride crown-3 launched (plain+ride governor); ride/BP seed campaign on GPU0 Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_014FAPDWQ49M5Ye3NpTndTpn --- ep_run/casc_bp_train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ep_run/casc_bp_train.py') diff --git a/ep_run/casc_bp_train.py b/ep_run/casc_bp_train.py index 7bafc16..0515ec1 100644 --- a/ep_run/casc_bp_train.py +++ b/ep_run/casc_bp_train.py @@ -238,7 +238,7 @@ for step in range(start_step, args.steps + 1): if wb is not None: try: wb.log({'train_ce': loss.item(), 'val_ce': val, 'best': best}, step=step) except Exception: pass - if step % args.save_every == 0: + if step % args.save_every == 0 or step == args.steps: torch.save({'tok': tok.state_dict(), 'pos': pos.state_dict(), 'blocks': blocks.state_dict(), 'wout': (W_out.detach().cpu() if args.olmo2 else None), 'lnf': (ln_f.state_dict() if not isinstance(ln_f, nn.Identity) else None), -- cgit v1.2.3