Skip to content

refactor: control optimizer checkpoint state with pointers - #202

Merged
kilinchange merged 1 commit into
masterfrom
feat/checkpoint-optimizer-state-control
Aug 7, 2026
Merged

refactor: control optimizer checkpoint state with pointers#202
kilinchange merged 1 commit into
masterfrom
feat/checkpoint-optimizer-state-control

Conversation

@JYMiracle305

Copy link
Copy Markdown
Contributor

核心实现

  • 新增 FLAGS_load_optimizer_state,与 FLAGS_save_optimizer_state 对齐
  • 在入口处判断 FLAGS_save/load_optimizer_state,如果为 true,传入有效 optimizer,否则传入 nullptr

@JYMiracle305
JYMiracle305 force-pushed the feat/checkpoint-optimizer-state-control branch from cf3cce5 to 25c5e88 Compare August 6, 2026 08:44
@JYMiracle305
JYMiracle305 force-pushed the feat/checkpoint-optimizer-state-control branch from 25c5e88 to 9f57470 Compare August 6, 2026 09:47
@JYMiracle305

Copy link
Copy Markdown
Contributor Author

精度对比

image

性能对比

image

@kilinchange
kilinchange merged commit f9171e4 into master Aug 7, 2026
2 checks passed
@kilinchange
kilinchange deleted the feat/checkpoint-optimizer-state-control branch August 7, 2026 02:18
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.

3 participants