pytorch-lightning 2.6.0.dev0__tar.gz → 2.6.1__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.
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/.actions/assistant.py +10 -9
- {pytorch_lightning-2.6.0.dev0/src/pytorch_lightning.egg-info → pytorch_lightning-2.6.1}/PKG-INFO +26 -22
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/README.md +10 -12
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/pyproject.toml +4 -7
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/requirements/fabric/base.txt +3 -3
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/requirements/fabric/examples.txt +1 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/requirements/fabric/test.txt +7 -5
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/requirements/pytorch/base.txt +3 -3
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/requirements/pytorch/docs.txt +2 -2
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/requirements/pytorch/examples.txt +1 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/requirements/pytorch/extra.txt +2 -2
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/requirements/pytorch/test.txt +11 -9
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/CHANGELOG.md +45 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/__setup__.py +2 -2
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/fabric.py +62 -13
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/environments/lightning.py +11 -28
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/environments/mpi.py +5 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/io/checkpoint_io.py +8 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/io/torch_io.py +10 -2
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/precision/fsdp.py +10 -10
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/deepspeed.py +2 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/fsdp.py +2 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/launchers/multiprocessing.py +23 -11
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/model_parallel.py +5 -3
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/strategy.py +7 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/xla_fsdp.py +2 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/cloud_io.py +15 -3
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/distributed.py +8 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/imports.py +1 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/seed.py +11 -2
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/spike.py +2 -2
- pytorch_lightning-2.6.1/src/lightning_fabric/version.info +1 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/CHANGELOG.md +99 -4
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/__setup__.py +2 -2
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/__init__.py +2 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/batch_size_finder.py +14 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/finetuning.py +51 -8
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/model_checkpoint.py +152 -26
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/progress/rich_progress.py +64 -26
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/stochastic_weight_avg.py +14 -7
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/throughput_monitor.py +10 -8
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/weight_averaging.py +53 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/core/datamodule.py +8 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/core/hooks.py +1 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/core/mixins/hparams_mixin.py +13 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/core/module.py +29 -6
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/core/saving.py +3 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loggers/__init__.py +11 -1
- pytorch_lightning-2.6.1/src/pytorch_lightning/loggers/litlogger.py +422 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loops/training_epoch_loop.py +24 -17
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/precision/fsdp.py +10 -10
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/profilers/profiler.py +9 -2
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/profilers/pytorch.py +2 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/profilers/simple.py +4 -4
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/deepspeed.py +2 -2
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/fsdp.py +2 -2
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/model_parallel.py +55 -2
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/strategy.py +2 -2
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/connectors/callback_connector.py +31 -5
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/connectors/checkpoint_connector.py +16 -8
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py +9 -2
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/trainer.py +64 -13
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/tuner/batch_size_scaling.py +57 -6
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/tuner/tuning.py +11 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/imports.py +2 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/parsing.py +4 -1
- pytorch_lightning-2.6.1/src/pytorch_lightning/version.info +1 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1/src/pytorch_lightning.egg-info}/PKG-INFO +26 -22
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning.egg-info/SOURCES.txt +1 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning.egg-info/requires.txt +27 -15
- pytorch_lightning-2.6.1/src/version.info +1 -0
- pytorch_lightning-2.6.0.dev0/src/lightning_fabric/utilities/port_manager.py +0 -233
- pytorch_lightning-2.6.0.dev0/src/lightning_fabric/version.info +0 -1
- pytorch_lightning-2.6.0.dev0/src/pytorch_lightning/version.info +0 -1
- pytorch_lightning-2.6.0.dev0/src/version.info +0 -1
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/CITATION.cff +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/LICENSE +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/requirements/fabric/docs.txt +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/requirements/fabric/extra.txt +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/requirements/fabric/strategies.txt +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/requirements/pytorch/strategies.txt +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/setup.cfg +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/setup.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/__about__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/__version__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/_graveyard/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/_graveyard/tpu.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/accelerators/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/accelerators/accelerator.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/accelerators/cpu.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/accelerators/cuda.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/accelerators/mps.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/accelerators/registry.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/accelerators/xla.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/cli.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/connector.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/loggers/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/loggers/csv_logs.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/loggers/logger.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/loggers/tensorboard.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/collectives/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/collectives/collective.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/collectives/single_device.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/collectives/torch_collective.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/environments/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/environments/cluster_environment.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/environments/kubeflow.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/environments/lsf.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/environments/slurm.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/environments/torchelastic.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/environments/xla.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/io/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/io/xla.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/precision/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/precision/amp.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/precision/bitsandbytes.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/precision/deepspeed.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/precision/double.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/precision/half.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/precision/precision.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/precision/transformer_engine.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/precision/utils.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/plugins/precision/xla.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/py.typed +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/ddp.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/dp.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/launchers/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/launchers/launcher.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/launchers/subprocess_script.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/launchers/xla.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/parallel.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/registry.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/single_device.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/single_xla.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/strategies/xla.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/apply_func.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/consolidate_checkpoint.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/data.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/device_dtype_mixin.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/device_parser.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/enums.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/exceptions.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/init.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/load.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/logger.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/optimizer.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/rank_zero.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/registry.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/testing/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/testing/_runif.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/throughput.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/types.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/utilities/warnings.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/lightning_fabric/wrappers.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/MANIFEST.in +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/README.md +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/__about__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/__version__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/_graveyard/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/_graveyard/_torchmetrics.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/_graveyard/hpu.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/_graveyard/precision.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/_graveyard/tpu.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/accelerators/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/accelerators/accelerator.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/accelerators/cpu.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/accelerators/cuda.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/accelerators/mps.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/accelerators/xla.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/callback.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/checkpoint.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/device_stats_monitor.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/early_stopping.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/gradient_accumulation_scheduler.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/lambda_function.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/lr_finder.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/lr_monitor.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/model_summary.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/on_exception_checkpoint.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/prediction_writer.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/progress/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/progress/progress_bar.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/progress/tqdm_progress.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/pruning.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/rich_model_summary.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/spike.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/callbacks/timer.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/cli.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/core/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/core/mixins/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/core/optimizer.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/demos/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/demos/boring_classes.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/demos/lstm.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/demos/mnist_datamodule.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/demos/transformer.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loggers/comet.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loggers/csv_logs.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loggers/logger.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loggers/mlflow.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loggers/neptune.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loggers/tensorboard.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loggers/utilities.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loggers/wandb.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loops/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loops/evaluation_loop.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loops/fetchers.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loops/fit_loop.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loops/loop.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loops/optimization/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loops/optimization/automatic.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loops/optimization/closure.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loops/optimization/manual.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loops/prediction_loop.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loops/progress.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/loops/utilities.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/overrides/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/overrides/distributed.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/environments/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/io/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/io/async_plugin.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/io/checkpoint_plugin.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/io/torch_plugin.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/io/wrapper.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/io/xla_plugin.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/layer_sync.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/precision/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/precision/amp.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/precision/bitsandbytes.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/precision/deepspeed.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/precision/double.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/precision/half.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/precision/precision.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/precision/transformer_engine.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/plugins/precision/xla.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/profilers/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/profilers/advanced.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/profilers/base.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/profilers/xla.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/py.typed +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/serve/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/serve/servable_module.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/serve/servable_module_validator.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/ddp.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/launchers/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/launchers/launcher.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/launchers/multiprocessing.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/launchers/subprocess_script.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/launchers/xla.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/parallel.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/single_device.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/single_xla.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/strategies/xla.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/call.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/configuration_validator.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/connectors/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/connectors/accelerator_connector.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/connectors/data_connector.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/connectors/logger_connector/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/connectors/logger_connector/fx_validator.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/connectors/logger_connector/result.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/connectors/signal_connector.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/setup.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/trainer/states.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/tuner/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/tuner/lr_finder.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/_pytree.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/argparse.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/combined_loader.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/compile.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/consolidate_checkpoint.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/data.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/deepspeed.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/enums.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/exceptions.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/grads.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/memory.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/migration/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/migration/migration.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/migration/utils.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/model_helpers.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/model_registry.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/model_summary/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/model_summary/model_summary.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/model_summary/model_summary_deepspeed.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/parameter_tying.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/rank_zero.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/seed.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/signature_utils.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/testing/__init__.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/testing/_runif.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/types.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/upgrade_checkpoint.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning/utilities/warnings.py +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning.egg-info/dependency_links.txt +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_lightning.egg-info/not-zip-safe +0 -0
- {pytorch_lightning-2.6.0.dev0 → pytorch_lightning-2.6.1}/src/pytorch_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_cmd = "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_cmd in comment.lower()
|
|
57
57
|
|
|
58
58
|
def adjust(self, unfreeze: str) -> str:
|
|
59
59
|
"""Remove version restrictions unless they are strict.
|
|
@@ -62,25 +62,26 @@ 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; python_version >= "3.10"', comment="# my name").adjust("all")
|
|
66
|
+
'arrow>=1.2.0; python_version >= "3.10"'
|
|
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; python_version >= "3.10"').adjust("all")
|
|
70
|
+
'arrow; python_version >= "3.10"'
|
|
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; python_version >= "3.10"').adjust("major")
|
|
76
|
+
'arrow>=1.2.0; python_version >= "3.10"'
|
|
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} {self.
|
|
83
|
+
return f"{out} # {self.strict_cmd}"
|
|
84
|
+
|
|
84
85
|
specs = [(spec.operator, spec.version) for spec in self.specifier]
|
|
85
86
|
if unfreeze == "major":
|
|
86
87
|
for operator, version in specs:
|
{pytorch_lightning-2.6.0.dev0/src/pytorch_lightning.egg-info → pytorch_lightning-2.6.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytorch-lightning
|
|
3
|
-
Version: 2.6.
|
|
3
|
+
Version: 2.6.1
|
|
4
4
|
Summary: PyTorch Lightning is the lightweight PyTorch wrapper for ML researchers. Scale your models. Write less boilerplate.
|
|
5
5
|
Home-page: https://github.com/Lightning-AI/lightning
|
|
6
6
|
Download-URL: https://github.com/Lightning-AI/lightning
|
|
@@ -21,11 +21,11 @@ Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
|
21
21
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
22
22
|
Classifier: Operating System :: OS Independent
|
|
23
23
|
Classifier: Programming Language :: Python :: 3
|
|
24
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.10
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.11
|
|
27
26
|
Classifier: Programming Language :: Python :: 3.12
|
|
28
|
-
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
28
|
+
Requires-Python: >=3.10
|
|
29
29
|
Description-Content-Type: text/markdown
|
|
30
30
|
License-File: LICENSE
|
|
31
31
|
Requires-Dist: torch>=2.1.0
|
|
@@ -33,7 +33,7 @@ Requires-Dist: tqdm>=4.57.0
|
|
|
33
33
|
Requires-Dist: PyYAML>5.4
|
|
34
34
|
Requires-Dist: fsspec[http]>=2022.5.0
|
|
35
35
|
Requires-Dist: torchmetrics>0.7.0
|
|
36
|
-
Requires-Dist: packaging>=
|
|
36
|
+
Requires-Dist: packaging>=23.0
|
|
37
37
|
Requires-Dist: typing-extensions>4.5.0
|
|
38
38
|
Requires-Dist: lightning-utilities>=0.10.0
|
|
39
39
|
Provides-Extra: extra
|
|
@@ -46,32 +46,34 @@ Requires-Dist: tensorboardX>=2.2; extra == "extra"
|
|
|
46
46
|
Requires-Dist: bitsandbytes>=0.45.2; platform_system != "Darwin" and extra == "extra"
|
|
47
47
|
Provides-Extra: strategies
|
|
48
48
|
Requires-Dist: deepspeed<0.17.0,>=0.15.0; (platform_system != "Windows" and platform_system != "Darwin") and extra == "strategies"
|
|
49
|
-
Provides-Extra: examples
|
|
50
|
-
Requires-Dist: requests<2.33.0; extra == "examples"
|
|
51
|
-
Requires-Dist: torchvision>=0.16.0; extra == "examples"
|
|
52
|
-
Requires-Dist: ipython[all]>=8.0.0; extra == "examples"
|
|
53
|
-
Requires-Dist: torchmetrics>=0.10.0; extra == "examples"
|
|
54
49
|
Provides-Extra: test
|
|
55
|
-
Requires-Dist: coverage==7.
|
|
56
|
-
Requires-Dist:
|
|
57
|
-
Requires-Dist: pytest
|
|
50
|
+
Requires-Dist: coverage==7.13.1; python_version >= "3.10" and extra == "test"
|
|
51
|
+
Requires-Dist: coverage==7.10.7; python_version < "3.10" and extra == "test"
|
|
52
|
+
Requires-Dist: pytest==9.0.2; extra == "test"
|
|
53
|
+
Requires-Dist: pytest-cov==7.0.0; extra == "test"
|
|
58
54
|
Requires-Dist: pytest-timeout==2.4.0; extra == "test"
|
|
59
55
|
Requires-Dist: pytest-rerunfailures==16.0.1; python_version < "3.10" and extra == "test"
|
|
60
56
|
Requires-Dist: pytest-rerunfailures==16.1; python_version >= "3.10" and extra == "test"
|
|
61
57
|
Requires-Dist: pytest-random-order==1.2.0; extra == "test"
|
|
62
58
|
Requires-Dist: cloudpickle>=1.3; extra == "test"
|
|
63
59
|
Requires-Dist: scikit-learn>0.22.1; extra == "test"
|
|
64
|
-
Requires-Dist: numpy>1.
|
|
60
|
+
Requires-Dist: numpy>1.21.0; python_version < "3.12" and extra == "test"
|
|
61
|
+
Requires-Dist: numpy>2.1.0; python_version >= "3.12" and extra == "test"
|
|
65
62
|
Requires-Dist: onnx>1.12.0; extra == "test"
|
|
66
63
|
Requires-Dist: onnxruntime>=1.12.0; extra == "test"
|
|
67
64
|
Requires-Dist: onnxscript>=0.1.0; extra == "test"
|
|
68
|
-
Requires-Dist: psutil<7.
|
|
65
|
+
Requires-Dist: psutil<7.3.0; extra == "test"
|
|
69
66
|
Requires-Dist: pandas>2.0; extra == "test"
|
|
70
67
|
Requires-Dist: fastapi; extra == "test"
|
|
71
68
|
Requires-Dist: uvicorn; extra == "test"
|
|
72
69
|
Requires-Dist: tensorboard>=2.11; extra == "test"
|
|
73
|
-
Requires-Dist: torch-tensorrt; (platform_system
|
|
70
|
+
Requires-Dist: torch-tensorrt; (platform_system != "Darwin" and python_version >= "3.12") and extra == "test"
|
|
74
71
|
Requires-Dist: huggingface-hub; extra == "test"
|
|
72
|
+
Provides-Extra: examples
|
|
73
|
+
Requires-Dist: requests<2.33.0; extra == "examples"
|
|
74
|
+
Requires-Dist: torchvision>=0.16.0; extra == "examples"
|
|
75
|
+
Requires-Dist: ipython[all]>=8.0.0; extra == "examples"
|
|
76
|
+
Requires-Dist: torchmetrics>=0.10.0; extra == "examples"
|
|
75
77
|
Provides-Extra: deepspeed
|
|
76
78
|
Requires-Dist: deepspeed<0.17.0,>=0.15.0; (platform_system != "Windows" and platform_system != "Darwin") and extra == "deepspeed"
|
|
77
79
|
Provides-Extra: all
|
|
@@ -100,25 +102,27 @@ Requires-Dist: requests<2.33.0; extra == "dev"
|
|
|
100
102
|
Requires-Dist: torchvision>=0.16.0; extra == "dev"
|
|
101
103
|
Requires-Dist: ipython[all]>=8.0.0; extra == "dev"
|
|
102
104
|
Requires-Dist: torchmetrics>=0.10.0; extra == "dev"
|
|
103
|
-
Requires-Dist: coverage==7.
|
|
104
|
-
Requires-Dist:
|
|
105
|
-
Requires-Dist: pytest
|
|
105
|
+
Requires-Dist: coverage==7.13.1; python_version >= "3.10" and extra == "dev"
|
|
106
|
+
Requires-Dist: coverage==7.10.7; python_version < "3.10" and extra == "dev"
|
|
107
|
+
Requires-Dist: pytest==9.0.2; extra == "dev"
|
|
108
|
+
Requires-Dist: pytest-cov==7.0.0; extra == "dev"
|
|
106
109
|
Requires-Dist: pytest-timeout==2.4.0; extra == "dev"
|
|
107
110
|
Requires-Dist: pytest-rerunfailures==16.0.1; python_version < "3.10" and extra == "dev"
|
|
108
111
|
Requires-Dist: pytest-rerunfailures==16.1; python_version >= "3.10" and extra == "dev"
|
|
109
112
|
Requires-Dist: pytest-random-order==1.2.0; extra == "dev"
|
|
110
113
|
Requires-Dist: cloudpickle>=1.3; extra == "dev"
|
|
111
114
|
Requires-Dist: scikit-learn>0.22.1; extra == "dev"
|
|
112
|
-
Requires-Dist: numpy>1.
|
|
115
|
+
Requires-Dist: numpy>1.21.0; python_version < "3.12" and extra == "dev"
|
|
116
|
+
Requires-Dist: numpy>2.1.0; python_version >= "3.12" and extra == "dev"
|
|
113
117
|
Requires-Dist: onnx>1.12.0; extra == "dev"
|
|
114
118
|
Requires-Dist: onnxruntime>=1.12.0; extra == "dev"
|
|
115
119
|
Requires-Dist: onnxscript>=0.1.0; extra == "dev"
|
|
116
|
-
Requires-Dist: psutil<7.
|
|
120
|
+
Requires-Dist: psutil<7.3.0; extra == "dev"
|
|
117
121
|
Requires-Dist: pandas>2.0; extra == "dev"
|
|
118
122
|
Requires-Dist: fastapi; extra == "dev"
|
|
119
123
|
Requires-Dist: uvicorn; extra == "dev"
|
|
120
124
|
Requires-Dist: tensorboard>=2.11; extra == "dev"
|
|
121
|
-
Requires-Dist: torch-tensorrt; (platform_system
|
|
125
|
+
Requires-Dist: torch-tensorrt; (platform_system != "Darwin" and python_version >= "3.12") and extra == "dev"
|
|
122
126
|
Requires-Dist: huggingface-hub; extra == "dev"
|
|
123
127
|
Dynamic: author
|
|
124
128
|
Dynamic: author-email
|
|
@@ -164,7 +168,7 @@ ______________________________________________________________________
|
|
|
164
168
|
[](https://hub.docker.com/r/pytorchlightning/pytorch_lightning)
|
|
165
169
|
[](https://codecov.io/gh/Lightning-AI/pytorch-lightning)
|
|
166
170
|
|
|
167
|
-
[](https://lightning.ai/docs/pytorch/stable/)[](https://discord.gg/VptPCZkGNa)
|
|
168
172
|
[](https://github.com/Lightning-AI/pytorch-lightning/blob/master/LICENSE)
|
|
169
173
|
|
|
170
174
|
<!--
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
**The deep learning framework to pretrain and finetune AI models.**
|
|
9
9
|
|
|
10
|
-
**
|
|
10
|
+
**Serving models?** Use [LitServe](https://github.com/Lightning-AI/litserve?utm_source=ptl_readme&utm_medium=referral&utm_campaign=ptl_readme) to build custom inference servers in pure Python.
|
|
11
11
|
|
|
12
12
|
______________________________________________________________________
|
|
13
13
|
|
|
@@ -55,22 +55,17 @@ ______________________________________________________________________
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
# Looking for GPUs?
|
|
59
|
-
Over 340,000 developers use [Lightning Cloud](https://lightning.ai/?utm_source=ptl_readme&utm_medium=referral&utm_campaign=ptl_readme) - purpose-built for PyTorch and PyTorch Lightning.
|
|
60
|
-
- [GPUs](https://lightning.ai/pricing?utm_source=ptl_readme&utm_medium=referral&utm_campaign=ptl_readme) from $0.19.
|
|
61
|
-
- [Clusters](https://lightning.ai/clusters?utm_source=ptl_readme&utm_medium=referral&utm_campaign=ptl_readme): frontier-grade training/inference clusters.
|
|
62
|
-
- [AI Studio (vibe train)](https://lightning.ai/studios?utm_source=ptl_readme&utm_medium=referral&utm_campaign=ptl_readme): workspaces where AI helps you debug, tune and vibe train.
|
|
63
|
-
- [AI Studio (vibe deploy)](https://lightning.ai/studios?utm_source=ptl_readme&utm_medium=referral&utm_campaign=ptl_readme): workspaces where AI helps you optimize, and deploy models.
|
|
64
|
-
- [Notebooks](https://lightning.ai/notebooks?utm_source=ptl_readme&utm_medium=referral&utm_campaign=ptl_readme): Persistent GPU workspaces where AI helps you code and analyze.
|
|
65
|
-
- [Inference](https://lightning.ai/deploy?utm_source=ptl_readme&utm_medium=referral&utm_campaign=ptl_readme): Deploy models as inference APIs.
|
|
66
|
-
|
|
67
58
|
<a id="why-pytorch-lightning"></a>
|
|
68
59
|
# Why PyTorch Lightning?
|
|
69
|
-
|
|
70
|
-
Training models in plain PyTorch is tedious and error-prone - you have to manually handle things like backprop, mixed precision, multi-GPU, and distributed training, often rewriting code for every new project. PyTorch Lightning organizes PyTorch code to automate those complexities so you can focus on your model and data, while keeping full control and scaling from CPU to multi-node without changing your core code. But if you want control of those things, you can still opt into [expert-level control](#lightning-fabric-expert-control).
|
|
60
|
+
Training models in plain PyTorch requires writing and maintaining a lot of repetitive engineering code. Handling backpropagation, mixed precision, multi-GPU, and distributed training is error-prone and often reimplemented for every project. PyTorch Lightning organizes PyTorch code to automate this infrastructure while keeping full control over your model logic. You write the science. Lightning handles the engineering, and scales from CPU to multi-node GPUs without changing your core code. PyTorch experts can still opt into [expert-level control](#lightning-fabric-expert-control).
|
|
71
61
|
|
|
72
62
|
Fun analogy: If PyTorch is Javascript, PyTorch Lightning is ReactJS or NextJS.
|
|
73
63
|
|
|
64
|
+
# Looking for GPUs?
|
|
65
|
+
[Lightning Cloud](https://lightning.ai/?utm_source=ptl_readme&utm_medium=referral&utm_campaign=ptl_readme) is the easiest way to run PyTorch Lightning without managing infrastructure. Start training with one command and get GPUs, autoscaling, monitoring, and a free tier. No cloud setup required.
|
|
66
|
+
|
|
67
|
+
You can also run PyTorch Lightning on your own hardware or cloud.
|
|
68
|
+
|
|
74
69
|
# Lightning has 2 core packages
|
|
75
70
|
|
|
76
71
|
[PyTorch Lightning: Train and deploy PyTorch at scale](#why-pytorch-lightning).
|
|
@@ -282,6 +277,9 @@ trainer = Trainer(precision=16)
|
|
|
282
277
|
```python
|
|
283
278
|
from lightning import loggers
|
|
284
279
|
|
|
280
|
+
# litlogger
|
|
281
|
+
trainer = Trainer(logger=LitLogger())
|
|
282
|
+
|
|
285
283
|
# tensorboard
|
|
286
284
|
trainer = Trainer(logger=TensorBoardLogger("logs/"))
|
|
287
285
|
|
|
@@ -92,9 +92,6 @@ 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
|
|
98
95
|
"S404", # todo: `subprocess` module is possibly insecure
|
|
99
96
|
"S602", # todo: `subprocess` call with `shell=True` identified, security issue
|
|
100
97
|
"S603", # todo: `subprocess` call: check for execution of untrusted input
|
|
@@ -106,18 +103,14 @@ ignore = [
|
|
|
106
103
|
"tests/**" = [
|
|
107
104
|
"S101", # Use of `assert` detected
|
|
108
105
|
"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
|
|
110
106
|
"S311", # todo: Standard pseudo-random generators are not suitable for cryptographic purposes
|
|
111
107
|
"S108", # todo: Probable insecure usage of temporary file or directory: "/tmp/sys-customizations-sync"
|
|
112
|
-
"S202", # Uses of `tarfile.extractall()`
|
|
113
108
|
"S403", # `pickle`, `cPickle`, `dill`, and `shelve` modules are possibly insecure
|
|
114
109
|
"S404", # `subprocess` module is possibly insecure
|
|
115
110
|
"S602", # todo: `subprocess` call with `shell=True` identified, security issue
|
|
116
111
|
"S603", # todo: `subprocess` call: check for execution of untrusted input
|
|
117
112
|
"S605", # todo: Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
|
|
118
113
|
"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
|
|
121
114
|
"PT012", # todo: `pytest.raises()` block should contain a single simple statement
|
|
122
115
|
"PT019", # todo: Fixture `_` without value is injected as parameter, use `@pytest.mark.usefixtures` instead
|
|
123
116
|
]
|
|
@@ -179,6 +172,10 @@ filterwarnings = [
|
|
|
179
172
|
# "error::DeprecationWarning",
|
|
180
173
|
"error::FutureWarning",
|
|
181
174
|
"ignore::FutureWarning:onnxscript", # Temporary ignore until onnxscript is updated
|
|
175
|
+
"ignore:You are using `torch.load` with `weights_only=False`.*:FutureWarning",
|
|
176
|
+
"ignore::FutureWarning:torch.distributed.algorithms.ddp_comm_hooks",
|
|
177
|
+
# PyTorch pytree LeafSpec deprecation triggered during doctest
|
|
178
|
+
"ignore:`isinstance\\(treespec, LeafSpec\\)` is deprecated.*:FutureWarning",
|
|
182
179
|
]
|
|
183
180
|
xfail_strict = true
|
|
184
181
|
junit_duration_report = "call"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
|
|
2
2
|
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
|
|
3
3
|
|
|
4
|
-
torch >=2.1.0, <2.
|
|
5
|
-
fsspec[http] >=2022.5.0, <
|
|
6
|
-
packaging >=
|
|
4
|
+
torch >=2.1.0, <2.10.0
|
|
5
|
+
fsspec[http] >=2022.5.0, <2026.2.0
|
|
6
|
+
packaging >=23.0, <=25.0
|
|
7
7
|
typing-extensions >4.5.0, <4.16.0
|
|
8
8
|
lightning-utilities >=0.10.0, <0.16.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
|
|
2
2
|
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
|
|
3
3
|
|
|
4
|
-
torchvision >=0.16.0, <0.
|
|
4
|
+
torchvision >=0.16.0, <0.26.0
|
|
5
5
|
torchmetrics >=0.10.0, <1.9.0
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
coverage ==7.10
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
coverage ==7.13.1; python_version >= "3.10"
|
|
2
|
+
coverage ==7.10.7; python_version < "3.10"
|
|
3
|
+
numpy >1.21.0, <1.27.0; python_version < "3.12"
|
|
4
|
+
numpy >2.1.0, <2.4.2; python_version >= "3.12"
|
|
5
|
+
pytest ==9.0.2
|
|
6
|
+
pytest-cov ==7.0.0
|
|
5
7
|
pytest-timeout ==2.4.0
|
|
6
8
|
pytest-rerunfailures ==16.0.1; python_version < "3.10"
|
|
7
9
|
pytest-rerunfailures ==16.1; python_version >= "3.10"
|
|
8
10
|
pytest-random-order ==1.2.0
|
|
9
11
|
click ==8.1.8; python_version < "3.11"
|
|
10
|
-
click ==8.3.
|
|
12
|
+
click ==8.3.1; python_version > "3.10"
|
|
11
13
|
tensorboardX >=2.6, <2.7.0 # todo: relax it back to `>=2.2` after fixing tests
|
|
12
14
|
huggingface-hub
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
|
|
2
2
|
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
|
|
3
3
|
|
|
4
|
-
torch >=2.1.0, <2.
|
|
4
|
+
torch >=2.1.0, <2.10.0
|
|
5
5
|
tqdm >=4.57.0, <4.68.0
|
|
6
6
|
PyYAML >5.4, <6.1.0
|
|
7
|
-
fsspec[http] >=2022.5.0, <
|
|
7
|
+
fsspec[http] >=2022.5.0, <2026.2.0
|
|
8
8
|
torchmetrics >0.7.0, <1.9.0
|
|
9
|
-
packaging >=
|
|
9
|
+
packaging >=23.0, <=25.0
|
|
10
10
|
typing-extensions >4.5.0, <4.16.0
|
|
11
11
|
lightning-utilities >=0.10.0, <0.16.0
|
|
@@ -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.10.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.6.0
|
|
8
8
|
|
|
9
9
|
#-r ../../_notebooks/.actions/requires.txt
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
|
|
3
3
|
|
|
4
4
|
requests <2.33.0
|
|
5
|
-
torchvision >=0.16.0, <0.
|
|
5
|
+
torchvision >=0.16.0, <0.26.0
|
|
6
6
|
ipython[all] >=8.0.0, <10.0.0
|
|
7
7
|
torchmetrics >=0.10.0, <1.9.0
|
|
@@ -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.46.0
|
|
9
|
+
rich >=12.3.0, <14.3.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,6 +1,7 @@
|
|
|
1
|
-
coverage ==7.10
|
|
2
|
-
|
|
3
|
-
pytest
|
|
1
|
+
coverage ==7.13.1; python_version >= "3.10"
|
|
2
|
+
coverage ==7.10.7; python_version < "3.10"
|
|
3
|
+
pytest ==9.0.2
|
|
4
|
+
pytest-cov ==7.0.0
|
|
4
5
|
pytest-timeout ==2.4.0
|
|
5
6
|
pytest-rerunfailures ==16.0.1; python_version < "3.10"
|
|
6
7
|
pytest-rerunfailures ==16.1; python_version >= "3.10"
|
|
@@ -8,17 +9,18 @@ pytest-random-order ==1.2.0
|
|
|
8
9
|
|
|
9
10
|
# needed in tests
|
|
10
11
|
cloudpickle >=1.3, <3.2.0
|
|
11
|
-
scikit-learn >0.22.1, <1.
|
|
12
|
-
numpy >1.
|
|
13
|
-
|
|
12
|
+
scikit-learn >0.22.1, <1.9.0
|
|
13
|
+
numpy >1.21.0, <1.27.0; python_version < "3.12"
|
|
14
|
+
numpy >2.1.0, <2.4.2; python_version >= "3.12"
|
|
15
|
+
onnx >1.12.0, <1.21.0
|
|
14
16
|
onnxruntime >=1.12.0, <1.24.0
|
|
15
|
-
onnxscript >= 0.1.0, < 0.
|
|
16
|
-
psutil <7.
|
|
17
|
+
onnxscript >= 0.1.0, < 0.6.0
|
|
18
|
+
psutil <7.3.0 # for `DeviceStatsMonitor`
|
|
17
19
|
pandas >2.0, <2.4.0 # needed in benchmarks
|
|
18
20
|
fastapi # for `ServableModuleValidator` # not setting version as re-defined in App
|
|
19
21
|
uvicorn # for `ServableModuleValidator` # not setting version as re-defined in App
|
|
20
22
|
|
|
21
23
|
tensorboard >=2.11, <2.21.0 # for `TensorBoardLogger`
|
|
22
24
|
|
|
23
|
-
torch-tensorrt; platform_system
|
|
25
|
+
torch-tensorrt; platform_system != "Darwin" and python_version >= "3.12"
|
|
24
26
|
huggingface-hub
|
|
@@ -22,12 +22,56 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
|
|
|
22
22
|
-
|
|
23
23
|
|
|
24
24
|
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
-
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## [2.6.1] - 2026-01-30
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- Exposed `weights_only` argument for loading checkpoints in `Fabric.load()` and `Fabric.load_raw()` ([#21470](https://github.com/Lightning-AI/pytorch-lightning/pull/21470))
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
-
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- Fixed `DistributedSamplerWrapper` not forwarding `set_epoch` to the underlying sampler ([#21454](https://github.com/Lightning-AI/pytorch-lightning/pull/21454))
|
|
44
|
+
|
|
45
|
+
- Fixed DDP notebook CUDA fork check to allow passive initialization when CUDA is not actively used ([#21402](https://github.com/Lightning-AI/pytorch-lightning/pull/21402))
|
|
46
|
+
|
|
47
|
+
### Removed
|
|
48
|
+
|
|
49
|
+
-
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [2.6.0] - 2025-11-28
|
|
55
|
+
|
|
56
|
+
### Added
|
|
57
|
+
|
|
58
|
+
- Added kwargs-filtering for `Fabric.call` to support different callback method signatures ([#21258](https://github.com/Lightning-AI/pytorch-lightning/pull/21258))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
|
|
63
|
+
- 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))
|
|
25
64
|
- Set `_DeviceDtypeModuleMixin._device` from torch's default device function ([#21164](https://github.com/Lightning-AI/pytorch-lightning/pull/21164))
|
|
26
65
|
|
|
27
66
|
|
|
28
67
|
### Fixed
|
|
29
68
|
|
|
30
|
-
- Fixed
|
|
69
|
+
- Fixed issue in detecting MPIEnvironment with partial mpi4py installation ([#21353](https://github.com/Lightning-AI/pytorch-lightning/pull/21353))
|
|
70
|
+
|
|
71
|
+
- 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)).
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
- Fixed FSDP mixed precision semantics and added user warning ([#21361](https://github.com/Lightning-AI/pytorch-lightning/pull/21361))
|
|
31
75
|
|
|
32
76
|
|
|
33
77
|
---
|
|
@@ -73,7 +73,7 @@ def _setup_args() -> dict[str, Any]:
|
|
|
73
73
|
"include_package_data": True,
|
|
74
74
|
"zip_safe": False,
|
|
75
75
|
"keywords": ["deep learning", "pytorch", "AI"],
|
|
76
|
-
"python_requires": ">=3.
|
|
76
|
+
"python_requires": ">=3.10",
|
|
77
77
|
"setup_requires": ["wheel"],
|
|
78
78
|
"install_requires": assistant.load_requirements(
|
|
79
79
|
_PATH_REQUIREMENTS, unfreeze="none" if _FREEZE_REQUIREMENTS else "all"
|
|
@@ -105,9 +105,9 @@ def _setup_args() -> dict[str, Any]:
|
|
|
105
105
|
# Specify the Python versions you support here. In particular, ensure
|
|
106
106
|
# that you indicate whether you support Python 2, Python 3 or both.
|
|
107
107
|
"Programming Language :: Python :: 3",
|
|
108
|
-
"Programming Language :: Python :: 3.9",
|
|
109
108
|
"Programming Language :: Python :: 3.10",
|
|
110
109
|
"Programming Language :: Python :: 3.11",
|
|
111
110
|
"Programming Language :: Python :: 3.12",
|
|
111
|
+
"Programming Language :: Python :: 3.13",
|
|
112
112
|
],
|
|
113
113
|
}
|
|
@@ -871,8 +871,10 @@ class Fabric:
|
|
|
871
871
|
path: Union[str, Path],
|
|
872
872
|
state: Optional[dict[str, Union[nn.Module, Optimizer, Any]]] = None,
|
|
873
873
|
strict: bool = True,
|
|
874
|
+
*,
|
|
875
|
+
weights_only: Optional[bool] = None,
|
|
874
876
|
) -> dict[str, Any]:
|
|
875
|
-
"""Load a checkpoint from a file and restore the state of objects (modules, optimizers, etc.)
|
|
877
|
+
"""Load a checkpoint from a file and restore the state of objects (modules, optimizers, etc.).
|
|
876
878
|
|
|
877
879
|
How and which processes load gets determined by the `strategy`.
|
|
878
880
|
This method must be called on all processes!
|
|
@@ -881,7 +883,12 @@ class Fabric:
|
|
|
881
883
|
path: A path to where the file is located.
|
|
882
884
|
state: A dictionary of objects whose state will be restored in-place from the checkpoint path.
|
|
883
885
|
If no state is given, then the checkpoint will be returned in full.
|
|
884
|
-
strict: Whether to enforce that the keys in
|
|
886
|
+
strict: Whether to enforce that the keys in ``state`` match the keys in the checkpoint.
|
|
887
|
+
weights_only: Defaults to ``None``. If ``True``, restricts loading to ``state_dicts`` of plain
|
|
888
|
+
``torch.Tensor`` and other primitive types. If loading a checkpoint from a trusted source that contains
|
|
889
|
+
an ``nn.Module``, use ``weights_only=False``. If loading checkpoint from an untrusted source, we
|
|
890
|
+
recommend using ``weights_only=True``. For more information, please refer to the
|
|
891
|
+
`PyTorch Developer Notes on Serialization Semantics <https://docs.pytorch.org/docs/main/notes/serialization.html#id3>`_.
|
|
885
892
|
|
|
886
893
|
Returns:
|
|
887
894
|
The remaining items that were not restored into the given state dictionary. If no state dictionary is
|
|
@@ -899,7 +906,12 @@ class Fabric:
|
|
|
899
906
|
|
|
900
907
|
"""
|
|
901
908
|
unwrapped_state = _unwrap_objects(state)
|
|
902
|
-
remainder = self._strategy.load_checkpoint(
|
|
909
|
+
remainder = self._strategy.load_checkpoint(
|
|
910
|
+
path=path,
|
|
911
|
+
state=unwrapped_state,
|
|
912
|
+
strict=strict,
|
|
913
|
+
weights_only=weights_only,
|
|
914
|
+
)
|
|
903
915
|
self.barrier()
|
|
904
916
|
if state is not None:
|
|
905
917
|
# We need to unwrap objects (see above) but this creates a new dictionary. In-place updates
|
|
@@ -911,7 +923,14 @@ class Fabric:
|
|
|
911
923
|
state[k] = unwrapped_state[k]
|
|
912
924
|
return remainder
|
|
913
925
|
|
|
914
|
-
def load_raw(
|
|
926
|
+
def load_raw(
|
|
927
|
+
self,
|
|
928
|
+
path: Union[str, Path],
|
|
929
|
+
obj: Union[nn.Module, Optimizer],
|
|
930
|
+
strict: bool = True,
|
|
931
|
+
*,
|
|
932
|
+
weights_only: Optional[bool] = None,
|
|
933
|
+
) -> None:
|
|
915
934
|
"""Load the state of a module or optimizer from a single state-dict file.
|
|
916
935
|
|
|
917
936
|
Use this for loading a raw PyTorch model checkpoint created without Fabric.
|
|
@@ -923,10 +942,15 @@ class Fabric:
|
|
|
923
942
|
obj: A :class:`~torch.nn.Module` or :class:`~torch.optim.Optimizer` instance.
|
|
924
943
|
strict: Whether to enforce that the keys in the module's state-dict match the keys in the checkpoint.
|
|
925
944
|
Does not apply to optimizers.
|
|
945
|
+
weights_only: Defaults to ``None``. If ``True``, restricts loading to ``state_dicts`` of plain
|
|
946
|
+
``torch.Tensor`` and other primitive types. If loading a checkpoint from a trusted source that contains
|
|
947
|
+
an ``nn.Module``, use ``weights_only=False``. If loading checkpoint from an untrusted source, we
|
|
948
|
+
recommend using ``weights_only=True``. For more information, please refer to the
|
|
949
|
+
`PyTorch Developer Notes on Serialization Semantics <https://docs.pytorch.org/docs/main/notes/serialization.html#id3>`_.
|
|
926
950
|
|
|
927
951
|
"""
|
|
928
952
|
obj = _unwrap_objects(obj)
|
|
929
|
-
self._strategy.load_checkpoint(path=path, state=obj, strict=strict)
|
|
953
|
+
self._strategy.load_checkpoint(path=path, state=obj, strict=strict, weights_only=weights_only)
|
|
930
954
|
|
|
931
955
|
def launch(self, function: Callable[["Fabric"], Any] = _do_nothing, *args: Any, **kwargs: Any) -> Any:
|
|
932
956
|
"""Launch and initialize all the processes needed for distributed execution.
|
|
@@ -985,6 +1009,34 @@ class Fabric:
|
|
|
985
1009
|
)
|
|
986
1010
|
return self._wrap_and_launch(function, self, *args, **kwargs)
|
|
987
1011
|
|
|
1012
|
+
def _filter_kwargs_for_callback(self, method: Callable, kwargs: dict[str, Any]) -> dict[str, Any]:
|
|
1013
|
+
"""Filter keyword arguments to only include those that match the callback method's signature.
|
|
1014
|
+
|
|
1015
|
+
Args:
|
|
1016
|
+
method: The callback method to inspect
|
|
1017
|
+
kwargs: The keyword arguments to filter
|
|
1018
|
+
|
|
1019
|
+
Returns:
|
|
1020
|
+
A filtered dictionary of keyword arguments that match the method's signature
|
|
1021
|
+
|
|
1022
|
+
"""
|
|
1023
|
+
try:
|
|
1024
|
+
sig = inspect.signature(method)
|
|
1025
|
+
except (ValueError, TypeError):
|
|
1026
|
+
# If we can't inspect the signature, pass all kwargs to maintain backward compatibility
|
|
1027
|
+
return kwargs
|
|
1028
|
+
|
|
1029
|
+
filtered_kwargs = {}
|
|
1030
|
+
for name, param in sig.parameters.items():
|
|
1031
|
+
# If the method accepts **kwargs, pass all original kwargs directly
|
|
1032
|
+
if param.kind == inspect.Parameter.VAR_KEYWORD:
|
|
1033
|
+
return kwargs
|
|
1034
|
+
# If the parameter exists in the incoming kwargs, add it to filtered_kwargs
|
|
1035
|
+
if name in kwargs:
|
|
1036
|
+
filtered_kwargs[name] = kwargs[name]
|
|
1037
|
+
|
|
1038
|
+
return filtered_kwargs
|
|
1039
|
+
|
|
988
1040
|
def call(self, hook_name: str, *args: Any, **kwargs: Any) -> None:
|
|
989
1041
|
r"""Trigger the callback methods with the given name and arguments.
|
|
990
1042
|
|
|
@@ -994,7 +1046,9 @@ class Fabric:
|
|
|
994
1046
|
Args:
|
|
995
1047
|
hook_name: The name of the callback method.
|
|
996
1048
|
*args: Optional positional arguments that get passed down to the callback method.
|
|
997
|
-
**kwargs: Optional keyword arguments that get passed down to the callback method.
|
|
1049
|
+
**kwargs: Optional keyword arguments that get passed down to the callback method. Keyword arguments
|
|
1050
|
+
that are not present in the callback's signature will be filtered out automatically, allowing
|
|
1051
|
+
callbacks to have different signatures for the same hook.
|
|
998
1052
|
|
|
999
1053
|
Example::
|
|
1000
1054
|
|
|
@@ -1016,13 +1070,8 @@ class Fabric:
|
|
|
1016
1070
|
)
|
|
1017
1071
|
continue
|
|
1018
1072
|
|
|
1019
|
-
method
|
|
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)
|
|
1073
|
+
filtered_kwargs = self._filter_kwargs_for_callback(method, kwargs)
|
|
1074
|
+
method(*args, **filtered_kwargs)
|
|
1026
1075
|
|
|
1027
1076
|
def log(self, name: str, value: Any, step: Optional[int] = None) -> None:
|
|
1028
1077
|
"""Log a scalar to all loggers that were added to Fabric.
|