Skip to content

Conversation

@Borda
Copy link
Collaborator

@Borda Borda commented Aug 15, 2025

What does this PR do?

'Let''s see if we are fine with this bump

Before submitting
  • Was this discussed/agreed via a GitHub issue? (not for typos and docs)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you list all the breaking changes introduced by this pull request?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review

Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:

Reviewer checklist
  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified

📚 Documentation preview 📚: https://pytorch-lightning--21076.org.readthedocs.build/en/21076/

@github-actions github-actions bot added fabric lightning.fabric.Fabric pl Generic label for PyTorch Lightning package dependencies Pull requests that update a dependency file labels Aug 15, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 15, 2025

⚡ Required checks status: All passing 🟢

Groups summary

🟢 pytorch_lightning: Tests workflow
Check ID Status
pl-cpu-guardian success

These checks are required after the changes to .actions/assistant.py, requirements/fabric/strategies.txt, src/lightning/fabric/strategies/deepspeed.py, requirements/pytorch/strategies.txt, tests/tests_pytorch/utilities/test_compile.py, pyproject.toml.

🟢 pytorch_lightning: Azure GPU
Check ID Status
pytorch-lightning (GPUs) (testing Lightning | latest) success
pytorch-lightning (GPUs) (testing PyTorch | oldest) success
pytorch-lightning (GPUs) (testing PyTorch | latest) success

These checks are required after the changes to .actions/assistant.py, .azure/gpu-tests-pytorch.yml, requirements/pytorch/strategies.txt, tests/tests_pytorch/utilities/test_compile.py, pyproject.toml, requirements/fabric/strategies.txt, src/lightning/fabric/strategies/deepspeed.py.

🟢 pytorch_lightning: Benchmarks
Check ID Status
lightning.Benchmarks success

These checks are required after the changes to requirements/fabric/strategies.txt, requirements/pytorch/strategies.txt, src/lightning/fabric/strategies/deepspeed.py.

🟢 fabric: Docs
Check ID Status
docs-make (fabric, doctest) success
docs-make (fabric, html) success

These checks are required after the changes to src/lightning/fabric/strategies/deepspeed.py, requirements/fabric/strategies.txt, pyproject.toml.

🟢 pytorch_lightning: Docs
Check ID Status
docs-make (pytorch, doctest) success
docs-make (pytorch, html) success

These checks are required after the changes to .actions/assistant.py, requirements/pytorch/strategies.txt, pyproject.toml.

🟢 pytorch_lightning: Docker
Check ID Status
build-cuda (3.10, 2.1.2, 12.1.1) success
build-cuda (3.11, 2.2.2, 12.1.1) success
build-cuda (3.11, 2.3.1, 12.1.1) success
build-cuda (3.11, 2.4.1, 12.1.1) success
build-cuda (3.12, 2.5.1, 12.1.1) success
build-cuda (3.12, 2.6.0, 12.4.1) success
build-pl (3.10, 2.1, 12.1.1) success
build-pl (3.11, 2.2, 12.1.1) success
build-pl (3.11, 2.3, 12.1.1) success
build-pl (3.11, 2.4, 12.1.1) success
build-pl (3.12, 2.5, 12.1.1) success
build-pl (3.12, 2.6, 12.4.1) success
build-pl (3.12, 2.7, 12.6.3) success
build-pl (3.12, 2.8, 12.6.3, true) success

These checks are required after the changes to .actions/assistant.py, dockers/release/Dockerfile, requirements/pytorch/strategies.txt, requirements/fabric/strategies.txt.

🟢 lightning_fabric: CPU workflow
Check ID Status
fabric-cpu-guardian success

These checks are required after the changes to .actions/assistant.py, requirements/fabric/strategies.txt, src/lightning/fabric/strategies/deepspeed.py, tests/tests_fabric/strategies/launchers/test_multiprocessing_integration.py, pyproject.toml.

🟢 lightning_fabric: Azure GPU
Check ID Status
lightning-fabric (GPUs) (testing Fabric | oldest) success
lightning-fabric (GPUs) (testing Fabric | latest) success
lightning-fabric (GPUs) (testing Lightning | latest) success

These checks are required after the changes to .actions/assistant.py, .azure/gpu-tests-fabric.yml, requirements/fabric/strategies.txt, src/lightning/fabric/strategies/deepspeed.py, tests/tests_fabric/strategies/launchers/test_multiprocessing_integration.py, pyproject.toml.

🟢 mypy
Check ID Status
mypy success

These checks are required after the changes to .actions/assistant.py, requirements/fabric/strategies.txt, requirements/pytorch/strategies.txt, src/lightning/fabric/strategies/deepspeed.py, pyproject.toml.

🟢 install
Check ID Status
install-pkg-guardian success

These checks are required after the changes to .actions/assistant.py, src/lightning/fabric/strategies/deepspeed.py, requirements/fabric/strategies.txt, requirements/pytorch/strategies.txt.


Thank you for your contribution! 💜

Note
This comment is automatically generated and updates for 60 minutes every 180 seconds. If you have any other questions, contact carmocca for help.

@codecov
Copy link

codecov bot commented Aug 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87%. Comparing base (8ff43d4) to head (47167b6).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #21076   +/-   ##
=======================================
  Coverage      87%      87%           
=======================================
  Files         269      269           
  Lines       23509    23506    -3     
=======================================
- Hits        20494    20492    -2     
+ Misses       3015     3014    -1     

