lightning 2.4.0.dev20240630__tar.gz → 2.4.0.dev20240714__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.
Files changed (575) hide show
  1. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/.actions/assistant.py +1 -32
  2. {lightning-2.4.0.dev20240630/src/lightning.egg-info → lightning-2.4.0.dev20240714}/PKG-INFO +16 -28
  3. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/README.md +6 -5
  4. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/pyproject.toml +1 -102
  5. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/requirements/base.txt +2 -2
  6. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/requirements/fabric/base.txt +2 -2
  7. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/requirements/fabric/examples.txt +1 -1
  8. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/requirements/pytorch/base.txt +2 -2
  9. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/requirements/pytorch/examples.txt +1 -1
  10. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/requirements/pytorch/test.txt +2 -2
  11. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/setup.py +2 -4
  12. lightning-2.4.0.dev20240630/src/lightning/1aadc1d656507543e9875427981f387a4b733ebc60cdada0 → lightning-2.4.0.dev20240714/src/lightning/38c573b530d46c5a2d30dc86e35587e8046a152f4dadd223 +0 -8
  13. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/__init__.py +0 -17
  14. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/__setup__.py +4 -20
  15. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/CHANGELOG.md +4 -3
  16. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/__init__.py +1 -1
  17. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/cli.py +6 -12
  18. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/fabric.py +2 -4
  19. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/loggers/tensorboard.py +1 -1
  20. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/precision/amp.py +3 -2
  21. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/deepspeed.py +6 -2
  22. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/fsdp.py +16 -29
  23. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/model_parallel.py +8 -14
  24. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/apply_func.py +11 -4
  25. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/cloud_io.py +8 -1
  26. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/imports.py +5 -6
  27. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/init.py +0 -3
  28. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/logger.py +8 -5
  29. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/registry.py +5 -11
  30. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/seed.py +37 -16
  31. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/testing/_runif.py +6 -8
  32. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/throughput.py +0 -3
  33. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/CHANGELOG.md +7 -4
  34. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/progress/progress_bar.py +1 -1
  35. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/progress/rich_progress.py +7 -7
  36. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/pruning.py +1 -1
  37. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/stochastic_weight_avg.py +1 -1
  38. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/cli.py +19 -5
  39. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/core/datamodule.py +1 -1
  40. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/core/module.py +5 -27
  41. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/demos/transformer.py +1 -2
  42. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loops/utilities.py +0 -4
  43. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/precision/amp.py +3 -2
  44. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/precision/deepspeed.py +2 -2
  45. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/profilers/pytorch.py +24 -7
  46. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/fsdp.py +9 -16
  47. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/launchers/multiprocessing.py +1 -1
  48. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/model_parallel.py +6 -6
  49. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/strategy.py +1 -1
  50. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/connectors/logger_connector/result.py +2 -3
  51. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/connectors/signal_connector.py +3 -21
  52. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/_pytree.py +1 -1
  53. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/compile.py +0 -5
  54. lightning-2.4.0.dev20240714/src/lightning/version.info +1 -0
  55. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714/src/lightning.egg-info}/PKG-INFO +16 -28
  56. lightning-2.4.0.dev20240714/src/lightning.egg-info/SOURCES.txt +293 -0
  57. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning.egg-info/entry_points.txt +0 -1
  58. lightning-2.4.0.dev20240714/src/lightning.egg-info/requires.txt +242 -0
  59. lightning-2.4.0.dev20240714/src/version.info +1 -0
  60. lightning-2.4.0.dev20240630/requirements/app/app.txt +0 -31
  61. lightning-2.4.0.dev20240630/requirements/app/cloud.txt +0 -4
  62. lightning-2.4.0.dev20240630/requirements/app/components.txt +0 -5
  63. lightning-2.4.0.dev20240630/requirements/app/docs.txt +0 -1
  64. lightning-2.4.0.dev20240630/requirements/app/test.txt +0 -18
  65. lightning-2.4.0.dev20240630/requirements/app/ui.txt +0 -0
  66. lightning-2.4.0.dev20240630/src/lightning/__main__.py +0 -4
  67. lightning-2.4.0.dev20240630/src/lightning/app/CHANGELOG.md +0 -608
  68. lightning-2.4.0.dev20240630/src/lightning/app/__init__.py +0 -51
  69. lightning-2.4.0.dev20240630/src/lightning/app/api/__init__.py +0 -8
  70. lightning-2.4.0.dev20240630/src/lightning/app/api/http_methods.py +0 -258
  71. lightning-2.4.0.dev20240630/src/lightning/app/api/request_types.py +0 -56
  72. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/.gitignore +0 -157
  73. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/LICENSE +0 -201
  74. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/README.md +0 -37
  75. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/app.py +0 -16
  76. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/placeholdername/__init__.py +0 -4
  77. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/placeholdername/components/component_a/__init__.py +0 -3
  78. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/placeholdername/components/component_a/component_a.py +0 -6
  79. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/placeholdername/components/component_b/__init__.py +0 -3
  80. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/placeholdername/components/component_b/component_a.py +0 -6
  81. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/requirements.txt +0 -0
  82. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/setup.py +0 -15
  83. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/tests/README.md +0 -17
  84. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/tests/requirements.txt +0 -8
  85. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/tests/test_placeholdername_app.py +0 -44
  86. lightning-2.4.0.dev20240630/src/lightning/app/cli/cmd_apps.py +0 -146
  87. lightning-2.4.0.dev20240630/src/lightning/app/cli/cmd_init.py +0 -167
  88. lightning-2.4.0.dev20240630/src/lightning/app/cli/cmd_install.py +0 -657
  89. lightning-2.4.0.dev20240630/src/lightning/app/cli/cmd_pl_init.py +0 -187
  90. lightning-2.4.0.dev20240630/src/lightning/app/cli/cmd_react_ui_init.py +0 -131
  91. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/__init__.py +0 -0
  92. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/app_commands.py +0 -135
  93. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/cd.py +0 -117
  94. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/cp.py +0 -350
  95. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/logs.py +0 -122
  96. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/ls.py +0 -268
  97. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/pwd.py +0 -53
  98. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/rm.py +0 -101
  99. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/.github/workflows/ci-testing.yml +0 -79
  100. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/.gitignore +0 -157
  101. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/LICENSE +0 -201
  102. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/README.md +0 -35
  103. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/app.py +0 -15
  104. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/placeholdername/__init__.py +0 -3
  105. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/placeholdername/component.py +0 -12
  106. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/requirements.txt +0 -0
  107. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/setup.py +0 -15
  108. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/tests/README.md +0 -17
  109. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/tests/__init__.py +0 -0
  110. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/tests/requirements.txt +0 -8
  111. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/tests/test_placeholdername_component.py +0 -14
  112. lightning-2.4.0.dev20240630/src/lightning/app/cli/connect/__init__.py +0 -0
  113. lightning-2.4.0.dev20240630/src/lightning/app/cli/connect/app.py +0 -387
  114. lightning-2.4.0.dev20240630/src/lightning/app/cli/connect/data.py +0 -109
  115. lightning-2.4.0.dev20240630/src/lightning/app/cli/core.py +0 -27
  116. lightning-2.4.0.dev20240630/src/lightning/app/cli/lightning_cli.py +0 -503
  117. lightning-2.4.0.dev20240630/src/lightning/app/cli/lightning_cli_delete.py +0 -124
  118. lightning-2.4.0.dev20240630/src/lightning/app/cli/lightning_cli_launch.py +0 -130
  119. lightning-2.4.0.dev20240630/src/lightning/app/cli/lightning_cli_list.py +0 -32
  120. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/.gitignore +0 -1
  121. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/.lightningignore +0 -2
  122. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/app.py +0 -105
  123. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/__init__.py +0 -0
  124. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/callbacks.py +0 -319
  125. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/components/__init__.py +0 -2
  126. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/components/logger/__init__.py +0 -0
  127. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/components/logger/tensorboard.py +0 -49
  128. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/components/logger/weights_and_biases.py +0 -33
  129. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/components/script_runner/__init__.py +0 -1
  130. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/components/script_runner/script_runner.py +0 -76
  131. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/state.py +0 -45
  132. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/setup.py +0 -34
  133. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/tests/__init__.py +0 -0
  134. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/tests/core/__init__.py +0 -0
  135. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/tests/core/test_callbacks.py +0 -68
  136. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/tests/test_app.py +0 -14
  137. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/.gitignore +0 -25
  138. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/.prettierignore +0 -3
  139. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/.prettierrc +0 -24
  140. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/craco.config.js +0 -29
  141. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/package.json +0 -95
  142. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/public/favicon.svg +0 -9
  143. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/public/index.html +0 -65
  144. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/public/manifest.json +0 -15
  145. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/public/robots.txt +0 -3
  146. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/App.tsx +0 -126
  147. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/EnvironmentConfigurator.tsx +0 -67
  148. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/ErrorPanel.tsx +0 -24
  149. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/ExecutionSummary.tsx +0 -79
  150. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/HyperparameterSummary.tsx +0 -95
  151. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/Launcher.tsx +0 -172
  152. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/ProgressBar.tsx +0 -35
  153. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/ProgressBarGroup.tsx +0 -49
  154. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/Timer.tsx +0 -29
  155. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/hooks/useLightningState.ts +0 -31
  156. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/index.css +0 -19
  157. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/index.tsx +0 -26
  158. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/lightning-colors.ts +0 -2
  159. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/react-app-env.d.ts +0 -1
  160. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/reportWebVitals.ts +0 -15
  161. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/types/lightning.ts +0 -57
  162. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/tsconfig.json +0 -22
  163. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/README.md +0 -103
  164. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/example_app.py +0 -33
  165. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/index.html +0 -14
  166. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/package.json +0 -31
  167. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/App.css +0 -10
  168. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/App.tsx +0 -69
  169. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/favicon.svg +0 -15
  170. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/hooks/useLightningState.ts +0 -31
  171. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/index.css +0 -11
  172. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/main.tsx +0 -11
  173. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/types/lightning.ts +0 -57
  174. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/vite-env.d.ts +0 -1
  175. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/tsconfig.json +0 -21
  176. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/tsconfig.node.json +0 -8
  177. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/vite.config.ts +0 -9
  178. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/yarn.lock +0 -1278
  179. lightning-2.4.0.dev20240630/src/lightning/app/components/__init__.py +0 -41
  180. lightning-2.4.0.dev20240630/src/lightning/app/components/database/__init__.py +0 -4
  181. lightning-2.4.0.dev20240630/src/lightning/app/components/database/client.py +0 -93
  182. lightning-2.4.0.dev20240630/src/lightning/app/components/database/server.py +0 -243
  183. lightning-2.4.0.dev20240630/src/lightning/app/components/database/utilities.py +0 -263
  184. lightning-2.4.0.dev20240630/src/lightning/app/components/multi_node/__init__.py +0 -6
  185. lightning-2.4.0.dev20240630/src/lightning/app/components/multi_node/base.py +0 -107
  186. lightning-2.4.0.dev20240630/src/lightning/app/components/multi_node/fabric.py +0 -132
  187. lightning-2.4.0.dev20240630/src/lightning/app/components/multi_node/pytorch_spawn.py +0 -119
  188. lightning-2.4.0.dev20240630/src/lightning/app/components/multi_node/trainer.py +0 -130
  189. lightning-2.4.0.dev20240630/src/lightning/app/components/python/__init__.py +0 -4
  190. lightning-2.4.0.dev20240630/src/lightning/app/components/python/popen.py +0 -113
  191. lightning-2.4.0.dev20240630/src/lightning/app/components/python/tracer.py +0 -200
  192. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/__init__.py +0 -17
  193. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/auto_scaler.py +0 -753
  194. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/catimage.png +0 -0
  195. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/cold_start_proxy.py +0 -72
  196. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/gradio_server.py +0 -200
  197. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/python_server.py +0 -328
  198. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/serve.py +0 -170
  199. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/streamlit.py +0 -174
  200. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/types/__init__.py +0 -4
  201. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/types/image.py +0 -45
  202. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/types/type.py +0 -32
  203. lightning-2.4.0.dev20240630/src/lightning/app/components/training.py +0 -203
  204. lightning-2.4.0.dev20240630/src/lightning/app/core/__init__.py +0 -5
  205. lightning-2.4.0.dev20240630/src/lightning/app/core/api.py +0 -498
  206. lightning-2.4.0.dev20240630/src/lightning/app/core/app.py +0 -746
  207. lightning-2.4.0.dev20240630/src/lightning/app/core/constants.py +0 -159
  208. lightning-2.4.0.dev20240630/src/lightning/app/core/flow.py +0 -866
  209. lightning-2.4.0.dev20240630/src/lightning/app/core/queues.py +0 -585
  210. lightning-2.4.0.dev20240630/src/lightning/app/core/work.py +0 -772
  211. lightning-2.4.0.dev20240630/src/lightning/app/frontend/__init__.py +0 -7
  212. lightning-2.4.0.dev20240630/src/lightning/app/frontend/frontend.py +0 -68
  213. lightning-2.4.0.dev20240630/src/lightning/app/frontend/just_py/__init__.py +0 -0
  214. lightning-2.4.0.dev20240630/src/lightning/app/frontend/just_py/just_py.py +0 -114
  215. lightning-2.4.0.dev20240630/src/lightning/app/frontend/just_py/just_py_base.py +0 -66
  216. lightning-2.4.0.dev20240630/src/lightning/app/frontend/panel/__init__.py +0 -6
  217. lightning-2.4.0.dev20240630/src/lightning/app/frontend/panel/app_state_comm.py +0 -101
  218. lightning-2.4.0.dev20240630/src/lightning/app/frontend/panel/app_state_watcher.py +0 -123
  219. lightning-2.4.0.dev20240630/src/lightning/app/frontend/panel/panel_frontend.py +0 -193
  220. lightning-2.4.0.dev20240630/src/lightning/app/frontend/panel/panel_serve_render_fn.py +0 -71
  221. lightning-2.4.0.dev20240630/src/lightning/app/frontend/stream_lit.py +0 -113
  222. lightning-2.4.0.dev20240630/src/lightning/app/frontend/streamlit_base.py +0 -50
  223. lightning-2.4.0.dev20240630/src/lightning/app/frontend/utils.py +0 -72
  224. lightning-2.4.0.dev20240630/src/lightning/app/frontend/web.py +0 -140
  225. lightning-2.4.0.dev20240630/src/lightning/app/launcher/__init__.py +0 -0
  226. lightning-2.4.0.dev20240630/src/lightning/app/launcher/launcher.py +0 -492
  227. lightning-2.4.0.dev20240630/src/lightning/app/launcher/lightning_backend.py +0 -570
  228. lightning-2.4.0.dev20240630/src/lightning/app/launcher/lightning_hybrid_backend.py +0 -160
  229. lightning-2.4.0.dev20240630/src/lightning/app/launcher/utils.py +0 -97
  230. lightning-2.4.0.dev20240630/src/lightning/app/pdb/__init__.py +0 -6
  231. lightning-2.4.0.dev20240630/src/lightning/app/pdb/pdb.py +0 -50
  232. lightning-2.4.0.dev20240630/src/lightning/app/plugin/__init__.py +0 -3
  233. lightning-2.4.0.dev20240630/src/lightning/app/plugin/plugin.py +0 -237
  234. lightning-2.4.0.dev20240630/src/lightning/app/runners/__init__.py +0 -14
  235. lightning-2.4.0.dev20240630/src/lightning/app/runners/backends/__init__.py +0 -24
  236. lightning-2.4.0.dev20240630/src/lightning/app/runners/backends/backend.py +0 -150
  237. lightning-2.4.0.dev20240630/src/lightning/app/runners/backends/cloud.py +0 -52
  238. lightning-2.4.0.dev20240630/src/lightning/app/runners/backends/docker.py +0 -43
  239. lightning-2.4.0.dev20240630/src/lightning/app/runners/backends/mp_process.py +0 -141
  240. lightning-2.4.0.dev20240630/src/lightning/app/runners/cloud.py +0 -1109
  241. lightning-2.4.0.dev20240630/src/lightning/app/runners/multiprocess.py +0 -161
  242. lightning-2.4.0.dev20240630/src/lightning/app/runners/runtime.py +0 -182
  243. lightning-2.4.0.dev20240630/src/lightning/app/runners/runtime_type.py +0 -33
  244. lightning-2.4.0.dev20240630/src/lightning/app/source_code/__init__.py +0 -7
  245. lightning-2.4.0.dev20240630/src/lightning/app/source_code/copytree.py +0 -183
  246. lightning-2.4.0.dev20240630/src/lightning/app/source_code/hashing.py +0 -51
  247. lightning-2.4.0.dev20240630/src/lightning/app/source_code/local.py +0 -149
  248. lightning-2.4.0.dev20240630/src/lightning/app/source_code/tar.py +0 -201
  249. lightning-2.4.0.dev20240630/src/lightning/app/source_code/uploader.py +0 -111
  250. lightning-2.4.0.dev20240630/src/lightning/app/storage/__init__.py +0 -6
  251. lightning-2.4.0.dev20240630/src/lightning/app/storage/copier.py +0 -155
  252. lightning-2.4.0.dev20240630/src/lightning/app/storage/drive.py +0 -341
  253. lightning-2.4.0.dev20240630/src/lightning/app/storage/filesystem.py +0 -166
  254. lightning-2.4.0.dev20240630/src/lightning/app/storage/mount.py +0 -75
  255. lightning-2.4.0.dev20240630/src/lightning/app/storage/orchestrator.py +0 -208
  256. lightning-2.4.0.dev20240630/src/lightning/app/storage/path.py +0 -453
  257. lightning-2.4.0.dev20240630/src/lightning/app/storage/payload.py +0 -274
  258. lightning-2.4.0.dev20240630/src/lightning/app/storage/requests.py +0 -57
  259. lightning-2.4.0.dev20240630/src/lightning/app/structures/__init__.py +0 -4
  260. lightning-2.4.0.dev20240630/src/lightning/app/structures/dict.py +0 -160
  261. lightning-2.4.0.dev20240630/src/lightning/app/structures/list.py +0 -177
  262. lightning-2.4.0.dev20240630/src/lightning/app/testing/__init__.py +0 -20
  263. lightning-2.4.0.dev20240630/src/lightning/app/testing/config.py +0 -28
  264. lightning-2.4.0.dev20240630/src/lightning/app/testing/helpers.py +0 -179
  265. lightning-2.4.0.dev20240630/src/lightning/app/testing/testing.py +0 -535
  266. lightning-2.4.0.dev20240630/src/lightning/app/ui/asset-manifest.json +0 -19
  267. lightning-2.4.0.dev20240630/src/lightning/app/ui/index.html +0 -1
  268. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/css/main.fb7060be.css +0 -2
  269. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/css/main.fb7060be.css.map +0 -1
  270. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/favicon.ico +0 -0
  271. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/js/787.418637a8.chunk.js +0 -2
  272. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/js/787.418637a8.chunk.js.map +0 -1
  273. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/js/main.c1f02aeb.js +0 -3
  274. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/js/main.c1f02aeb.js.LICENSE.txt +0 -87
  275. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/js/main.c1f02aeb.js.map +0 -1
  276. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/lightningState.js +0 -24
  277. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/manifest.json +0 -15
  278. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/media/error.11892047d0183a4723b91dc0fb98cb95.svg +0 -5
  279. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/media/lightning-logo-with-text.b964c8fbf221c97eb8ce52bb6e3a30d6.svg +0 -16
  280. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/media/success.5edae4c5b171e2c1c5a3c54273c47ba8.svg +0 -4
  281. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/media/warning.5c542673e84e77ceb6a230bfea7f7263.svg +0 -4
  282. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/robots.txt +0 -3
  283. lightning-2.4.0.dev20240630/src/lightning/app/ui/version.info +0 -1
  284. lightning-2.4.0.dev20240630/src/lightning/app/utilities/__init__.py +0 -0
  285. lightning-2.4.0.dev20240630/src/lightning/app/utilities/app_commands.py +0 -127
  286. lightning-2.4.0.dev20240630/src/lightning/app/utilities/app_helpers.py +0 -582
  287. lightning-2.4.0.dev20240630/src/lightning/app/utilities/app_logs.py +0 -137
  288. lightning-2.4.0.dev20240630/src/lightning/app/utilities/app_status.py +0 -44
  289. lightning-2.4.0.dev20240630/src/lightning/app/utilities/auth.py +0 -61
  290. lightning-2.4.0.dev20240630/src/lightning/app/utilities/cli_helpers.py +0 -358
  291. lightning-2.4.0.dev20240630/src/lightning/app/utilities/cloud.py +0 -63
  292. lightning-2.4.0.dev20240630/src/lightning/app/utilities/clusters.py +0 -52
  293. lightning-2.4.0.dev20240630/src/lightning/app/utilities/commands/__init__.py +0 -3
  294. lightning-2.4.0.dev20240630/src/lightning/app/utilities/commands/base.py +0 -308
  295. lightning-2.4.0.dev20240630/src/lightning/app/utilities/component.py +0 -152
  296. lightning-2.4.0.dev20240630/src/lightning/app/utilities/data_structures.py +0 -50
  297. lightning-2.4.0.dev20240630/src/lightning/app/utilities/dependency_caching.py +0 -27
  298. lightning-2.4.0.dev20240630/src/lightning/app/utilities/enum.py +0 -82
  299. lightning-2.4.0.dev20240630/src/lightning/app/utilities/exceptions.py +0 -101
  300. lightning-2.4.0.dev20240630/src/lightning/app/utilities/frontend.py +0 -89
  301. lightning-2.4.0.dev20240630/src/lightning/app/utilities/git.py +0 -86
  302. lightning-2.4.0.dev20240630/src/lightning/app/utilities/imports.py +0 -148
  303. lightning-2.4.0.dev20240630/src/lightning/app/utilities/introspection.py +0 -400
  304. lightning-2.4.0.dev20240630/src/lightning/app/utilities/layout.py +0 -215
  305. lightning-2.4.0.dev20240630/src/lightning/app/utilities/load_app.py +0 -304
  306. lightning-2.4.0.dev20240630/src/lightning/app/utilities/log.py +0 -23
  307. lightning-2.4.0.dev20240630/src/lightning/app/utilities/log_helpers.py +0 -49
  308. lightning-2.4.0.dev20240630/src/lightning/app/utilities/login.py +0 -213
  309. lightning-2.4.0.dev20240630/src/lightning/app/utilities/logs_socket_api.py +0 -94
  310. lightning-2.4.0.dev20240630/src/lightning/app/utilities/name_generator.py +0 -1359
  311. lightning-2.4.0.dev20240630/src/lightning/app/utilities/network.py +0 -215
  312. lightning-2.4.0.dev20240630/src/lightning/app/utilities/openapi.py +0 -75
  313. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/__init__.py +0 -0
  314. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/app_config.py +0 -76
  315. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/build_config.py +0 -208
  316. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/cloud_compute.py +0 -188
  317. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/docker.py +0 -127
  318. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/lightning_utils.py +0 -219
  319. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/tarfile.py +0 -52
  320. lightning-2.4.0.dev20240630/src/lightning/app/utilities/port.py +0 -168
  321. lightning-2.4.0.dev20240630/src/lightning/app/utilities/proxies.py +0 -766
  322. lightning-2.4.0.dev20240630/src/lightning/app/utilities/redis.py +0 -34
  323. lightning-2.4.0.dev20240630/src/lightning/app/utilities/safe_pickle.py +0 -107
  324. lightning-2.4.0.dev20240630/src/lightning/app/utilities/scheduler.py +0 -60
  325. lightning-2.4.0.dev20240630/src/lightning/app/utilities/secrets.py +0 -41
  326. lightning-2.4.0.dev20240630/src/lightning/app/utilities/state.py +0 -323
  327. lightning-2.4.0.dev20240630/src/lightning/app/utilities/tracer.py +0 -193
  328. lightning-2.4.0.dev20240630/src/lightning/app/utilities/tree.py +0 -88
  329. lightning-2.4.0.dev20240630/src/lightning/app/utilities/types.py +0 -28
  330. lightning-2.4.0.dev20240630/src/lightning/app/utilities/warnings.py +0 -17
  331. lightning-2.4.0.dev20240630/src/lightning/pytorch/overrides/__init__.py +0 -0
  332. lightning-2.4.0.dev20240630/src/lightning/pytorch/trainer/connectors/__init__.py +0 -0
  333. lightning-2.4.0.dev20240630/src/lightning/store/__init__.py +0 -3
  334. lightning-2.4.0.dev20240630/src/lightning/store/store.py +0 -92
  335. lightning-2.4.0.dev20240630/src/lightning/store/utils.py +0 -67
  336. lightning-2.4.0.dev20240630/src/lightning/version.info +0 -1
  337. lightning-2.4.0.dev20240630/src/lightning.egg-info/SOURCES.txt +0 -569
  338. lightning-2.4.0.dev20240630/src/lightning.egg-info/requires.txt +0 -607
  339. lightning-2.4.0.dev20240630/src/version.info +0 -1
  340. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/CITATION.cff +0 -0
  341. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/LICENSE +0 -0
  342. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/requirements/fabric/docs.txt +0 -0
  343. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/requirements/fabric/strategies.txt +0 -0
  344. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/requirements/fabric/test.txt +0 -0
  345. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/requirements/pytorch/docs.txt +0 -0
  346. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/requirements/pytorch/extra.txt +0 -0
  347. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/requirements/pytorch/strategies.txt +0 -0
  348. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/setup.cfg +0 -0
  349. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/__about__.py +0 -0
  350. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/__version__.py +0 -0
  351. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/data/__init__.py +0 -0
  352. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/_graveyard/__init__.py +0 -0
  353. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/_graveyard/tpu.py +0 -0
  354. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/accelerators/__init__.py +0 -0
  355. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/accelerators/accelerator.py +0 -0
  356. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/accelerators/cpu.py +0 -0
  357. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/accelerators/cuda.py +0 -0
  358. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/accelerators/mps.py +0 -0
  359. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/accelerators/registry.py +0 -0
  360. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/accelerators/xla.py +0 -0
  361. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/connector.py +0 -0
  362. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/loggers/__init__.py +0 -0
  363. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/loggers/csv_logs.py +0 -0
  364. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/loggers/logger.py +0 -0
  365. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/__init__.py +0 -0
  366. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/collectives/__init__.py +0 -0
  367. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/collectives/collective.py +0 -0
  368. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/collectives/single_device.py +0 -0
  369. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/collectives/torch_collective.py +0 -0
  370. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/environments/__init__.py +0 -0
  371. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/environments/cluster_environment.py +0 -0
  372. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/environments/kubeflow.py +0 -0
  373. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/environments/lightning.py +0 -0
  374. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/environments/lsf.py +0 -0
  375. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/environments/mpi.py +0 -0
  376. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/environments/slurm.py +0 -0
  377. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/environments/torchelastic.py +0 -0
  378. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/environments/xla.py +0 -0
  379. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/io/__init__.py +0 -0
  380. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/io/checkpoint_io.py +0 -0
  381. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/io/torch_io.py +0 -0
  382. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/io/xla.py +0 -0
  383. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/precision/__init__.py +0 -0
  384. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/precision/bitsandbytes.py +0 -0
  385. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/precision/deepspeed.py +0 -0
  386. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/precision/double.py +0 -0
  387. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/precision/fsdp.py +0 -0
  388. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/precision/half.py +0 -0
  389. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/precision/precision.py +0 -0
  390. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/precision/transformer_engine.py +0 -0
  391. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/precision/utils.py +0 -0
  392. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/plugins/precision/xla.py +0 -0
  393. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/__init__.py +0 -0
  394. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/ddp.py +0 -0
  395. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/dp.py +0 -0
  396. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/launchers/__init__.py +0 -0
  397. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/launchers/launcher.py +0 -0
  398. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/launchers/multiprocessing.py +0 -0
  399. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/launchers/subprocess_script.py +0 -0
  400. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/launchers/xla.py +0 -0
  401. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/parallel.py +0 -0
  402. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/registry.py +0 -0
  403. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/single_device.py +0 -0
  404. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/single_xla.py +0 -0
  405. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/strategy.py +0 -0
  406. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/xla.py +0 -0
  407. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/strategies/xla_fsdp.py +0 -0
  408. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/__init__.py +0 -0
  409. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/consolidate_checkpoint.py +0 -0
  410. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/data.py +0 -0
  411. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/device_dtype_mixin.py +0 -0
  412. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/device_parser.py +0 -0
  413. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/distributed.py +0 -0
  414. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/enums.py +0 -0
  415. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/exceptions.py +0 -0
  416. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/load.py +0 -0
  417. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/optimizer.py +0 -0
  418. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/rank_zero.py +0 -0
  419. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/spike.py +0 -0
  420. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/testing/__init__.py +0 -0
  421. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/types.py +0 -0
  422. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/utilities/warnings.py +0 -0
  423. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/fabric/wrappers.py +0 -0
  424. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/py.typed +0 -0
  425. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/__init__.py +0 -0
  426. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/_graveyard/__init__.py +0 -0
  427. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/_graveyard/_torchmetrics.py +0 -0
  428. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/_graveyard/hpu.py +0 -0
  429. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/_graveyard/precision.py +0 -0
  430. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/_graveyard/tpu.py +0 -0
  431. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/accelerators/__init__.py +0 -0
  432. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/accelerators/accelerator.py +0 -0
  433. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/accelerators/cpu.py +0 -0
  434. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/accelerators/cuda.py +0 -0
  435. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/accelerators/mps.py +0 -0
  436. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/accelerators/xla.py +0 -0
  437. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/__init__.py +0 -0
  438. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/batch_size_finder.py +0 -0
  439. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/callback.py +0 -0
  440. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/checkpoint.py +0 -0
  441. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/device_stats_monitor.py +0 -0
  442. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/early_stopping.py +0 -0
  443. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/finetuning.py +0 -0
  444. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/gradient_accumulation_scheduler.py +0 -0
  445. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/lambda_function.py +0 -0
  446. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/lr_finder.py +0 -0
  447. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/lr_monitor.py +0 -0
  448. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/model_checkpoint.py +0 -0
  449. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/model_summary.py +0 -0
  450. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/on_exception_checkpoint.py +0 -0
  451. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/prediction_writer.py +0 -0
  452. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/progress/__init__.py +0 -0
  453. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/progress/tqdm_progress.py +0 -0
  454. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/rich_model_summary.py +0 -0
  455. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/spike.py +0 -0
  456. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/throughput_monitor.py +0 -0
  457. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/callbacks/timer.py +0 -0
  458. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/core/__init__.py +0 -0
  459. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/core/hooks.py +0 -0
  460. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/core/mixins/__init__.py +0 -0
  461. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/core/mixins/hparams_mixin.py +0 -0
  462. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/core/optimizer.py +0 -0
  463. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/core/saving.py +0 -0
  464. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/demos/__init__.py +0 -0
  465. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/demos/boring_classes.py +0 -0
  466. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/demos/mnist_datamodule.py +0 -0
  467. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loggers/__init__.py +0 -0
  468. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loggers/comet.py +0 -0
  469. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loggers/csv_logs.py +0 -0
  470. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loggers/logger.py +0 -0
  471. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loggers/mlflow.py +0 -0
  472. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loggers/neptune.py +0 -0
  473. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loggers/tensorboard.py +0 -0
  474. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loggers/utilities.py +0 -0
  475. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loggers/wandb.py +0 -0
  476. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loops/__init__.py +0 -0
  477. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loops/evaluation_loop.py +0 -0
  478. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loops/fetchers.py +0 -0
  479. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loops/fit_loop.py +0 -0
  480. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loops/loop.py +0 -0
  481. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loops/optimization/__init__.py +0 -0
  482. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loops/optimization/automatic.py +0 -0
  483. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loops/optimization/closure.py +0 -0
  484. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loops/optimization/manual.py +0 -0
  485. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loops/prediction_loop.py +0 -0
  486. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loops/progress.py +0 -0
  487. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/loops/training_epoch_loop.py +0 -0
  488. {lightning-2.4.0.dev20240630/src/lightning/app/cli → lightning-2.4.0.dev20240714/src/lightning/pytorch/overrides}/__init__.py +0 -0
  489. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/overrides/distributed.py +0 -0
  490. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/__init__.py +0 -0
  491. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/environments/__init__.py +0 -0
  492. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/io/__init__.py +0 -0
  493. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/io/async_plugin.py +0 -0
  494. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/io/checkpoint_plugin.py +0 -0
  495. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/io/torch_plugin.py +0 -0
  496. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/io/wrapper.py +0 -0
  497. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/io/xla_plugin.py +0 -0
  498. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/layer_sync.py +0 -0
  499. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/precision/__init__.py +0 -0
  500. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/precision/bitsandbytes.py +0 -0
  501. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/precision/double.py +0 -0
  502. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/precision/fsdp.py +0 -0
  503. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/precision/half.py +0 -0
  504. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/precision/precision.py +0 -0
  505. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/precision/transformer_engine.py +0 -0
  506. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/plugins/precision/xla.py +0 -0
  507. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/profilers/__init__.py +0 -0
  508. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/profilers/advanced.py +0 -0
  509. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/profilers/base.py +0 -0
  510. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/profilers/profiler.py +0 -0
  511. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/profilers/simple.py +0 -0
  512. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/profilers/xla.py +0 -0
  513. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/serve/__init__.py +0 -0
  514. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/serve/servable_module.py +0 -0
  515. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/serve/servable_module_validator.py +0 -0
  516. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/__init__.py +0 -0
  517. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/ddp.py +0 -0
  518. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/deepspeed.py +0 -0
  519. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/launchers/__init__.py +0 -0
  520. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/launchers/launcher.py +0 -0
  521. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/launchers/subprocess_script.py +0 -0
  522. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/launchers/xla.py +0 -0
  523. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/parallel.py +0 -0
  524. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/single_device.py +0 -0
  525. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/single_xla.py +0 -0
  526. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/strategies/xla.py +0 -0
  527. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/__init__.py +0 -0
  528. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/call.py +0 -0
  529. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/configuration_validator.py +0 -0
  530. {lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/tests → lightning-2.4.0.dev20240714/src/lightning/pytorch/trainer/connectors}/__init__.py +0 -0
  531. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/connectors/accelerator_connector.py +0 -0
  532. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/connectors/callback_connector.py +0 -0
  533. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/connectors/checkpoint_connector.py +0 -0
  534. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/connectors/data_connector.py +0 -0
  535. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/connectors/logger_connector/__init__.py +0 -0
  536. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/connectors/logger_connector/fx_validator.py +0 -0
  537. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/connectors/logger_connector/logger_connector.py +0 -0
  538. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/setup.py +0 -0
  539. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/states.py +0 -0
  540. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/trainer/trainer.py +0 -0
  541. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/tuner/__init__.py +0 -0
  542. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/tuner/batch_size_scaling.py +0 -0
  543. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/tuner/lr_finder.py +0 -0
  544. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/tuner/tuning.py +0 -0
  545. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/__init__.py +0 -0
  546. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/argparse.py +0 -0
  547. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/combined_loader.py +0 -0
  548. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/consolidate_checkpoint.py +0 -0
  549. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/data.py +0 -0
  550. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/deepspeed.py +0 -0
  551. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/enums.py +0 -0
  552. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/exceptions.py +0 -0
  553. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/grads.py +0 -0
  554. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/imports.py +0 -0
  555. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/memory.py +0 -0
  556. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/migration/__init__.py +0 -0
  557. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/migration/migration.py +0 -0
  558. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/migration/utils.py +0 -0
  559. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/model_helpers.py +0 -0
  560. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/model_summary/__init__.py +0 -0
  561. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/model_summary/model_summary.py +0 -0
  562. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/model_summary/model_summary_deepspeed.py +0 -0
  563. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/parameter_tying.py +0 -0
  564. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/parsing.py +0 -0
  565. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/rank_zero.py +0 -0
  566. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/seed.py +0 -0
  567. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/signature_utils.py +0 -0
  568. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/testing/__init__.py +0 -0
  569. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/testing/_runif.py +0 -0
  570. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/types.py +0 -0
  571. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/upgrade_checkpoint.py +0 -0
  572. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning/pytorch/utilities/warnings.py +0 -0
  573. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning.egg-info/dependency_links.txt +0 -0
  574. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning.egg-info/not-zip-safe +0 -0
  575. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240714}/src/lightning.egg-info/top_level.txt +0 -0
