Skip to content

Commit

Permalink
Stop writing msgpack file for new checkpoints and update empty nodes …
Browse files Browse the repository at this point in the history
…handling so that it no longer depends on this file.

PiperOrigin-RevId: 636665054
  • Loading branch information
cpgaffney1 authored and Flax Authors committed Jul 1, 2024
1 parent afaa721 commit 0833fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flax/training/checkpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

# Orbax main checkpoint file name.
ORBAX_CKPT_FILENAME = 'checkpoint'
ORBAX_MANIFEST_OCDBT = 'manifest.ocdbt'
ORBAX_METADATA_FILENAME = '_METADATA'

PyTree = Any

Expand Down Expand Up @@ -123,7 +123,7 @@ def _safe_remove(path: str):

def _is_orbax_checkpoint(path: str) -> bool:
return io.exists(os.path.join(path, ORBAX_CKPT_FILENAME)) or io.exists(
os.path.join(path, ORBAX_MANIFEST_OCDBT)
os.path.join(path, ORBAX_METADATA_FILENAME)
)


Expand Down

0 comments on commit 0833fe0

Please sign in to comment.