- Notifications
You must be signed in to change notification settings - Fork19.7k
Orbax Loading and Sharding Support feature#21903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
amitsrivastava78 wants to merge18 commits intokeras-team:masterChoose a base branch fromamitsrivastava78:orbax-pending-features
base:master
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
+1,207 −286
Open
Changes from1 commit
Commits
Show all changes
18 commits Select commitHold shift + click to select a range
bc9060c Added Load method for orbax
amitsrivastava7843d45d0 Added Sharding Support
amitsrivastava784125ae0 Fix memory corruption in Model.load() by simplifying checkpoint loading
amitsrivastava7877689d9 Fix bare except clauses in orbax_checkpoint_test.py
amitsrivastava78ece275d Refactor duplicated tensor-to-numpy conversion code
amitsrivastava780464c3b Multi-host feature support
amitsrivastava78d8a86e8 Fixed CI failure
amitsrivastava7843fbecd Implement JAX-only multi-host checkpointing with proper Orbax APIs
amitsrivastava7882b345f Re-run CI
amitsrivastava789e35729 Re-run CI
amitsrivastava785a5c810 Fixed review comments
amitsrivastava78b503b79 Fixed review comments
amitsrivastava78e45c186 Fixed review comments
amitsrivastava78f027ba9 Refactor Orbax integration to use LazyModule consistently
amitsrivastava78802d785 Fix Orbax checkpoint preservation policy and asset functionality
amitsrivastava78f98e27c Fix Orbax checkpoint preservation policy and asset functionality
amitsrivastava785ff095a Integrate assets into Orbax pytree as checkpointables
amitsrivastava781f28e74 Implement asset loading support in model.load_weights for Orbax check…
amitsrivastava78File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Fixed review comments
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commite45c186b7963336fa5722d9092086957e7a0c716
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
3 changes: 3 additions & 0 deletionskeras/src/saving/saving_api.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -130,6 +130,9 @@ def _load_model_from_orbax_checkpoint( | ||
| def _is_orbax_checkpoint(filepath): | ||
amitsrivastava78 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| """Check if the given path is an Orbax checkpoint directory.""" | ||
| if not os.path.exists(filepath): | ||
| return False | ||
| try: | ||
| from keras.src.utils.module_utils import ocp | ||
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.