@@ -14,10 +14,8 @@
14
14
  import glob
15
15
  import logging
16
16
  import os
17
- import pathlib
18
17
  import re
19
18
  import shutil
20
- import tarfile
21
19
  import tempfile
22
20
  import urllib.request
23
21
  from distutils.version import LooseVersion
@@ -35,11 +33,6 @@ REQUIREMENT_FILES = {
35
33
  "requirements/pytorch/strategies.txt",
36
34
  "requirements/pytorch/examples.txt",
37
35
  ),
38
- "app": (
39
- "requirements/app/app.txt",
40
- "requirements/app/cloud.txt",
41
- "requirements/app/ui.txt",
42
- ),
43
36
  "fabric": (
44
37
  "requirements/fabric/base.txt",
45
38
  "requirements/fabric/strategies.txt",
@@ -216,30 +209,6 @@ def distribute_version(src_folder: str, ver_file: str = "version.info") -> None:
216
209
  shutil.copy2(ver_template, fpath)
217
210
 
218
211
 
219
- def _download_frontend(pkg_path: str, version: str = "v0.0.0"):
220
- """Downloads an archive file for a specific release of the Lightning frontend and extracts it to the correct
221
- directory."""
222
-
223
- try:
224
- frontend_dir = pathlib.Path(pkg_path, "ui")
225
- download_dir = tempfile.mkdtemp()
226
-
227
- shutil.rmtree(frontend_dir, ignore_errors=True)
228
- # TODO: remove this once lightning-ui package is ready as a dependency
229
- frontend_release_url = f"https://lightning-packages.s3.amazonaws.com/ui/{version}.tar.gz"
230
- response = urllib.request.urlopen(frontend_release_url)
231
-
232
- file = tarfile.open(fileobj=response, mode="r|gz")
233
- file.extractall(path=download_dir) # noqa: S202
234
-
235
- shutil.move(download_dir, frontend_dir)
236
- print("The Lightning UI has successfully been downloaded!")
237
-
238
- # If installing from source without internet connection, we don't want to break the installation
239
- except Exception:
240
- print("The Lightning UI downloading has failed!")
241
-
242
-
243
212
  def _load_aggregate_requirements(req_dir: str = "requirements", freeze_requirements: bool = False) -> None:
244
213
  """Load all base requirements from all particular packages and prune duplicates.
245
214
 
@@ -466,7 +435,7 @@ class AssistantCLI:
466
435
  raise RuntimeError(f"Requesting file '{zip_url}' does not exist or it is just unavailable.")
467
436
 
468
437
  with zipfile.ZipFile(zip_file, "r") as zip_ref:
469
- zip_ref.extractall(tmp) # noqa: S202
438
+ zip_ref.extractall(tmp)
470
439
 
471
440
  zip_dirs = [d for d in glob.glob(os.path.join(tmp, "*")) if os.path.isdir(d)]
472
441
  # check that the extracted archive has only repo folder
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lightning
3
- Version: 2.4.0.dev20240630
3
+ Version: 2.4.0.dev20240714
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
  Author: Lightning AI et al.
@@ -21,43 +21,30 @@ 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.8
25
24
  Classifier: Programming Language :: Python :: 3.9
26
25
  Classifier: Programming Language :: Python :: 3.10
27
26
  Classifier: Programming Language :: Python :: 3.11
28
- Requires-Python: >=3.8
27
+ Classifier: Programming Language :: Python :: 3.12
28
+ Requires-Python: >=3.9
29
29
  Description-Content-Type: text/markdown
30
- Provides-Extra: app-ui
31
- Provides-Extra: app-components
32
- Provides-Extra: app-cloud
33
- Provides-Extra: app-test
34
- Provides-Extra: store-test
35
30
  Provides-Extra: fabric-strategies
36
- Provides-Extra: fabric-examples
37
31
  Provides-Extra: fabric-test
32
+ Provides-Extra: fabric-examples
38
33
  Provides-Extra: pytorch-strategies
39
- Provides-Extra: pytorch-examples
40
- Provides-Extra: pytorch-test
41
34
  Provides-Extra: pytorch-extra
35
+ Provides-Extra: pytorch-test
36
+ Provides-Extra: pytorch-examples
42
37
  Provides-Extra: fabric-all
43
38
  Provides-Extra: fabric-dev
44
39
  Provides-Extra: pytorch-all
45
40
  Provides-Extra: pytorch-dev
46
- Provides-Extra: app-extra
47
- Provides-Extra: app-all
48
- Provides-Extra: app-dev
49
- Provides-Extra: ui
50
- Provides-Extra: components
51
- Provides-Extra: cloud
52
- Provides-Extra: test
53
- Provides-Extra: app
54
- Provides-Extra: data
55
41
  Provides-Extra: strategies
42
+ Provides-Extra: test
56
43
  Provides-Extra: examples
44
+ Provides-Extra: data
57
45
  Provides-Extra: extra
58
46
  Provides-Extra: all
59
47
  Provides-Extra: dev
60
- Provides-Extra: store
61
48
  License-File: LICENSE
62
49
 
63
50
  <div align="center">
@@ -78,7 +65,7 @@ ______________________________________________________________________
78
65
  <a href="#examples">Examples</a> •
79
66
  <a href="#pytorch-lightning-train-and-deploy-pytorch-at-scale">PyTorch Lightning</a> •
80
67
  <a href="#lightning-fabric-expert-control">Fabric</a> •
81
- <a href="https://pytorch-lightning.readthedocs.io/en/2.4.0.dev20240630">Docs</a> •
68
+ <a href="https://pytorch-lightning.readthedocs.io/en/2.4.0.dev20240714">Docs</a> •
82
69
  <a href="#community">Community</a> •
83
70
  <a href="https://lightning.ai/docs/pytorch/stable/generated/CONTRIBUTING.html">Contribute</a> •
84
71
  </p>
@@ -154,11 +141,12 @@ ______________________________________________________________________
154
141
  ### Examples
155
142
  Explore various types of training possible with PyTorch Lightning. Pretrain and finetune ANY kind of model to perform ANY task like classification, segmentation, summarization and more:
156
143
 
157
- | Task | Description | Run |
158
- |---|---|---|
159
- | [Hello world](#hello-simple-model) | Pretrain - Hello world example | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/pytorch-lightning-hello-world"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
160
- | [Image segmentation](https://lightning.ai/lightning-ai/studios/image-segmentation-with-pytorch-lightning) | Finetune - ResNet-50 model to segment images | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/image-segmentation-with-pytorch-lightning"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
161
- | [Text classification](https://lightning.ai/lightning-ai/studios/text-classification-with-pytorch-lightning) | Finetune - text classifier (BERT model) | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/text-classification-with-pytorch-lightning"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
144
+ | Task | Description | Run |
145
+ |-------------------------------------------------------------------------------------------------------------|------------------------------------------------|---|
146
+ | [Hello world](#hello-simple-model) | Pretrain - Hello world example | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/pytorch-lightning-hello-world"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
147
+ | [Image segmentation](https://lightning.ai/lightning-ai/studios/image-segmentation-with-pytorch-lightning) | Finetune - ResNet-50 model to segment images | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/image-segmentation-with-pytorch-lightning"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
148
+ | [Text classification](https://lightning.ai/lightning-ai/studios/text-classification-with-pytorch-lightning) | Finetune - text classifier (BERT model) | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/text-classification-with-pytorch-lightning"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
149
+ | [Audio generation](https://lightning.ai/lightning-ai/studios/finetune-a-personal-ai-music-generator) | Finetune - audio generator (transformer model) | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/finetune-a-personal-ai-music-generator"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
162
150
 
163
151
  ### Hello simple model
164
152
 
@@ -594,7 +582,7 @@ Lightning is rigorously tested across multiple CPUs, GPUs and TPUs and against m
594
582
 
595
583
  | System / PyTorch ver. | 1.13 | 2.0 | 2.1 |
596
584
  | :--------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
597
- | Linux py3.9 \[GPUs\] | | | [![Build Status](https://dev.azure.com/Lightning-AI/lightning/_apis/build/status%2Fpytorch-lightning%20%28GPUs%29?branchName=refs%2Ftags%2F2.4.0.dev20240630)](https://dev.azure.com/Lightning-AI/lightning/_build/latest?definitionId=24&branchName=master) |
585
+ | Linux py3.9 \[GPUs\] | | | [![Build Status](https://dev.azure.com/Lightning-AI/lightning/_apis/build/status%2Fpytorch-lightning%20%28GPUs%29?branchName=refs%2Ftags%2F2.4.0.dev20240714)](https://dev.azure.com/Lightning-AI/lightning/_build/latest?definitionId=24&branchName=master) |
598
586
  | Linux py3.9 \[TPUs\] | | [![Test PyTorch - TPU](https://github.com/Lightning-AI/lightning/actions/workflows/tpu-tests.yml/badge.svg)](https://github.com/Lightning-AI/lightning/actions/workflows/tpu-tests.yml) | |
599
587
  | Linux (multiple Python versions) | [![Test PyTorch](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml/badge.svg)](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) | [![Test PyTorch](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml/badge.svg)](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) | [![Test PyTorch](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml/badge.svg)](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) |
600
588
  | OSX (multiple Python versions) | [![Test PyTorch](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml/badge.svg)](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) | [![Test PyTorch](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml/badge.svg)](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) | [![Test PyTorch](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml/badge.svg)](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) |
@@ -133,11 +133,12 @@ ______________________________________________________________________
133
133
  ### Examples
134
134
  Explore various types of training possible with PyTorch Lightning. Pretrain and finetune ANY kind of model to perform ANY task like classification, segmentation, summarization and more:
135
135
 
136
- | Task | Description | Run |
137
- |---|---|---|
138
- | [Hello world](#hello-simple-model) | Pretrain - Hello world example | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/pytorch-lightning-hello-world"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
139
- | [Image segmentation](https://lightning.ai/lightning-ai/studios/image-segmentation-with-pytorch-lightning) | Finetune - ResNet-50 model to segment images | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/image-segmentation-with-pytorch-lightning"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
140
- | [Text classification](https://lightning.ai/lightning-ai/studios/text-classification-with-pytorch-lightning) | Finetune - text classifier (BERT model) | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/text-classification-with-pytorch-lightning"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
136
+ | Task | Description | Run |
137
+ |-------------------------------------------------------------------------------------------------------------|------------------------------------------------|---|
138
+ | [Hello world](#hello-simple-model) | Pretrain - Hello world example | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/pytorch-lightning-hello-world"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
139
+ | [Image segmentation](https://lightning.ai/lightning-ai/studios/image-segmentation-with-pytorch-lightning) | Finetune - ResNet-50 model to segment images | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/image-segmentation-with-pytorch-lightning"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
140
+ | [Text classification](https://lightning.ai/lightning-ai/studios/text-classification-with-pytorch-lightning) | Finetune - text classifier (BERT model) | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/text-classification-with-pytorch-lightning"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
141
+ | [Audio generation](https://lightning.ai/lightning-ai/studios/finetune-a-personal-ai-music-generator) | Finetune - audio generator (transformer model) | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/finetune-a-personal-ai-music-generator"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open In Studio"/></a> |
141
142
 
142
143
  ### Hello simple model
143
144
 
@@ -134,14 +134,7 @@ max-complexity = 10
134
134
  files = [
135
135
  "src/lightning",
136
136
  ]
137
- # This section is for folders with "-" as they are not valid python modules
138
- exclude = [
139
- "src/lightning/app/cli/app-template",
140
- "src/lightning/app/cli/component-template",
141
- "src/lightning/app/cli/pl-app-template",
142
- "src/lightning/app/cli/react-ui-template",
143
- "src/lightning/app/launcher/utils.py",
144
- ]
137
+
145
138
  install_types = "True"
146
139
  non_interactive = "True"
147
140
  disallow_untyped_defs = "True"
@@ -156,100 +149,6 @@ disable_error_code = "attr-defined"
156
149
  # style choices
157
150
  warn_no_return = "False"
158
151
 
159
- # Ignore mypy errors for these files
160
- # TODO: the goal is for this to be empty
161
- [[tool.mypy.overrides]]
162
- # the list can be generated with:
163
- # mypy --no-error-summary 2>&1 | tr ':' ' ' | awk '{print $1}' | sort | uniq | sed 's/\.py//g; s|src/||g; s|\/|\.|g' | xargs -I {} echo '"{}",'
164
- module = [
165
- "lightning.app.api.http_methods",
166
- "lightning.app.api.request_types",
167
- "lightning.app.cli.cmd_install",
168
- "lightning.app.cli.commands.app_commands",
169
- "lightning.app.cli.commands.cd",
170
- "lightning.app.cli.commands.cp",
171
- "lightning.app.cli.commands.ls",
172
- "lightning.app.cli.connect.app",
173
- "lightning.app.components.database.client",
174
- "lightning.app.components.database.server",
175
- "lightning.app.components.database.utilities",
176
- "lightning.app.components.multi_node.base",
177
- "lightning.app.components.multi_node.fabric",
178
- "lightning.app.components.multi_node.pytorch_spawn",
179
- "lightning.app.components.multi_node.trainer",
180
- "lightning.app.components.python.popen",
181
- "lightning.app.components.python.tracer",
182
- "lightning.app.components.serve.auto_scaler",
183
- "lightning.app.components.serve.gradio_server",
184
- "lightning.app.components.serve.python_server",
185
- "lightning.app.components.serve.serve",
186
- "lightning.app.components.serve.streamlit",
187
- "lightning.app.components.serve.types.image",
188
- "lightning.app.components.serve.types.type",
189
- "lightning.app.components.training",
190
- "lightning.app.frontend.panel.app_state_comm",
191
- "lightning.app.frontend.panel.app_state_watcher",
192
- "lightning.app.frontend.panel.panel_frontend",
193
- "lightning.app.frontend.panel.panel_serve_render_fn",
194
- "lightning.app.frontend.streamlit_base",
195
- "lightning.app.frontend.stream_lit",
196
- "lightning.app.frontend.utils",
197
- "lightning.app.frontend.web",
198
- "lightning.app.launcher.launcher",
199
- "lightning.app.launcher.lightning_backend",
200
- "lightning.app.launcher.lightning_hybrid_backend",
201
- "lightning.app.pdb.pdb",
202
- "lightning.app.runners.backends.backend",
203
- "lightning.app.runners.backends.cloud",
204
- "lightning.app.runners.backends.docker",
205
- "lightning.app.runners.backends.mp_process",
206
- "lightning.app.runners.cloud",
207
- "lightning.app.runners.multiprocess",
208
- "lightning.app.runners.runtime",
209
- "lightning.app.source_code.copytree",
210
- "lightning.app.source_code.hashing",
211
- "lightning.app.source_code.local",
212
- "lightning.app.source_code.tar",
213
- "lightning.app.source_code.uploader",
214
- "lightning.app.storage.copier",
215
- "lightning.app.storage.drive",
216
- "lightning.app.storage.filesystem",
217
- "lightning.app.storage.orchestrator",
218
- "lightning.app.storage.path",
219
- "lightning.app.storage.payload",
220
- "lightning.app.structures.dict",
221
- "lightning.app.structures.list",
222
- "lightning.app.testing.helpers",
223
- "lightning.app.testing.testing",
224
- "lightning.app.utilities.app_helpers",
225
- "lightning.app.utilities.app_logs",
226
- "lightning.app.utilities.cli_helpers",
227
- "lightning.app.utilities.cloud",
228
- "lightning.app.utilities.commands.base",
229
- "lightning.app.utilities.component",
230
- "lightning.app.utilities.enum",
231
- "lightning.app.utilities.exceptions",
232
- "lightning.app.utilities.git",
233
- "lightning.app.utilities.imports",
234
- "lightning.app.utilities.introspection",
235
- "lightning.app.utilities.layout",
236
- "lightning.app.utilities.load_app",
237
- "lightning.app.utilities.log_helpers",
238
- "lightning.app.utilities.login",
239
- "lightning.app.utilities.name_generator",
240
- "lightning.app.utilities.network",
241
- "lightning.app.utilities.openapi",
242
- "lightning.app.utilities.packaging.cloud_compute",
243
- "lightning.app.utilities.packaging.lightning_utils",
244
- "lightning.app.utilities.proxies",
245
- "lightning.app.utilities.scheduler",
246
- "lightning.app.utilities.state",
247
- "lightning.app.utilities.tracer",
248
- "lightning.app.utilities.tree",
249
- "lightning.store.utils",
250
- ]
251
- ignore_errors = "True"
252
-
253
152
 
254
153
  [tool.coverage.report]
255
154
  exclude_lines = [
@@ -1,9 +1,9 @@
1
1
  PyYAML<7.0,>=5.4
2
2
  fsspec[http]<2025.0,>=2022.5.0
3
3
  lightning-utilities<1.0,>=0.10.0
4
- numpy<2.0,>=1.17.2
4
+ numpy<2.0,>=1.21.0
5
5
  packaging<24.0,>=20.0
6
- torch<3.0,>=2.0.0
6
+ torch<3.0,>=2.1.0
7
7
  torchmetrics<2.0,>=0.7.0
8
8
  tqdm<5.0,>=4.57.0
9
9
  typing-extensions<5.0,>=4.4.0
@@ -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
- numpy >=1.17.2, <1.27.0
5
- torch >=2.0.0, <2.4.0
4
+ numpy >=1.21.0, <1.27.0
5
+ torch >=2.1.0, <2.5.0
6
6
  fsspec[http] >=2022.5.0, <2024.4.0
7
7
  packaging >=20.0, <=23.1
8
8
  typing-extensions >=4.4.0, <4.10.0
@@ -1,6 +1,6 @@
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.15.0, <0.19.0
4
+ torchvision >=0.16.0, <0.20.0
5
5
  torchmetrics >=0.10.0, <1.3.0
6
6
  lightning-utilities >=0.8.0, <0.12.0
@@ -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
- numpy >=1.17.2, <1.27.0
5
- torch >=2.0.0, <2.4.0
4
+ numpy >=1.21.0, <1.27.0
5
+ torch >=2.1.0, <2.5.0
6
6
  tqdm >=4.57.0, <4.67.0
7
7
  PyYAML >=5.4, <6.1.0
8
8
  fsspec[http] >=2022.5.0, <2024.4.0
@@ -2,7 +2,7 @@
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.32.0
5
- torchvision >=0.15.0, <0.19.0
5
+ torchvision >=0.16.0, <0.20.0
6
6
  ipython[all] <8.15.0
7
7
  torchmetrics >=0.10.0, <1.3.0
8
8
  lightning-utilities >=0.8.0, <0.12.0
@@ -8,8 +8,8 @@ pytest-random-order ==1.1.0
8
8
  # needed in tests
9
9
  cloudpickle >=1.3, <2.3.0
10
10
  scikit-learn >0.22.1, <1.4.0
11
- onnx >=0.14.0, <1.15.0
12
- onnxruntime >=0.15.0, <1.17.0
11
+ onnx >=1.12.0, <1.17.0
12
+ onnxruntime >=1.12.0, <1.19.0
13
13
  psutil <5.9.6 # for `DeviceStatsMonitor`
14
14
  pandas >1.0, <2.2.0 # needed in benchmarks
15
15
  fastapi # for `ServableModuleValidator` # not setting version as re-defined in App
@@ -17,7 +17,7 @@ installation for all packages.
17
17
 
18
18
  There are considered three main scenarios for installing this project:
19
19
 
20
- 1. Using PyPI registry when you can install `pytorch-lightning`, `lightning-app`, etc. or `lightning` for all.
20
+ 1. Using PyPI registry when you can install `pytorch-lightning`, etc. or `lightning` for all.
21
21
 
22
22
  2. Installation from source code after cloning repository.
23
23
  In such case we recommend to use command `pip install .` or `pip install -e .` for development version
@@ -26,12 +26,11 @@ There are considered three main scenarios for installing this project:
26
26
 
27
27
  - for `pytorch-lightning` use `export PACKAGE_NAME=pytorch ; pip install .`
28
28
  - for `lightning-fabric` use `export PACKAGE_NAME=fabric ; pip install .`
29
- - for `lightning-app` use `export PACKAGE_NAME=app ; pip install .`
30
29
 
31
30
  3. Building packages as sdist or binary wheel and installing or publish to PyPI afterwords you use command
32
31
  `python setup.py sdist` or `python setup.py bdist_wheel` accordingly.
33
32
  In case you want to build just a particular package you want to set an environment variable:
34
- `PACKAGE_NAME=lightning|pytorch|app|fabric python setup.py sdist|bdist_wheel`
33
+ `PACKAGE_NAME=lightning|pytorch|fabric python setup.py sdist|bdist_wheel`
35
34
 
36
35
  4. Automated releasing with GitHub action is natural extension of 3) is composed of three consecutive steps:
37
36
  a) determine which packages shall be released based on version increment in `__version__.py` and eventually
@@ -57,7 +56,6 @@ _PACKAGE_NAME = os.environ.get("PACKAGE_NAME")
57
56
  _PACKAGE_MAPPING = {
58
57
  "lightning": "lightning",
59
58
  "pytorch": "pytorch_lightning",
60
- "app": "lightning_app",
61
59
  "fabric": "lightning_fabric",
62
60
  }
63
61
  # https://packaging.python.org/guides/single-sourcing-package-version/
@@ -2,11 +2,6 @@
2
2
  include *.cff # citation info
3
3
  include .actions/assistant.py
4
4
  include requirements/base.txt
5
- include src/lightning/app/CHANGELOG.md
6
- include src/lightning/app/README.md
7
- include src/lightning/app/components/serve/catimage.png
8
- include src/lightning/app/py.typed # marker file for PEP 561
9
- include src/lightning/app/version.info
10
5
  include src/lightning/fabric/CHANGELOG.md
11
6
  include src/lightning/fabric/README.md
12
7
  include src/lightning/fabric/py.typed # marker file for PEP 561
@@ -18,8 +13,5 @@ include src/lightning/pytorch/py.typed # marker file for PEP 561
18
13
  include src/lightning/pytorch/version.info
19
14
  include src/lightning/version.info
20
15
  include src/version.info
21
- recursive-include requirements/app *.txt
22
16
  recursive-include requirements/fabric *.txt
23
17
  recursive-include requirements/pytorch *.txt
24
- recursive-include src/lightning/app/cli/*-template *
25
- recursive-include src/lightning/app/ui *
@@ -1,7 +1,6 @@
1
1
  """Root package info."""
2
2
 
3
3
  import logging
4
- import sys
5
4
 
6
5
  # explicitly don't set root logger's propagation and leave this to subpackages to manage
7
6
  _logger = logging.getLogger(__name__)
@@ -31,19 +30,3 @@ __all__ = [
31
30
  "Fabric",
32
31
  "__version__",
33
32
  ]
34
-
35
-
36
- def _cli_entry_point() -> None:
37
- from lightning_utilities.core.imports import ModuleAvailableCache, RequirementCache
38
-
39
- if not (
40
- ModuleAvailableCache("lightning.app")
41
- if RequirementCache("lightning-utilities<0.10.0")
42
- else RequirementCache(module="lightning.app")
43
- ):
44
- print("The `lightning` command requires additional dependencies: `pip install lightning[app]`")
45
- sys.exit(1)
46
-
47
- from lightning.app.cli.lightning_cli import main
48
-
49
- main()
@@ -45,12 +45,8 @@ def _prepare_extras() -> Dict[str, Any]:
45
45
  extras["fabric-dev"] = extras["fabric-all"] + extras["fabric-test"]
46
46
  extras["pytorch-all"] = extras["pytorch-extra"] + extras["pytorch-strategies"] + extras["pytorch-examples"]
47
47
  extras["pytorch-dev"] = extras["pytorch-all"] + extras["pytorch-test"]
48
- extras["app-extra"] = extras["app-app"] + extras["app-cloud"] + extras["app-ui"] + extras["app-components"]
49
- extras["app-all"] = extras["app-extra"]
50
- extras["app-dev"] = extras["app-all"] + extras["app-test"]
51
- extras["store-store"] = extras["app-app"] # todo: consider cutting/leaning this dependency
52
48
 
53
- # merge per-project extras of the same category, e.g. `app-test` + `fabric-test`
49
+ # merge per-project extras of the same category
54
50
  for extra in list(extras):
55
51
  name = "-".join(extra.split("-")[1:])
56
52
  extras[name] = extras.get(name, []) + extras[extra]
@@ -74,17 +70,6 @@ def _setup_args() -> Dict[str, Any]:
74
70
  _PROJECT_ROOT, homepage=about.__homepage__, version=version.version
75
71
  )
76
72
 
77
- # TODO: remove this once lightning-ui package is ready as a dependency
78
- ui_ver_file = os.path.join(_SOURCE_ROOT, "app-ui-version.info")
79
- if os.path.isfile(ui_ver_file):
80
- with open(ui_ver_file, encoding="utf-8") as fo:
81
- ui_version = fo.readlines()[0].strip()
82
- download_fe_version = {"version": ui_version}
83
- else:
84
- print(f"Missing file with FE version: {ui_ver_file}")
85
- download_fe_version = {}
86
- _ASSISTANT._download_frontend(os.path.join(_PACKAGE_ROOT, "app"), **download_fe_version)
87
-
88
73
  # TODO: consider invaliding some additional arguments from packages, for example if include data or safe to zip
89
74
 
90
75
  install_requires = _ASSISTANT.load_requirements(
@@ -108,13 +93,12 @@ def _setup_args() -> Dict[str, Any]:
108
93
  "long_description_content_type": "text/markdown",
109
94
  "include_package_data": True,
110
95
  "zip_safe": False,
111
- "keywords": ["deep learning", "pytorch", "AI"], # todo: aggregate tags from all packages
112
- "python_requires": ">=3.8", # todo: take the lowes based on all packages
96
+ "keywords": ["deep learning", "pytorch", "AI"],
97
+ "python_requires": ">=3.9",
113
98
  "entry_points": {
114
99
  "console_scripts": [
115
100
  "fabric = lightning.fabric.cli:_main",
116
101
  "lightning = lightning.fabric.cli:_legacy_main",
117
- "lightning_app = lightning:_cli_entry_point",
118
102
  ],
119
103
  },
120
104
  "setup_requires": [],
@@ -140,9 +124,9 @@ def _setup_args() -> Dict[str, Any]:
140
124
  "Operating System :: OS Independent",
141
125
  # Specify the Python versions you support here.
142
126
  "Programming Language :: Python :: 3",
143
- "Programming Language :: Python :: 3.8",
144
127
  "Programming Language :: Python :: 3.9",
145
128
  "Programming Language :: Python :: 3.10",
146
129
  "Programming Language :: Python :: 3.11",
130
+ "Programming Language :: Python :: 3.12",
147
131
  ], # todo: consider aggregation/union of tags from particular packages
148
132
  }
@@ -15,7 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
15
15
 
16
16
  ### Changed
17
17
 
18
- -
18
+ - Changed the implementation of how seeds are chosen for dataloader workers when using `seed_everything(..., workers=True)` ([#20055](https://github.com/Lightning-AI/pytorch-lightning/pull/20055))
19
19
 
20
20
  -
21
21
 
@@ -27,9 +27,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
27
27
 
28
28
  ### Removed
29
29
 
30
- -
30
+ - Removed support for PyTorch 2.1 ([#20009](https://github.com/Lightning-AI/lightning/pull/20009))
31
31
 
32
- -
32
+
33
+ - Removed support for Python 3.8 ([#20071](https://github.com/Lightning-AI/lightning/pull/20071))
33
34
 
34
35
  ### Fixed
35
36
 
@@ -21,7 +21,7 @@ if not _root_logger.hasHandlers():
21
21
  _logger.propagate = False
22
22
 
23
23
 
24
- # In PyTorch 2.0+, setting this variable will force `torch.cuda.is_available()` and `torch.cuda.device_count()`
24
+ # Setting this variable will force `torch.cuda.is_available()` and `torch.cuda.device_count()`
25
25
  # to use an NVML-based implementation that doesn't poison forks.
26
26
  # https://github.com/pytorch/pytorch/issues/83973
27
27
  os.environ["PYTORCH_NVML_BASED_CUDA_CHECK"] = "1"
@@ -57,18 +57,12 @@ if _CLICK_AVAILABLE:
57
57
 
58
58
  """
59
59
  hparams = sys.argv[1:]
60
- if len(hparams) >= 2 and hparams[0] == "run":
61
- if hparams[1] == "model":
62
- print(
63
- "`lightning run model` is deprecated and will be removed in future versions."
64
- " Please call `fabric run` instead."
65
- )
66
- _main()
67
- return
68
-
69
- from lightning.app.cli.lightning_cli import main as main_cli
70
-
71
- main_cli()
60
+ if len(hparams) >= 2 and hparams[0] == "run" and hparams[1] == "model":
61
+ print(
62
+ "`lightning run model` is deprecated and will be removed in future versions."
63
+ " Please call `fabric run` instead."
64
+ )
65
+ _main()
72
66
  return
73
67
 
74
68
  if _LIGHTNING_SDK_AVAILABLE:
@@ -225,8 +225,7 @@ class Fabric:
225
225
  _reapply_compile: If ``True`` (default), and the model was ``torch.compile``d before, the
226
226
  corresponding :class:`~torch._dynamo.OptimizedModule` wrapper will be removed and reapplied with the
227
227
  same settings after the model was set up by the strategy (e.g., after the model was wrapped by DDP,
228
- FSDP etc.). Only applies on PyTorch >= 2.1. Set it to ``False`` if compiling DDP/FSDP is causing
229
- issues.
228
+ FSDP etc.). Set it to ``False`` if compiling DDP/FSDP is causing issues.
230
229
 