@github-actions github-actions bot added the ci Continuous Integration label Aug 15, 2025
@Borda
Copy link
Collaborator Author

Borda commented Aug 15, 2025

This seems a bit unrelated:

FAILED strategies/launchers/test_multiprocessing_integration.py::test_memory_sharing_disabled[ddp_fork] - torch.multiprocessing.spawn.ProcessRaisedException: 

-- Process 0 terminated with the following error:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 90, in _wrap
    fn(i, *args)
  File "/Users/runner/work/pytorch-lightning/pytorch-lightning/src/lightning_fabric/strategies/launchers/multiprocessing.py", line 142, in _wrapping_function
    results = function(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/runner/work/pytorch-lightning/pytorch-lightning/src/lightning_fabric/fabric.py", line 934, in _wrap_with_setup
    return to_run(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/runner/work/pytorch-lightning/pytorch-lightning/tests/tests_fabric/strategies/launchers/test_multiprocessing_integration.py", line 58, in _test_memory_sharing_disabled
    fabric.barrier()
  File "/Users/runner/work/pytorch-lightning/pytorch-lightning/src/lightning_fabric/fabric.py", line 547, in barrier
    self._strategy.barrier(name=name)
  File "/Users/runner/work/pytorch-lightning/pytorch-lightning/src/lightning_fabric/strategies/ddp.py", line 162, in barrier
    torch.distributed.barrier()
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/torch/distributed/c10d_logger.py", line 81, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/torch/distributed/distributed_c10d.py", line 4792, in barrier
    device = torch._C._get_accelerator()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Please register PrivateUse1HooksInterface by `RegisterPrivateUse1HooksInterface` first.

# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment

# note: is a bug around 0.10 with `MPS_Accelerator must implement all abstract methods`
# shall be resolved by https://github.com/microsoft/DeepSpeed/issues/4372
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not for this PR, but this was resolved, so maybe we can relax in the future

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I will continue in relaxing. I just wanted to do it in smaller steps so it's safer to land...

@Borda Borda merged commit ad54bc1 into master Aug 19, 2025
187 of 192 checks passed
@Borda Borda deleted the bump/deepspeed branch August 19, 2025 13:13
matsumotosan pushed a commit to matsumotosan/pytorch-lightning that referenced this pull request Aug 19, 2025
* try `deepspeed >=0.14.1,<=0.15.0`
* drop from oldest
* pip uninstall -y deepspeed
* error::DeprecationWarning
Borda added a commit that referenced this pull request Aug 28, 2025
* try `deepspeed >=0.14.1,<=0.15.0`
* drop from oldest
* pip uninstall -y deepspeed
* error::DeprecationWarning

(cherry picked from commit ad54bc1)
lantiga pushed a commit that referenced this pull request Aug 29, 2025
* try `deepspeed >=0.14.1,<=0.15.0`
* drop from oldest
* pip uninstall -y deepspeed
* error::DeprecationWarning

(cherry picked from commit ad54bc1)
deependujha added a commit that referenced this pull request Nov 7, 2025
…ingModule`, `LightningDataModule` (#21072)

* change weights_only default to True

* add docs on weights_only arg

* add weights_only arg to checkpoint save. weights_only during test set based on ckpt version

* add weights_only arg to checkpoint_io

* woops, reverting changes

* permissions too

* fix link

* fix another link

* datamodule weights_only args

* wip: try safe_globals context manager for tests

* add weights_only arg to _run_standard_hparams_test

* weights_only=False when adding extra_args

* switch to lightning_utilities.cli requirements set-oldest (#21077)

* bump: try `deepspeed >=0.14.1,<=0.15.0` (#21076)

* try `deepspeed >=0.14.1,<=0.15.0`
* drop from oldest
* pip uninstall -y deepspeed
* error::DeprecationWarning

* weights_only=True default for torch>=2.6

* changelog

* ignore torch.load futurewarning

* add .*

* will this woork

* weights_only according pl version

* set env var TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD=1 for pl < 1.5.0

* weights_only=False for omegaconf hparams test

* default to weights_only=true for loading from state_dict from url

* weights_only=False for hydra

* Update src/lightning/fabric/utilities/cloud_io.py

Co-authored-by: Jirka Borovec <[email protected]>

* defaults for weights_only in torch.hub.load_state_dict_from_url

* default to weights_only=False for torch.hub.load_state_dict_from_url

* add weights_only to trainer.fit, validate, test, predict

* fix tests

* add weights_only arg

* specify weights_only kwarg

* weights_only for fsdp load

* Apply suggestions from code review

* Apply suggestions from code review

* default is none

* add weights_only args to strategies

* trainer default to weights_only=None

* wip: fix typing dump_checkpoint

* Apply suggestions from code review

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* weights_only as last arg

* asset called with none

* weights_only=False for torch>=2.6 in tests

* fix changelog description

* Empty-Commit

* Empty-Commit

* trigger ci

* skip ddp_fork on macos

---------

Co-authored-by: Nicki Skafte Detlefsen <[email protected]>
Co-authored-by: Jirka Borovec <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: thomas chaton <[email protected]>
Co-authored-by: Jirka B <[email protected]>
Co-authored-by: jirka <[email protected]>
Co-authored-by: Deependu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous Integration dependencies Pull requests that update a dependency file dockers fabric lightning.fabric.Fabric package pl Generic label for PyTorch Lightning package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants