Skip to content

Set lazy_load_tensors to true by default.#4021

Merged
copybara-service[bot] merged 1 commit into
mainfrom
fix_docs
Jun 2, 2026
Merged

Set lazy_load_tensors to true by default.#4021
copybara-service[bot] merged 1 commit into
mainfrom
fix_docs

Conversation

@niting
Copy link
Copy Markdown
Collaborator

@niting niting commented May 29, 2026

Description

Lazy loading tensors saves on disk space and the path has now been optimized to be quicker with caching. Added appropriate documentation to indicate that this does not work for models with multimodal capabilities.

Tests

Ran checkpoint conversion test.

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 May 29, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/maxtext/checkpoint_conversion/to_maxtext.py 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Comment thread docs/guides/checkpointing_solutions/convert_checkpoint.md Outdated
Comment thread docs/tutorials/posttraining/multimodal.md
lazy_load_tensors saves on disk space and the path has now been optimized to be quicker with caching. Added appropriate documentation to indicate that this does not work for models with multimodal capabilities.
Comment thread tests/end_to_end/tpu/gemma4/Run_Gemma4.md
@copybara-service copybara-service Bot merged commit 811ac80 into main Jun 2, 2026
98 of 102 checks passed
@copybara-service copybara-service Bot deleted the fix_docs branch June 2, 2026 01:02
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.

4 participants