231
230
  Returns:
232
231
  The tuple containing wrapped module and the optimizers, in the same order they were passed in.
@@ -292,8 +291,7 @@ class Fabric:
292
291
  _reapply_compile: If ``True`` (default), and the model was ``torch.compile``d before, the
293
292
  corresponding :class:`~torch._dynamo.OptimizedModule` wrapper will be removed and reapplied with the
294
293
  same settings after the model was set up by the strategy (e.g., after the model was wrapped by DDP,
295
- FSDP etc.). Only applies on PyTorch >= 2.1. Set it to ``False`` if compiling DDP/FSDP is causing
296
- issues.
294
+ FSDP etc.). Set it to ``False`` if compiling DDP/FSDP is causing issues.
297
295
  Returns:
298
296
  The wrapped model.
299
297
 
@@ -107,7 +107,7 @@ class TensorBoardLogger(Logger):
107
107
  self._prefix = prefix
108
108
  self._fs = get_filesystem(root_dir)
109
109
 
110
- self._experiment: Optional["SummaryWriter"] = None
110
+ self._experiment: Optional[SummaryWriter] = None
111
111
  self._kwargs = kwargs
112
112
 
113
113
  @property
@@ -22,6 +22,7 @@ from typing_extensions import override
22
22
 
23
23
  from lightning.fabric.plugins.precision.precision import Precision
