lightning 2.6.0__tar.gz → 2.6.0.dev0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lightning-2.6.0 → lightning-2.6.0.dev0}/.actions/assistant.py +9 -10
- {lightning-2.6.0/src/lightning.egg-info → lightning-2.6.0.dev0}/PKG-INFO +49 -55
- {lightning-2.6.0 → lightning-2.6.0.dev0}/pyproject.toml +7 -1
- {lightning-2.6.0 → lightning-2.6.0.dev0}/requirements/fabric/test.txt +2 -3
- {lightning-2.6.0 → lightning-2.6.0.dev0}/requirements/pytorch/docs.txt +2 -2
- {lightning-2.6.0 → lightning-2.6.0.dev0}/requirements/pytorch/extra.txt +2 -2
- {lightning-2.6.0 → lightning-2.6.0.dev0}/requirements/pytorch/test.txt +4 -5
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/CHANGELOG.md +4 -17
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/fabric.py +8 -33
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/environments/lightning.py +28 -11
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/environments/mpi.py +1 -5
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/io/checkpoint_io.py +1 -8
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/io/torch_io.py +2 -10
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/precision/fsdp.py +10 -10
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/deepspeed.py +1 -2
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/fsdp.py +1 -2
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/model_parallel.py +3 -5
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/strategy.py +1 -2
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/xla_fsdp.py +1 -2
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/cloud_io.py +3 -15
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/imports.py +0 -1
- lightning-2.6.0.dev0/src/lightning/fabric/utilities/port_manager.py +233 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/CHANGELOG.md +5 -48
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/__init__.py +1 -2
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/batch_size_finder.py +0 -14
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/finetuning.py +8 -51
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/model_checkpoint.py +26 -152
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/weight_averaging.py +1 -53
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/core/datamodule.py +0 -7
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/core/hooks.py +0 -1
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/core/module.py +0 -7
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/core/saving.py +1 -3
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loops/training_epoch_loop.py +17 -24
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/precision/fsdp.py +10 -10
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/profilers/pytorch.py +1 -2
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/deepspeed.py +2 -2
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/fsdp.py +2 -2
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/model_parallel.py +1 -2
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/strategy.py +2 -2
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/connectors/checkpoint_connector.py +8 -16
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/trainer.py +13 -64
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/tuner/batch_size_scaling.py +6 -57
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/tuner/tuning.py +0 -11
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/imports.py +0 -1
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/parsing.py +1 -1
- lightning-2.6.0.dev0/src/lightning/version.info +1 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0/src/lightning.egg-info}/PKG-INFO +49 -55
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning.egg-info/SOURCES.txt +2 -1
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning.egg-info/requires.txt +12 -18
- lightning-2.6.0.dev0/src/version.info +1 -0
- lightning-2.6.0/src/lightning/version.info +0 -1
- lightning-2.6.0/src/version.info +0 -1
- {lightning-2.6.0 → lightning-2.6.0.dev0}/CITATION.cff +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/LICENSE +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/README.md +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/requirements/base.txt +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/requirements/fabric/base.txt +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/requirements/fabric/docs.txt +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/requirements/fabric/examples.txt +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/requirements/fabric/extra.txt +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/requirements/fabric/strategies.txt +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/requirements/pytorch/base.txt +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/requirements/pytorch/examples.txt +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/requirements/pytorch/strategies.txt +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/setup.cfg +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/setup.py +0 -0
- /lightning-2.6.0/src/lightning/6ca737033d745eb3a592a99f506803a0567f961f513306b7 → /lightning-2.6.0.dev0/src/lightning/36e4fb47a659f3f6d57e62c858555053c62817fcd39048c0 +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/__about__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/__setup__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/__version__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/data/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/_graveyard/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/_graveyard/tpu.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/accelerators/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/accelerators/accelerator.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/accelerators/cpu.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/accelerators/cuda.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/accelerators/mps.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/accelerators/registry.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/accelerators/xla.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/cli.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/connector.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/loggers/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/loggers/csv_logs.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/loggers/logger.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/loggers/tensorboard.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/collectives/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/collectives/collective.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/collectives/single_device.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/collectives/torch_collective.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/environments/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/environments/cluster_environment.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/environments/kubeflow.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/environments/lsf.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/environments/slurm.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/environments/torchelastic.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/environments/xla.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/io/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/io/xla.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/precision/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/precision/amp.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/precision/bitsandbytes.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/precision/deepspeed.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/precision/double.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/precision/half.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/precision/precision.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/precision/transformer_engine.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/precision/utils.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/precision/xla.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/ddp.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/dp.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/launchers/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/launchers/launcher.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/launchers/multiprocessing.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/launchers/subprocess_script.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/launchers/xla.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/parallel.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/registry.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/single_device.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/single_xla.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/strategies/xla.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/apply_func.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/consolidate_checkpoint.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/data.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/device_dtype_mixin.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/device_parser.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/distributed.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/enums.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/exceptions.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/init.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/load.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/logger.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/optimizer.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/rank_zero.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/registry.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/seed.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/spike.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/testing/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/testing/_runif.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/throughput.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/types.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/utilities/warnings.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/wrappers.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/py.typed +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/_graveyard/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/_graveyard/_torchmetrics.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/_graveyard/hpu.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/_graveyard/precision.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/_graveyard/tpu.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/accelerators/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/accelerators/accelerator.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/accelerators/cpu.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/accelerators/cuda.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/accelerators/mps.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/accelerators/xla.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/callback.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/checkpoint.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/device_stats_monitor.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/early_stopping.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/gradient_accumulation_scheduler.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/lambda_function.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/lr_finder.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/lr_monitor.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/model_summary.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/on_exception_checkpoint.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/prediction_writer.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/progress/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/progress/progress_bar.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/progress/rich_progress.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/progress/tqdm_progress.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/pruning.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/rich_model_summary.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/spike.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/stochastic_weight_avg.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/throughput_monitor.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/callbacks/timer.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/cli.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/core/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/core/mixins/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/core/mixins/hparams_mixin.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/core/optimizer.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/demos/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/demos/boring_classes.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/demos/lstm.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/demos/mnist_datamodule.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/demos/transformer.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loggers/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loggers/comet.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loggers/csv_logs.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loggers/logger.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loggers/mlflow.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loggers/neptune.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loggers/tensorboard.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loggers/utilities.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loggers/wandb.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loops/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loops/evaluation_loop.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loops/fetchers.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loops/fit_loop.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loops/loop.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loops/optimization/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loops/optimization/automatic.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loops/optimization/closure.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loops/optimization/manual.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loops/prediction_loop.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loops/progress.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/loops/utilities.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/overrides/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/overrides/distributed.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/environments/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/io/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/io/async_plugin.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/io/checkpoint_plugin.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/io/torch_plugin.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/io/wrapper.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/io/xla_plugin.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/layer_sync.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/precision/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/precision/amp.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/precision/bitsandbytes.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/precision/deepspeed.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/precision/double.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/precision/half.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/precision/precision.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/precision/transformer_engine.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/plugins/precision/xla.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/profilers/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/profilers/advanced.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/profilers/base.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/profilers/profiler.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/profilers/simple.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/profilers/xla.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/serve/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/serve/servable_module.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/serve/servable_module_validator.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/ddp.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/launchers/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/launchers/launcher.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/launchers/multiprocessing.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/launchers/subprocess_script.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/launchers/xla.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/parallel.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/single_device.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/single_xla.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/strategies/xla.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/call.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/configuration_validator.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/connectors/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/connectors/accelerator_connector.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/connectors/callback_connector.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/connectors/data_connector.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/connectors/logger_connector/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/connectors/logger_connector/fx_validator.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/connectors/logger_connector/logger_connector.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/connectors/logger_connector/result.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/connectors/signal_connector.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/setup.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/trainer/states.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/tuner/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/tuner/lr_finder.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/_pytree.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/argparse.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/combined_loader.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/compile.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/consolidate_checkpoint.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/data.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/deepspeed.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/enums.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/exceptions.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/grads.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/memory.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/migration/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/migration/migration.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/migration/utils.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/model_helpers.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/model_registry.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/model_summary/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/model_summary/model_summary.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/model_summary/model_summary_deepspeed.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/parameter_tying.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/rank_zero.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/seed.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/signature_utils.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/testing/__init__.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/testing/_runif.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/types.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/upgrade_checkpoint.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/pytorch/utilities/warnings.py +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning.egg-info/dependency_links.txt +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning.egg-info/entry_points.txt +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning.egg-info/not-zip-safe +0 -0
- {lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning.egg-info/top_level.txt +0 -0
|
@@ -46,14 +46,14 @@ _PROJECT_ROOT = os.path.dirname(os.path.dirname(__file__))
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
class _RequirementWithComment(Requirement):
|
|
49
|
-
|
|
49
|
+
strict_string = "# strict"
|
|
50
50
|
|
|
51
51
|
def __init__(self, *args: Any, comment: str = "", pip_argument: Optional[str] = None, **kwargs: Any) -> None:
|
|
52
52
|
super().__init__(*args, **kwargs)
|
|
53
53
|
self.comment = comment
|
|
54
54
|
assert pip_argument is None or pip_argument # sanity check that it's not an empty str
|
|
55
55
|
self.pip_argument = pip_argument
|
|
56
|
-
self.strict = self.
|
|
56
|
+
self.strict = self.strict_string in comment.lower()
|
|
57
57
|
|
|
58
58
|
def adjust(self, unfreeze: str) -> str:
|
|
59
59
|
"""Remove version restrictions unless they are strict.
|
|
@@ -62,26 +62,25 @@ class _RequirementWithComment(Requirement):
|
|
|
62
62
|
'arrow<=1.2.2,>=1.2.0'
|
|
63
63
|
>>> _RequirementWithComment("arrow<=1.2.2,>=1.2.0", comment="# strict").adjust("none")
|
|
64
64
|
'arrow<=1.2.2,>=1.2.0 # strict'
|
|
65
|
-
>>> _RequirementWithComment(
|
|
66
|
-
'arrow>=1.2.0
|
|
65
|
+
>>> _RequirementWithComment("arrow<=1.2.2,>=1.2.0", comment="# my name").adjust("all")
|
|
66
|
+
'arrow>=1.2.0'
|
|
67
67
|
>>> _RequirementWithComment("arrow>=1.2.0, <=1.2.2", comment="# strict").adjust("all")
|
|
68
68
|
'arrow<=1.2.2,>=1.2.0 # strict'
|
|
69
|
-
>>> _RequirementWithComment(
|
|
70
|
-
'arrow
|
|
69
|
+
>>> _RequirementWithComment("arrow").adjust("all")
|
|
70
|
+
'arrow'
|
|
71
71
|
>>> _RequirementWithComment("arrow>=1.2.0, <=1.2.2", comment="# cool").adjust("major")
|
|
72
72
|
'arrow<2.0,>=1.2.0'
|
|
73
73
|
>>> _RequirementWithComment("arrow>=1.2.0, <=1.2.2", comment="# strict").adjust("major")
|
|
74
74
|
'arrow<=1.2.2,>=1.2.0 # strict'
|
|
75
|
-
>>> _RequirementWithComment(
|
|
76
|
-
'arrow>=1.2.0
|
|
75
|
+
>>> _RequirementWithComment("arrow>=1.2.0").adjust("major")
|
|
76
|
+
'arrow>=1.2.0'
|
|
77
77
|
>>> _RequirementWithComment("arrow").adjust("major")
|
|
78
78
|
'arrow'
|
|
79
79
|
|
|
80
80
|
"""
|
|
81
81
|
out = str(self)
|
|
82
82
|
if self.strict:
|
|
83
|
-
return f"{out}
|
|
84
|
-
|
|
83
|
+
return f"{out} {self.strict_string}"
|
|
85
84
|
specs = [(spec.operator, spec.version) for spec in self.specifier]
|
|
86
85
|
if unfreeze == "major":
|
|
87
86
|
for operator, version in specs:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lightning
|
|
3
|
-
Version: 2.6.0
|
|
3
|
+
Version: 2.6.0.dev0
|
|
4
4
|
Summary: The Deep Learning framework to train, deploy, and ship AI products Lightning fast.
|
|
5
5
|
Home-page: https://github.com/Lightning-AI/lightning
|
|
6
6
|
Download-URL: https://github.com/Lightning-AI/lightning
|
|
@@ -36,11 +36,27 @@ Requires-Dist: torchmetrics<3.0,>0.7.0
|
|
|
36
36
|
Requires-Dist: tqdm<6.0,>=4.57.0
|
|
37
37
|
Requires-Dist: typing-extensions<6.0,>4.5.0
|
|
38
38
|
Requires-Dist: pytorch-lightning
|
|
39
|
-
Provides-Extra:
|
|
40
|
-
Requires-Dist:
|
|
41
|
-
|
|
42
|
-
Requires-Dist:
|
|
43
|
-
Requires-Dist:
|
|
39
|
+
Provides-Extra: fabric-extra
|
|
40
|
+
Requires-Dist: hydra-core<2.0,>=1.2.0; extra == "fabric-extra"
|
|
41
|
+
Provides-Extra: fabric-strategies
|
|
42
|
+
Requires-Dist: bitsandbytes<1.0,>=0.45.2; platform_system != "Darwin" and extra == "fabric-strategies"
|
|
43
|
+
Requires-Dist: deepspeed<0.17.0,>=0.15.0; (platform_system != "Windows" and platform_system != "Darwin") and extra == "fabric-strategies"
|
|
44
|
+
Provides-Extra: fabric-examples
|
|
45
|
+
Requires-Dist: torchmetrics<2.0,>=0.10.0; extra == "fabric-examples"
|
|
46
|
+
Requires-Dist: torchvision<1.0,>=0.16.0; extra == "fabric-examples"
|
|
47
|
+
Provides-Extra: fabric-test
|
|
48
|
+
Requires-Dist: click==8.1.8; python_version < "3.11" and extra == "fabric-test"
|
|
49
|
+
Requires-Dist: click==8.3.0; python_version > "3.10" and extra == "fabric-test"
|
|
50
|
+
Requires-Dist: coverage==7.10.7; extra == "fabric-test"
|
|
51
|
+
Requires-Dist: huggingface-hub; extra == "fabric-test"
|
|
52
|
+
Requires-Dist: numpy<2.0,>=1.21.0; extra == "fabric-test"
|
|
53
|
+
Requires-Dist: pytest-cov==6.3.0; extra == "fabric-test"
|
|
54
|
+
Requires-Dist: pytest-random-order==1.2.0; extra == "fabric-test"
|
|
55
|
+
Requires-Dist: pytest-rerunfailures==16.0.1; python_version < "3.10" and extra == "fabric-test"
|
|
56
|
+
Requires-Dist: pytest-rerunfailures==16.1; python_version >= "3.10" and extra == "fabric-test"
|
|
57
|
+
Requires-Dist: pytest-timeout==2.4.0; extra == "fabric-test"
|
|
58
|
+
Requires-Dist: pytest==8.4.2; extra == "fabric-test"
|
|
59
|
+
Requires-Dist: tensorboardX<3.0,>=2.6; extra == "fabric-test"
|
|
44
60
|
Provides-Extra: pytorch-extra
|
|
45
61
|
Requires-Dist: bitsandbytes<1.0,>=0.45.2; platform_system != "Darwin" and extra == "pytorch-extra"
|
|
46
62
|
Requires-Dist: hydra-core<2.0,>=1.2.0; extra == "pytorch-extra"
|
|
@@ -49,10 +65,16 @@ Requires-Dist: matplotlib<4.0,>3.1; extra == "pytorch-extra"
|
|
|
49
65
|
Requires-Dist: omegaconf<3.0,>=2.2.3; extra == "pytorch-extra"
|
|
50
66
|
Requires-Dist: rich<15.0,>=12.3.0; extra == "pytorch-extra"
|
|
51
67
|
Requires-Dist: tensorboardX<3.0,>=2.2; extra == "pytorch-extra"
|
|
68
|
+
Provides-Extra: pytorch-strategies
|
|
69
|
+
Requires-Dist: deepspeed<0.17.0,>=0.15.0; (platform_system != "Windows" and platform_system != "Darwin") and extra == "pytorch-strategies"
|
|
70
|
+
Provides-Extra: pytorch-examples
|
|
71
|
+
Requires-Dist: ipython[all]<11.0,>=8.0.0; extra == "pytorch-examples"
|
|
72
|
+
Requires-Dist: requests<3.0; extra == "pytorch-examples"
|
|
73
|
+
Requires-Dist: torchmetrics<2.0,>=0.10.0; extra == "pytorch-examples"
|
|
74
|
+
Requires-Dist: torchvision<1.0,>=0.16.0; extra == "pytorch-examples"
|
|
52
75
|
Provides-Extra: pytorch-test
|
|
53
76
|
Requires-Dist: cloudpickle<4.0,>=1.3; extra == "pytorch-test"
|
|
54
|
-
Requires-Dist: coverage==7.10.7;
|
|
55
|
-
Requires-Dist: coverage==7.11.0; python_version >= "3.10" and extra == "pytorch-test"
|
|
77
|
+
Requires-Dist: coverage==7.10.7; extra == "pytorch-test"
|
|
56
78
|
Requires-Dist: fastapi; extra == "pytorch-test"
|
|
57
79
|
Requires-Dist: huggingface-hub; extra == "pytorch-test"
|
|
58
80
|
Requires-Dist: numpy<2.0,>1.20.0; extra == "pytorch-test"
|
|
@@ -61,7 +83,7 @@ Requires-Dist: onnxruntime<2.0,>=1.12.0; extra == "pytorch-test"
|
|
|
61
83
|
Requires-Dist: onnxscript<1.0,>=0.1.0; extra == "pytorch-test"
|
|
62
84
|
Requires-Dist: pandas<3.0,>2.0; extra == "pytorch-test"
|
|
63
85
|
Requires-Dist: psutil<8.0; extra == "pytorch-test"
|
|
64
|
-
Requires-Dist: pytest-cov==
|
|
86
|
+
Requires-Dist: pytest-cov==6.3.0; extra == "pytorch-test"
|
|
65
87
|
Requires-Dist: pytest-random-order==1.2.0; extra == "pytorch-test"
|
|
66
88
|
Requires-Dist: pytest-rerunfailures==16.0.1; python_version < "3.10" and extra == "pytorch-test"
|
|
67
89
|
Requires-Dist: pytest-rerunfailures==16.1; python_version >= "3.10" and extra == "pytorch-test"
|
|
@@ -71,30 +93,6 @@ Requires-Dist: scikit-learn<2.0,>0.22.1; extra == "pytorch-test"
|
|
|
71
93
|
Requires-Dist: tensorboard<3.0,>=2.11; extra == "pytorch-test"
|
|
72
94
|
Requires-Dist: torch-tensorrt; (platform_system == "Linux" and python_version >= "3.12") and extra == "pytorch-test"
|
|
73
95
|
Requires-Dist: uvicorn; extra == "pytorch-test"
|
|
74
|
-
Provides-Extra: pytorch-strategies
|
|
75
|
-
Requires-Dist: deepspeed<0.17.0,>=0.15.0; (platform_system != "Windows" and platform_system != "Darwin") and extra == "pytorch-strategies"
|
|
76
|
-
Provides-Extra: fabric-examples
|
|
77
|
-
Requires-Dist: torchmetrics<2.0,>=0.10.0; extra == "fabric-examples"
|
|
78
|
-
Requires-Dist: torchvision<1.0,>=0.16.0; extra == "fabric-examples"
|
|
79
|
-
Provides-Extra: fabric-extra
|
|
80
|
-
Requires-Dist: hydra-core<2.0,>=1.2.0; extra == "fabric-extra"
|
|
81
|
-
Provides-Extra: fabric-test
|
|
82
|
-
Requires-Dist: click==8.1.8; python_version < "3.11" and extra == "fabric-test"
|
|
83
|
-
Requires-Dist: click==8.3.0; python_version > "3.10" and extra == "fabric-test"
|
|
84
|
-
Requires-Dist: coverage==7.10.7; python_version < "3.10" and extra == "fabric-test"
|
|
85
|
-
Requires-Dist: coverage==7.11.0; python_version >= "3.10" and extra == "fabric-test"
|
|
86
|
-
Requires-Dist: huggingface-hub; extra == "fabric-test"
|
|
87
|
-
Requires-Dist: numpy<2.0,>=1.21.0; extra == "fabric-test"
|
|
88
|
-
Requires-Dist: pytest-cov==7.0.0; extra == "fabric-test"
|
|
89
|
-
Requires-Dist: pytest-random-order==1.2.0; extra == "fabric-test"
|
|
90
|
-
Requires-Dist: pytest-rerunfailures==16.0.1; python_version < "3.10" and extra == "fabric-test"
|
|
91
|
-
Requires-Dist: pytest-rerunfailures==16.1; python_version >= "3.10" and extra == "fabric-test"
|
|
92
|
-
Requires-Dist: pytest-timeout==2.4.0; extra == "fabric-test"
|
|
93
|
-
Requires-Dist: pytest==8.4.2; extra == "fabric-test"
|
|
94
|
-
Requires-Dist: tensorboardX<3.0,>=2.6; extra == "fabric-test"
|
|
95
|
-
Provides-Extra: fabric-strategies
|
|
96
|
-
Requires-Dist: bitsandbytes<1.0,>=0.45.2; platform_system != "Darwin" and extra == "fabric-strategies"
|
|
97
|
-
Requires-Dist: deepspeed<0.17.0,>=0.15.0; (platform_system != "Windows" and platform_system != "Darwin") and extra == "fabric-strategies"
|
|
98
96
|
Provides-Extra: fabric-all
|
|
99
97
|
Requires-Dist: bitsandbytes<1.0,>=0.45.2; platform_system != "Darwin" and extra == "fabric-all"
|
|
100
98
|
Requires-Dist: deepspeed<0.17.0,>=0.15.0; (platform_system != "Windows" and platform_system != "Darwin") and extra == "fabric-all"
|
|
@@ -105,13 +103,12 @@ Provides-Extra: fabric-dev
|
|
|
105
103
|
Requires-Dist: bitsandbytes<1.0,>=0.45.2; platform_system != "Darwin" and extra == "fabric-dev"
|
|
106
104
|
Requires-Dist: click==8.1.8; python_version < "3.11" and extra == "fabric-dev"
|
|
107
105
|
Requires-Dist: click==8.3.0; python_version > "3.10" and extra == "fabric-dev"
|
|
108
|
-
Requires-Dist: coverage==7.10.7;
|
|
109
|
-
Requires-Dist: coverage==7.11.0; python_version >= "3.10" and extra == "fabric-dev"
|
|
106
|
+
Requires-Dist: coverage==7.10.7; extra == "fabric-dev"
|
|
110
107
|
Requires-Dist: deepspeed<0.17.0,>=0.15.0; (platform_system != "Windows" and platform_system != "Darwin") and extra == "fabric-dev"
|
|
111
108
|
Requires-Dist: huggingface-hub; extra == "fabric-dev"
|
|
112
109
|
Requires-Dist: hydra-core<2.0,>=1.2.0; extra == "fabric-dev"
|
|
113
110
|
Requires-Dist: numpy<2.0,>=1.21.0; extra == "fabric-dev"
|
|
114
|
-
Requires-Dist: pytest-cov==
|
|
111
|
+
Requires-Dist: pytest-cov==6.3.0; extra == "fabric-dev"
|
|
115
112
|
Requires-Dist: pytest-random-order==1.2.0; extra == "fabric-dev"
|
|
116
113
|
Requires-Dist: pytest-rerunfailures==16.0.1; python_version < "3.10" and extra == "fabric-dev"
|
|
117
114
|
Requires-Dist: pytest-rerunfailures==16.1; python_version >= "3.10" and extra == "fabric-dev"
|
|
@@ -136,8 +133,7 @@ Requires-Dist: torchvision<1.0,>=0.16.0; extra == "pytorch-all"
|
|
|
136
133
|
Provides-Extra: pytorch-dev
|
|
137
134
|
Requires-Dist: bitsandbytes<1.0,>=0.45.2; platform_system != "Darwin" and extra == "pytorch-dev"
|
|
138
135
|
Requires-Dist: cloudpickle<4.0,>=1.3; extra == "pytorch-dev"
|
|
139
|
-
Requires-Dist: coverage==7.10.7;
|
|
140
|
-
Requires-Dist: coverage==7.11.0; python_version >= "3.10" and extra == "pytorch-dev"
|
|
136
|
+
Requires-Dist: coverage==7.10.7; extra == "pytorch-dev"
|
|
141
137
|
Requires-Dist: deepspeed<0.17.0,>=0.15.0; (platform_system != "Windows" and platform_system != "Darwin") and extra == "pytorch-dev"
|
|
142
138
|
Requires-Dist: fastapi; extra == "pytorch-dev"
|
|
143
139
|
Requires-Dist: huggingface-hub; extra == "pytorch-dev"
|
|
@@ -152,7 +148,7 @@ Requires-Dist: onnxruntime<2.0,>=1.12.0; extra == "pytorch-dev"
|
|
|
152
148
|
Requires-Dist: onnxscript<1.0,>=0.1.0; extra == "pytorch-dev"
|
|
153
149
|
Requires-Dist: pandas<3.0,>2.0; extra == "pytorch-dev"
|
|
154
150
|
Requires-Dist: psutil<8.0; extra == "pytorch-dev"
|
|
155
|
-
Requires-Dist: pytest-cov==
|
|
151
|
+
Requires-Dist: pytest-cov==6.3.0; extra == "pytorch-dev"
|
|
156
152
|
Requires-Dist: pytest-random-order==1.2.0; extra == "pytorch-dev"
|
|
157
153
|
Requires-Dist: pytest-rerunfailures==16.0.1; python_version < "3.10" and extra == "pytorch-dev"
|
|
158
154
|
Requires-Dist: pytest-rerunfailures==16.1; python_version >= "3.10" and extra == "pytorch-dev"
|
|
@@ -169,11 +165,6 @@ Requires-Dist: torchvision<1.0,>=0.16.0; extra == "pytorch-dev"
|
|
|
169
165
|
Requires-Dist: uvicorn; extra == "pytorch-dev"
|
|
170
166
|
Provides-Extra: data
|
|
171
167
|
Requires-Dist: litdata<1.0,>=0.2.0rc; extra == "data"
|
|
172
|
-
Provides-Extra: examples
|
|
173
|
-
Requires-Dist: ipython[all]<11.0,>=8.0.0; extra == "examples"
|
|
174
|
-
Requires-Dist: requests<3.0; extra == "examples"
|
|
175
|
-
Requires-Dist: torchmetrics<2.0,>=0.10.0; extra == "examples"
|
|
176
|
-
Requires-Dist: torchvision<1.0,>=0.16.0; extra == "examples"
|
|
177
168
|
Provides-Extra: extra
|
|
178
169
|
Requires-Dist: bitsandbytes<1.0,>=0.45.2; platform_system != "Darwin" and extra == "extra"
|
|
179
170
|
Requires-Dist: hydra-core<2.0,>=1.2.0; extra == "extra"
|
|
@@ -182,12 +173,19 @@ Requires-Dist: matplotlib<4.0,>3.1; extra == "extra"
|
|
|
182
173
|
Requires-Dist: omegaconf<3.0,>=2.2.3; extra == "extra"
|
|
183
174
|
Requires-Dist: rich<15.0,>=12.3.0; extra == "extra"
|
|
184
175
|
Requires-Dist: tensorboardX<3.0,>=2.2; extra == "extra"
|
|
176
|
+
Provides-Extra: strategies
|
|
177
|
+
Requires-Dist: bitsandbytes<1.0,>=0.45.2; platform_system != "Darwin" and extra == "strategies"
|
|
178
|
+
Requires-Dist: deepspeed<0.17.0,>=0.15.0; (platform_system != "Windows" and platform_system != "Darwin") and extra == "strategies"
|
|
179
|
+
Provides-Extra: examples
|
|
180
|
+
Requires-Dist: ipython[all]<11.0,>=8.0.0; extra == "examples"
|
|
181
|
+
Requires-Dist: requests<3.0; extra == "examples"
|
|
182
|
+
Requires-Dist: torchmetrics<2.0,>=0.10.0; extra == "examples"
|
|
183
|
+
Requires-Dist: torchvision<1.0,>=0.16.0; extra == "examples"
|
|
185
184
|
Provides-Extra: test
|
|
186
185
|
Requires-Dist: click==8.1.8; python_version < "3.11" and extra == "test"
|
|
187
186
|
Requires-Dist: click==8.3.0; python_version > "3.10" and extra == "test"
|
|
188
187
|
Requires-Dist: cloudpickle<4.0,>=1.3; extra == "test"
|
|
189
|
-
Requires-Dist: coverage==7.10.7;
|
|
190
|
-
Requires-Dist: coverage==7.11.0; python_version >= "3.10" and extra == "test"
|
|
188
|
+
Requires-Dist: coverage==7.10.7; extra == "test"
|
|
191
189
|
Requires-Dist: fastapi; extra == "test"
|
|
192
190
|
Requires-Dist: huggingface-hub; extra == "test"
|
|
193
191
|
Requires-Dist: numpy<2.0,>1.20.0; extra == "test"
|
|
@@ -197,7 +195,7 @@ Requires-Dist: onnxruntime<2.0,>=1.12.0; extra == "test"
|
|
|
197
195
|
Requires-Dist: onnxscript<1.0,>=0.1.0; extra == "test"
|
|
198
196
|
Requires-Dist: pandas<3.0,>2.0; extra == "test"
|
|
199
197
|
Requires-Dist: psutil<8.0; extra == "test"
|
|
200
|
-
Requires-Dist: pytest-cov==
|
|
198
|
+
Requires-Dist: pytest-cov==6.3.0; extra == "test"
|
|
201
199
|
Requires-Dist: pytest-random-order==1.2.0; extra == "test"
|
|
202
200
|
Requires-Dist: pytest-rerunfailures==16.0.1; python_version < "3.10" and extra == "test"
|
|
203
201
|
Requires-Dist: pytest-rerunfailures==16.1; python_version >= "3.10" and extra == "test"
|
|
@@ -208,9 +206,6 @@ Requires-Dist: tensorboard<3.0,>=2.11; extra == "test"
|
|
|
208
206
|
Requires-Dist: tensorboardX<3.0,>=2.6; extra == "test"
|
|
209
207
|
Requires-Dist: torch-tensorrt; (platform_system == "Linux" and python_version >= "3.12") and extra == "test"
|
|
210
208
|
Requires-Dist: uvicorn; extra == "test"
|
|
211
|
-
Provides-Extra: strategies
|
|
212
|
-
Requires-Dist: bitsandbytes<1.0,>=0.45.2; platform_system != "Darwin" and extra == "strategies"
|
|
213
|
-
Requires-Dist: deepspeed<0.17.0,>=0.15.0; (platform_system != "Windows" and platform_system != "Darwin") and extra == "strategies"
|
|
214
209
|
Provides-Extra: all
|
|
215
210
|
Requires-Dist: bitsandbytes<1.0,>=0.45.2; platform_system != "Darwin" and extra == "all"
|
|
216
211
|
Requires-Dist: deepspeed<0.17.0,>=0.15.0; (platform_system != "Windows" and platform_system != "Darwin") and extra == "all"
|
|
@@ -229,8 +224,7 @@ Requires-Dist: bitsandbytes<1.0,>=0.45.2; platform_system != "Darwin" and extra
|
|
|
229
224
|
Requires-Dist: click==8.1.8; python_version < "3.11" and extra == "dev"
|
|
230
225
|
Requires-Dist: click==8.3.0; python_version > "3.10" and extra == "dev"
|
|
231
226
|
Requires-Dist: cloudpickle<4.0,>=1.3; extra == "dev"
|
|
232
|
-
Requires-Dist: coverage==7.10.7;
|
|
233
|
-
Requires-Dist: coverage==7.11.0; python_version >= "3.10" and extra == "dev"
|
|
227
|
+
Requires-Dist: coverage==7.10.7; extra == "dev"
|
|
234
228
|
Requires-Dist: deepspeed<0.17.0,>=0.15.0; (platform_system != "Windows" and platform_system != "Darwin") and extra == "dev"
|
|
235
229
|
Requires-Dist: fastapi; extra == "dev"
|
|
236
230
|
Requires-Dist: huggingface-hub; extra == "dev"
|
|
@@ -246,7 +240,7 @@ Requires-Dist: onnxruntime<2.0,>=1.12.0; extra == "dev"
|
|
|
246
240
|
Requires-Dist: onnxscript<1.0,>=0.1.0; extra == "dev"
|
|
247
241
|
Requires-Dist: pandas<3.0,>2.0; extra == "dev"
|
|
248
242
|
Requires-Dist: psutil<8.0; extra == "dev"
|
|
249
|
-
Requires-Dist: pytest-cov==
|
|
243
|
+
Requires-Dist: pytest-cov==6.3.0; extra == "dev"
|
|
250
244
|
Requires-Dist: pytest-random-order==1.2.0; extra == "dev"
|
|
251
245
|
Requires-Dist: pytest-rerunfailures==16.0.1; python_version < "3.10" and extra == "dev"
|
|
252
246
|
Requires-Dist: pytest-rerunfailures==16.1; python_version >= "3.10" and extra == "dev"
|
|
@@ -298,7 +292,7 @@ ______________________________________________________________________
|
|
|
298
292
|
<a href="#lightning-fabric-expert-control">Fabric</a> •
|
|
299
293
|
<a href="https://lightning.ai/?utm_source=ptl_readme&utm_medium=referral&utm_campaign=ptl_readme">Lightning Cloud</a> •
|
|
300
294
|
<a href="#community">Community</a> •
|
|
301
|
-
<a href="https://pytorch-lightning.readthedocs.io/en/2.6.
|
|
295
|
+
<a href="https://pytorch-lightning.readthedocs.io/en/2.6.0dev0">Docs</a>
|
|
302
296
|
</p>
|
|
303
297
|
|
|
304
298
|
<!-- DO NOT ADD CONDA DOWNLOADS... README CHANGES MUST BE APPROVED BY EDEN OR WILL -->
|
|
@@ -841,7 +835,7 @@ Lightning is rigorously tested across multiple CPUs, GPUs and TPUs and against m
|
|
|
841
835
|
|
|
842
836
|
| System / PyTorch ver. | 1.13 | 2.0 | 2.1 |
|
|
843
837
|
| :--------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
|
844
|
-
| Linux py3.9 \[GPUs\] | | | [](https://dev.azure.com/Lightning-AI/lightning/_build/latest?definitionId=24&branchName=master) |
|
|
845
839
|
| Linux (multiple Python versions) | [](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) | [](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) | [](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) |
|
|
846
840
|
| OSX (multiple Python versions) | [](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) | [](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) | [](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) |
|
|
847
841
|
| Windows (multiple Python versions) | [](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) | [](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) | [](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) |
|
|
@@ -92,6 +92,9 @@ ignore = [
|
|
|
92
92
|
"src/**" = [
|
|
93
93
|
"S101", # todo: Use of `assert` detected
|
|
94
94
|
"S113", # todo: Probable use of requests call without timeout
|
|
95
|
+
"S301", # todo: `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
|
|
96
|
+
"S324", # todo: Probable use of insecure hash functions in `hashlib`
|
|
97
|
+
"S403", # todo: `pickle`, `cPickle`, `dill`, and `shelve` modules are possibly insecure
|
|
95
98
|
"S404", # todo: `subprocess` module is possibly insecure
|
|
96
99
|
"S602", # todo: `subprocess` call with `shell=True` identified, security issue
|
|
97
100
|
"S603", # todo: `subprocess` call: check for execution of untrusted input
|
|
@@ -103,14 +106,18 @@ ignore = [
|
|
|
103
106
|
"tests/**" = [
|
|
104
107
|
"S101", # Use of `assert` detected
|
|
105
108
|
"S301", # `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
|
|
109
|
+
"S113", # todo: Probable use of requests call without timeout
|
|
106
110
|
"S311", # todo: Standard pseudo-random generators are not suitable for cryptographic purposes
|
|
107
111
|
"S108", # todo: Probable insecure usage of temporary file or directory: "/tmp/sys-customizations-sync"
|
|
112
|
+
"S202", # Uses of `tarfile.extractall()`
|
|
108
113
|
"S403", # `pickle`, `cPickle`, `dill`, and `shelve` modules are possibly insecure
|
|
109
114
|
"S404", # `subprocess` module is possibly insecure
|
|
110
115
|
"S602", # todo: `subprocess` call with `shell=True` identified, security issue
|
|
111
116
|
"S603", # todo: `subprocess` call: check for execution of untrusted input
|
|
112
117
|
"S605", # todo: Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
|
|
113
118
|
"S607", # todo: Starting a process with a partial executable path
|
|
119
|
+
"RET504", # todo:Unnecessary variable assignment before `return` statement
|
|
120
|
+
"PT004", # todo: Fixture `tmpdir_unittest_fixture` does not return anything, add leading underscore
|
|
114
121
|
"PT012", # todo: `pytest.raises()` block should contain a single simple statement
|
|
115
122
|
"PT019", # todo: Fixture `_` without value is injected as parameter, use `@pytest.mark.usefixtures` instead
|
|
116
123
|
]
|
|
@@ -172,7 +179,6 @@ filterwarnings = [
|
|
|
172
179
|
# "error::DeprecationWarning",
|
|
173
180
|
"error::FutureWarning",
|
|
174
181
|
"ignore::FutureWarning:onnxscript", # Temporary ignore until onnxscript is updated
|
|
175
|
-
"ignore:You are using `torch.load` with `weights_only=False`.*:FutureWarning",
|
|
176
182
|
]
|
|
177
183
|
xfail_strict = true
|
|
178
184
|
junit_duration_report = "call"
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
coverage ==7.
|
|
2
|
-
coverage ==7.10.7; python_version < "3.10"
|
|
1
|
+
coverage ==7.10.7
|
|
3
2
|
numpy >=1.21.0, <1.27.0
|
|
4
3
|
pytest ==8.4.2
|
|
5
|
-
pytest-cov ==
|
|
4
|
+
pytest-cov ==6.3.0
|
|
6
5
|
pytest-timeout ==2.4.0
|
|
7
6
|
pytest-rerunfailures ==16.0.1; python_version < "3.10"
|
|
8
7
|
pytest-rerunfailures ==16.1; python_version >= "3.10"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
-r ../docs.txt
|
|
2
2
|
|
|
3
3
|
nbformat # used for generate empty notebook
|
|
4
|
-
ipython[notebook] <9.
|
|
4
|
+
ipython[notebook] <9.7.0
|
|
5
5
|
setuptools<81.0 # workaround for `error in ipython setup command: use_2to3 is invalid.`
|
|
6
6
|
|
|
7
|
-
onnxscript >= 0.2.2, < 0.
|
|
7
|
+
onnxscript >= 0.2.2, < 0.5.0
|
|
8
8
|
|
|
9
9
|
#-r ../../_notebooks/.actions/requires.txt
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
matplotlib>3.1, <3.11.0
|
|
6
6
|
omegaconf >=2.2.3, <2.4.0
|
|
7
7
|
hydra-core >=1.2.0, <1.4.0
|
|
8
|
-
jsonargparse[signatures,jsonnet] >=4.39.0, <4.
|
|
9
|
-
rich >=12.3.0, <14.
|
|
8
|
+
jsonargparse[signatures,jsonnet] >=4.39.0, <4.43.0
|
|
9
|
+
rich >=12.3.0, <14.2.0
|
|
10
10
|
tensorboardX >=2.2, <2.7.0 # min version is set by torch.onnx missing attribute
|
|
11
11
|
bitsandbytes >=0.45.2,<0.47.0; platform_system != "Darwin"
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
coverage ==7.
|
|
2
|
-
coverage ==7.10.7; python_version < "3.10"
|
|
1
|
+
coverage ==7.10.7
|
|
3
2
|
pytest ==8.4.2
|
|
4
|
-
pytest-cov ==
|
|
3
|
+
pytest-cov ==6.3.0
|
|
5
4
|
pytest-timeout ==2.4.0
|
|
6
5
|
pytest-rerunfailures ==16.0.1; python_version < "3.10"
|
|
7
6
|
pytest-rerunfailures ==16.1; python_version >= "3.10"
|
|
@@ -13,8 +12,8 @@ scikit-learn >0.22.1, <1.8.0
|
|
|
13
12
|
numpy >1.20.0, <1.27.0
|
|
14
13
|
onnx >1.12.0, <1.20.0
|
|
15
14
|
onnxruntime >=1.12.0, <1.24.0
|
|
16
|
-
onnxscript >= 0.1.0, < 0.
|
|
17
|
-
psutil <7.2
|
|
15
|
+
onnxscript >= 0.1.0, < 0.5.0
|
|
16
|
+
psutil <7.1.2 # for `DeviceStatsMonitor`
|
|
18
17
|
pandas >2.0, <2.4.0 # needed in benchmarks
|
|
19
18
|
fastapi # for `ServableModuleValidator` # not setting version as re-defined in App
|
|
20
19
|
uvicorn # for `ServableModuleValidator` # not setting version as re-defined in App
|
|
@@ -5,42 +5,29 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
## [
|
|
8
|
+
## [unreleased] - YYYY-MM-DD
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
12
12
|
-
|
|
13
13
|
|
|
14
|
-
### Changed
|
|
15
|
-
|
|
16
|
-
-
|
|
17
14
|
|
|
18
15
|
### Removed
|
|
19
16
|
|
|
20
17
|
-
|
|
21
18
|
|
|
22
19
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Added
|
|
26
|
-
|
|
27
|
-
- Added kwargs-filtering for `Fabric.call` to support different callback method signatures ([#21258](https://github.com/Lightning-AI/pytorch-lightning/pull/21258))
|
|
20
|
+
### Changed
|
|
28
21
|
|
|
22
|
+
-
|
|
29
23
|
|
|
30
|
-
### Changed
|
|
31
24
|
|
|
32
|
-
- Expose `weights_only` argument for `Trainer.{fit,validate,test,predict}` and let `torch` handle default value ([#21072](https://github.com/Lightning-AI/pytorch-lightning/pull/21072))
|
|
33
25
|
- Set `_DeviceDtypeModuleMixin._device` from torch's default device function ([#21164](https://github.com/Lightning-AI/pytorch-lightning/pull/21164))
|
|
34
26
|
|
|
35
27
|
|
|
36
28
|
### Fixed
|
|
37
29
|
|
|
38
|
-
- Fixed
|
|
39
|
-
|
|
40
|
-
- Learning rate scheduler is stepped at the end of epoch when `on_train_batch_start` returns -1 ([#21296](https://github.com/Lightning-AI/pytorch-lightning/issues/21296)).
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- Fixed FSDP mixed precision semantics and added user warning ([#21361](https://github.com/Lightning-AI/pytorch-lightning/pull/21361))
|
|
30
|
+
- Fixed `EADDRINUSE` errors in distributed tests with port manager and retry logic ([#21309](https://github.com/Lightning-AI/pytorch-lightning/pull/21309))
|
|
44
31
|
|
|
45
32
|
|
|
46
33
|
---
|
|
@@ -985,34 +985,6 @@ class Fabric:
|
|
|
985
985
|
)
|
|
986
986
|
return self._wrap_and_launch(function, self, *args, **kwargs)
|
|
987
987
|
|
|
988
|
-
def _filter_kwargs_for_callback(self, method: Callable, kwargs: dict[str, Any]) -> dict[str, Any]:
|
|
989
|
-
"""Filter keyword arguments to only include those that match the callback method's signature.
|
|
990
|
-
|
|
991
|
-
Args:
|
|
992
|
-
method: The callback method to inspect
|
|
993
|
-
kwargs: The keyword arguments to filter
|
|
994
|
-
|
|
995
|
-
Returns:
|
|
996
|
-
A filtered dictionary of keyword arguments that match the method's signature
|
|
997
|
-
|
|
998
|
-
"""
|
|
999
|
-
try:
|
|
1000
|
-
sig = inspect.signature(method)
|
|
1001
|
-
except (ValueError, TypeError):
|
|
1002
|
-
# If we can't inspect the signature, pass all kwargs to maintain backward compatibility
|
|
1003
|
-
return kwargs
|
|
1004
|
-
|
|
1005
|
-
filtered_kwargs = {}
|
|
1006
|
-
for name, param in sig.parameters.items():
|
|
1007
|
-
# If the method accepts **kwargs, pass all original kwargs directly
|
|
1008
|
-
if param.kind == inspect.Parameter.VAR_KEYWORD:
|
|
1009
|
-
return kwargs
|
|
1010
|
-
# If the parameter exists in the incoming kwargs, add it to filtered_kwargs
|
|
1011
|
-
if name in kwargs:
|
|
1012
|
-
filtered_kwargs[name] = kwargs[name]
|
|
1013
|
-
|
|
1014
|
-
return filtered_kwargs
|
|
1015
|
-
|
|
1016
988
|
def call(self, hook_name: str, *args: Any, **kwargs: Any) -> None:
|
|
1017
989
|
r"""Trigger the callback methods with the given name and arguments.
|
|
1018
990
|
|
|
@@ -1022,9 +994,7 @@ class Fabric:
|
|
|
1022
994
|
Args:
|
|
1023
995
|
hook_name: The name of the callback method.
|
|
1024
996
|
*args: Optional positional arguments that get passed down to the callback method.
|
|
1025
|
-
**kwargs: Optional keyword arguments that get passed down to the callback method.
|
|
1026
|
-
that are not present in the callback's signature will be filtered out automatically, allowing
|
|
1027
|
-
callbacks to have different signatures for the same hook.
|
|
997
|
+
**kwargs: Optional keyword arguments that get passed down to the callback method.
|
|
1028
998
|
|
|
1029
999
|
Example::
|
|
1030
1000
|
|
|
@@ -1046,8 +1016,13 @@ class Fabric:
|
|
|
1046
1016
|
)
|
|
1047
1017
|
continue
|
|
1048
1018
|
|
|
1049
|
-
|
|
1050
|
-
|
|
1019
|
+
method(*args, **kwargs)
|
|
1020
|
+
|
|
1021
|
+
# TODO(fabric): handle the following signatures
|
|
1022
|
+
# method(self, fabric|trainer, x, y=1)
|
|
1023
|
+
# method(self, fabric|trainer, *args, x, y=1)
|
|
1024
|
+
# method(self, *args, y=1)
|
|
1025
|
+
# method(self, *args, **kwargs)
|
|
1051
1026
|
|
|
1052
1027
|
def log(self, name: str, value: Any, step: Optional[int] = None) -> None:
|
|
1053
1028
|
"""Log a scalar to all loggers that were added to Fabric.
|
{lightning-2.6.0 → lightning-2.6.0.dev0}/src/lightning/fabric/plugins/environments/lightning.py
RENAMED
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
import os
|
|
16
|
-
import socket
|
|
17
16
|
|
|
18
17
|
from typing_extensions import override
|
|
19
18
|
|
|
20
19
|
from lightning.fabric.plugins.environments.cluster_environment import ClusterEnvironment
|
|
20
|
+
from lightning.fabric.utilities.port_manager import get_port_manager
|
|
21
21
|
from lightning.fabric.utilities.rank_zero import rank_zero_only
|
|
22
22
|
|
|
23
23
|
|
|
@@ -104,21 +104,38 @@ class LightningEnvironment(ClusterEnvironment):
|
|
|
104
104
|
if "WORLD_SIZE" in os.environ:
|
|
105
105
|
del os.environ["WORLD_SIZE"]
|
|
106
106
|
|
|
107
|
+
if self._main_port != -1:
|
|
108
|
+
get_port_manager().release_port(self._main_port)
|
|
109
|
+
self._main_port = -1
|
|
110
|
+
|
|
111
|
+
os.environ.pop("MASTER_PORT", None)
|
|
112
|
+
os.environ.pop("MASTER_ADDR", None)
|
|
113
|
+
|
|
107
114
|
|
|
108
115
|
def find_free_network_port() -> int:
|
|
109
116
|
"""Finds a free port on localhost.
|
|
110
117
|
|
|
111
|
-
If the environment variable `STANDALONE_PORT` is set, its value is used as the port number.
|
|
112
|
-
|
|
113
118
|
It is useful in single-node training when we don't want to connect to a real main node but have to set the
|
|
114
119
|
`MASTER_PORT` environment variable.
|
|
115
120
|
|
|
121
|
+
The allocated port is reserved and won't be returned by subsequent calls until it's explicitly released.
|
|
122
|
+
|
|
123
|
+
Returns:
|
|
124
|
+
A port number that is reserved and free at the time of allocation
|
|
125
|
+
|
|
116
126
|
"""
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
127
|
+
# If an external launcher already specified a MASTER_PORT (for example, torch.distributed.spawn or
|
|
128
|
+
# multiprocessing helpers), reserve it through the port manager so no other test reuses the same number.
|
|
129
|
+
if "MASTER_PORT" in os.environ:
|
|
130
|
+
master_port_str = os.environ["MASTER_PORT"]
|
|
131
|
+
try:
|
|
132
|
+
existing_port = int(master_port_str)
|
|
133
|
+
except ValueError:
|
|
134
|
+
pass
|
|
135
|
+
else:
|
|
136
|
+
port_manager = get_port_manager()
|
|
137
|
+
if port_manager.reserve_existing_port(existing_port):
|
|
138
|
+
return existing_port
|
|
139
|
+
|
|
140
|
+
port_manager = get_port_manager()
|
|
141
|
+
return port_manager.allocate_port()
|
|
@@ -73,11 +73,7 @@ class MPIEnvironment(ClusterEnvironment):
|
|
|
73
73
|
if not _MPI4PY_AVAILABLE:
|
|
74
74
|
return False
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
# mpi4py may be installed without MPI being present
|
|
78
|
-
from mpi4py import MPI
|
|
79
|
-
except ImportError:
|
|
80
|
-
return False
|
|
76
|
+
from mpi4py import MPI
|
|
81
77
|
|
|
82
78
|
return MPI.COMM_WORLD.Get_size() > 1
|
|
83
79
|
|
|
@@ -47,20 +47,13 @@ class CheckpointIO(ABC):
|
|
|
47
47
|
"""
|
|
48
48
|
|
|
49
49
|
@abstractmethod
|
|
50
|
-
def load_checkpoint(
|
|
51
|
-
self, path: _PATH, map_location: Optional[Any] = None, weights_only: Optional[bool] = None
|
|
52
|
-
) -> dict[str, Any]:
|
|
50
|
+
def load_checkpoint(self, path: _PATH, map_location: Optional[Any] = None) -> dict[str, Any]:
|
|
53
51
|
"""Load checkpoint from a path when resuming or loading ckpt for test/validate/predict stages.
|
|
54
52
|
|
|
55
53
|
Args:
|
|
56
54
|
path: Path to checkpoint
|
|
57
55
|
map_location: a function, :class:`torch.device`, string or a dict specifying how to remap storage
|
|
58
56
|
locations.
|
|
59
|
-
weights_only: Defaults to ``None``. If ``True``, restricts loading to ``state_dicts`` of plain
|
|
60
|
-
``torch.Tensor`` and other primitive types. If loading a checkpoint from a trusted source that contains
|
|
61
|
-
an ``nn.Module``, use ``weights_only=False``. If loading checkpoint from an untrusted source, we
|
|
62
|
-
recommend using ``weights_only=True``. For more information, please refer to the
|
|
63
|
-
`PyTorch Developer Notes on Serialization Semantics <https://docs.pytorch.org/docs/main/notes/serialization.html#id3>`_.
|
|
64
57
|
|
|
65
58
|
Returns: The loaded checkpoint.
|
|
66
59
|
|
|
@@ -59,10 +59,7 @@ class TorchCheckpointIO(CheckpointIO):
|
|
|
59
59
|
|
|
60
60
|
@override
|
|
61
61
|
def load_checkpoint(
|
|
62
|
-
self,
|
|
63
|
-
path: _PATH,
|
|
64
|
-
map_location: Optional[Callable] = lambda storage, loc: storage,
|
|
65
|
-
weights_only: Optional[bool] = None,
|
|
62
|
+
self, path: _PATH, map_location: Optional[Callable] = lambda storage, loc: storage
|
|
66
63
|
) -> dict[str, Any]:
|
|
67
64
|
"""Loads checkpoint using :func:`torch.load`, with additional handling for ``fsspec`` remote loading of files.
|
|
68
65
|
|
|
@@ -70,11 +67,6 @@ class TorchCheckpointIO(CheckpointIO):
|
|
|
70
67
|
path: Path to checkpoint
|
|
71
68
|
map_location: a function, :class:`torch.device`, string or a dict specifying how to remap storage
|
|
72
69
|
locations.
|
|
73
|
-
weights_only: Defaults to ``None``. If ``True``, restricts loading to ``state_dicts`` of plain
|
|
74
|
-
``torch.Tensor`` and other primitive types. If loading a checkpoint from a trusted source that contains
|
|
75
|
-
an ``nn.Module``, use ``weights_only=False``. If loading checkpoint from an untrusted source, we
|
|
76
|
-
recommend using ``weights_only=True``. For more information, please refer to the
|
|
77
|
-
`PyTorch Developer Notes on Serialization Semantics <https://docs.pytorch.org/docs/main/notes/serialization.html#id3>`_.
|
|
78
70
|
|
|
79
71
|
Returns: The loaded checkpoint.
|
|
80
72
|
|
|
@@ -88,7 +80,7 @@ class TorchCheckpointIO(CheckpointIO):
|
|
|
88
80
|
if not fs.exists(path):
|
|
89
81
|
raise FileNotFoundError(f"Checkpoint file not found: {path}")
|
|
90
82
|
|
|
91
|
-
return pl_load(path, map_location=map_location
|
|
83
|
+
return pl_load(path, map_location=map_location)
|
|
92
84
|
|
|
93
85
|
@override
|
|
94
86
|
def remove_checkpoint(self, path: _PATH) -> None:
|