Skip to content

Commit 81eb54e

Browse files
committed
memory optimization
1 parent 5bf1573 commit 81eb54e

File tree

2 files changed

+288
-60
lines changed

2 files changed

+288
-60
lines changed

src/MaxText/configs/base.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ checkpoint_storage_use_zarr3: True
6767
# larger models requires higher concurrent GB for I/O
6868
# default concurrent gb for PytreeCheckpointHandler is 96GB
6969
checkpoint_storage_concurrent_gb: 96
70+
# lazyily load tensors for checkpoint conversion
71+
lazy_load_tensors: False
7072

7173
# Bool flag for enabling Orbax v1.
7274
enable_orbax_v1: False

0 commit comments

Comments
 (0)