-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Expose weights_only
for loading checkpoints with Trainer
, LightningModule
, LightningDataModule
#21072
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
matsumotosan
wants to merge
64
commits into
Lightning-AI:master
Choose a base branch
from
matsumotosan:weights-only-compatibility
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.
Open
Expose weights_only
for loading checkpoints with Trainer
, LightningModule
, LightningDataModule
#21072
Changes from all commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
074b01e
change weights_only default to True
matsumotosan 65cc1ed
add docs on weights_only arg
matsumotosan 4eaaf58
Merge branch 'master' into weights-only-compatibility
SkafteNicki f276114
add weights_only arg to checkpoint save. weights_only during test set…
matsumotosan 601e300
Merge branch 'master' into weights-only-compatibility
matsumotosan 28f53ae
add weights_only arg to checkpoint_io
matsumotosan b1cfdf1
woops, reverting changes
matsumotosan 4d96a78
permissions too
matsumotosan 4c39c30
fix link
matsumotosan 861d7e0
fix another link
matsumotosan 12bd0d6
datamodule weights_only args
matsumotosan 5eacb6e
wip: try safe_globals context manager for tests
matsumotosan 0430e22
add weights_only arg to _run_standard_hparams_test
matsumotosan 2abe915
weights_only=False when adding extra_args
matsumotosan 8e0f61e
Merge branch 'master' into weights-only-compatibility
Borda 525d9a8
Merge branch 'master' into weights-only-compatibility
matsumotosan 83fd824
switch to lightning_utilities.cli requirements set-oldest (#21077)
Borda 93cbe94
bump: try `deepspeed >=0.14.1,<=0.15.0` (#21076)
Borda 2a53f2f
weights_only=True default for torch>=2.6
matsumotosan 3833892
Merge branch 'master' into weights-only-compatibility
matsumotosan 9d8997e
Merge branch 'Lightning-AI:master' into weights-only-compatibility
matsumotosan 561c02c
changelog
matsumotosan c67c8a3
ignore torch.load futurewarning
matsumotosan 005c439
add .*
matsumotosan 2ab89a2
will this woork
matsumotosan 74e5e5a
weights_only according pl version
matsumotosan a4c9efe
set env var TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD=1 for pl < 1.5.0
matsumotosan 2c2ab9e
weights_only=False for omegaconf hparams test
matsumotosan 54b859a
default to weights_only=true for loading from state_dict from url
matsumotosan 7ddb4f8
weights_only=False for hydra
matsumotosan 7d6174a
Merge branch 'master' into weights-only-compatibility
matsumotosan 906e52e
Update src/lightning/fabric/utilities/cloud_io.py
matsumotosan 377cf11
Merge branch 'Lightning-AI:master' into weights-only-compatibility
matsumotosan 9aadbef
Merge branch 'master' into weights-only-compatibility
Borda 52b3215
Merge branch 'master' into weights-only-compatibility
matsumotosan 170fbe0
defaults for weights_only in torch.hub.load_state_dict_from_url
matsumotosan bf7e284
default to weights_only=False for torch.hub.load_state_dict_from_url
matsumotosan a5d6da3
Merge branch 'master' into weights-only-compatibility
Borda a3183ba
Merge branch 'master' into weights-only-compatibility
matsumotosan 5ac9695
add weights_only to trainer.fit, validate, test, predict
matsumotosan ea066a9
fix tests
matsumotosan 6b711c9
Merge branch 'master' into weights-only-compatibility
matsumotosan 4d65777
add weights_only arg
matsumotosan 087d467
Merge branch 'master' into weights-only-compatibility
matsumotosan b84a53d
specify weights_only kwarg
matsumotosan ea6773e
weights_only for fsdp load
matsumotosan 0685799
Merge branch 'master' into weights-only-compatibility
matsumotosan d5431d4
Merge branch 'master' into weights-only-compatibility
Borda 23c81e8
Apply suggestions from code review
Borda 2de885c
Apply suggestions from code review
Borda 9f709d6
default is none
matsumotosan a95f9ba
Merge branch 'master' into weights-only-compatibility
Borda 653dd6f
add weights_only args to strategies
matsumotosan 46cc788
trainer default to weights_only=None
matsumotosan f5f5e58
wip: fix typing dump_checkpoint
matsumotosan 97695ae
Apply suggestions from code review
Borda 75ad865
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 436552d
weights_only as last arg
matsumotosan d61b9ec
asset called with none
matsumotosan 42559fe
weights_only=False for torch>=2.6 in tests
matsumotosan 605b11c
fix changelog description
matsumotosan fa3eb90
Merge branch 'master' into weights-only-compatibility
tchaton 36c419b
Empty-Commit
Borda b8cf6ea
Merge branch 'master' into weights-only-compatibility
Borda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.