24
24
  from lightning.fabric.plugins.precision.utils import _convert_fp_tensor
25
+ from lightning.fabric.utilities.imports import _TORCH_GREATER_EQUAL_2_4
25
26
  from lightning.fabric.utilities.types import Optimizable
26
27
 
27
28
 
@@ -39,7 +40,7 @@ class MixedPrecision(Precision):
39
40
  self,
40
41
  precision: Literal["16-mixed", "bf16-mixed"],
41
42
  device: str,
42
- scaler: Optional[torch.cuda.amp.GradScaler] = None,
43
+ scaler: Optional["torch.cuda.amp.GradScaler"] = None,
43
44
  ) -> None:
44
45
  if precision not in ("16-mixed", "bf16-mixed"):
45
46
  raise ValueError(
@@ -49,7 +50,7 @@ class MixedPrecision(Precision):
49
50
 
50
51
  self.precision = precision
51
52
  if scaler is None and self.precision == "16-mixed":
52
- scaler = torch.cuda.amp.GradScaler()
53
+ scaler = torch.amp.GradScaler(device=device) if _TORCH_GREATER_EQUAL_2_4 else torch.cuda.amp.GradScaler()
53
54
  if scaler is not None and self.precision == "bf16-mixed":
54
55
  raise ValueError(f"`precision='bf16-mixed'` does not use a scaler, found {scaler}.")
55
56
  self.device = device