Skip to content

Add the option to avoid loading the checkpoint twice#3118

Merged
copybara-service[bot] merged 1 commit intomainfrom
xfgu-single-ckpt-loading
Feb 10, 2026
Merged

Add the option to avoid loading the checkpoint twice#3118
copybara-service[bot] merged 1 commit intomainfrom
xfgu-single-ckpt-loading

Conversation

@xuefgu
Copy link
Copy Markdown
Collaborator

@xuefgu xuefgu commented Feb 10, 2026

Description

Add the option to avoid loading the checkpoint twice.

It's protected with the load_checkpoint_only_once flag.

Tests

Manually tested.

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 10, 2026

Codecov Report

❌ Patch coverage is 0% with 20 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/MaxText/rl/train_rl.py 0.00% 20 Missing ⚠️

📢 Thoughts on this report? Let us know!

Comment thread src/maxtext/configs/types.py
Comment thread src/MaxText/rl/train_rl.py
@khatwanimohit khatwanimohit self-requested a review February 10, 2026 01:28
Comment thread src/MaxText/rl/train_rl.py
@xuefgu xuefgu force-pushed the xfgu-single-ckpt-loading branch from 251d426 to fe3d200 Compare February 10, 2026 01:33
@copybara-service copybara-service Bot merged commit d71e529 into main Feb 10, 2026
28 of 30 checks passed
@copybara-service copybara-service Bot deleted the xfgu-single-ckpt-loading branch February 10, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants