lightning 2.4.0.dev20240630__tar.gz → 2.4.0.dev20240721__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.dev20240721}/.actions/assistant.py +12 -50
  2. {lightning-2.4.0.dev20240630/src/lightning.egg-info → lightning-2.4.0.dev20240721}/PKG-INFO +18 -29
  3. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/README.md +8 -6
  4. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/pyproject.toml +2 -102
  5. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/requirements/base.txt +1 -2
  6. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/requirements/fabric/base.txt +1 -2
  7. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/requirements/fabric/examples.txt +1 -1
  8. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/requirements/fabric/test.txt +1 -0
  9. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/requirements/pytorch/base.txt +1 -2
  10. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/requirements/pytorch/examples.txt +1 -1
  11. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/requirements/pytorch/test.txt +3 -2
  12. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/setup.py +2 -4
  13. lightning-2.4.0.dev20240630/src/lightning/1aadc1d656507543e9875427981f387a4b733ebc60cdada0 → lightning-2.4.0.dev20240721/src/lightning/84b2c93ee7d857f2c8d59ed5c71ea79e33f7829f5c593862 +0 -8
  14. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/__init__.py +0 -17
  15. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/__setup__.py +6 -22
  16. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/CHANGELOG.md +7 -5
  17. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/__init__.py +1 -4
  18. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/cli.py +6 -12
  19. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/fabric.py +4 -6
  20. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/loggers/csv_logs.py +0 -1
  21. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/loggers/tensorboard.py +1 -6
  22. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/precision/amp.py +3 -2
  23. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/deepspeed.py +6 -2
  24. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/fsdp.py +16 -29
  25. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/model_parallel.py +8 -14
  26. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/apply_func.py +11 -4
  27. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/cloud_io.py +8 -1
  28. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/imports.py +5 -6
  29. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/init.py +0 -3
  30. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/logger.py +8 -5
  31. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/registry.py +5 -11
  32. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/seed.py +43 -19
  33. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/testing/_runif.py +6 -8
  34. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/throughput.py +0 -3
  35. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/CHANGELOG.md +13 -6
  36. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/__init__.py +0 -2
  37. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/progress/progress_bar.py +1 -1
  38. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/progress/rich_progress.py +7 -7
  39. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/pruning.py +1 -1
  40. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/stochastic_weight_avg.py +1 -1
  41. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/cli.py +19 -5
  42. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/core/datamodule.py +1 -1
  43. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/core/module.py +5 -27
  44. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/demos/transformer.py +2 -3
  45. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loggers/csv_logs.py +0 -3
  46. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loggers/tensorboard.py +0 -4
  47. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loops/utilities.py +0 -4
  48. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/precision/amp.py +3 -2
  49. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/precision/deepspeed.py +2 -2
  50. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/profilers/advanced.py +25 -0
  51. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/profilers/pytorch.py +24 -7
  52. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/fsdp.py +9 -16
  53. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/launchers/multiprocessing.py +1 -1
  54. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/model_parallel.py +6 -6
  55. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/strategy.py +1 -1
  56. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/connectors/logger_connector/result.py +2 -3
  57. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/connectors/signal_connector.py +3 -21
  58. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/trainer.py +0 -5
  59. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/_pytree.py +1 -1
  60. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/compile.py +0 -5
  61. lightning-2.4.0.dev20240721/src/lightning/version.info +1 -0
  62. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721/src/lightning.egg-info}/PKG-INFO +18 -29
  63. lightning-2.4.0.dev20240721/src/lightning.egg-info/SOURCES.txt +293 -0
  64. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning.egg-info/entry_points.txt +0 -1
  65. lightning-2.4.0.dev20240721/src/lightning.egg-info/requires.txt +247 -0
  66. lightning-2.4.0.dev20240721/src/version.info +1 -0
  67. lightning-2.4.0.dev20240630/requirements/app/app.txt +0 -31
  68. lightning-2.4.0.dev20240630/requirements/app/cloud.txt +0 -4
  69. lightning-2.4.0.dev20240630/requirements/app/components.txt +0 -5
  70. lightning-2.4.0.dev20240630/requirements/app/docs.txt +0 -1
  71. lightning-2.4.0.dev20240630/requirements/app/test.txt +0 -18
  72. lightning-2.4.0.dev20240630/requirements/app/ui.txt +0 -0
  73. lightning-2.4.0.dev20240630/src/lightning/__main__.py +0 -4
  74. lightning-2.4.0.dev20240630/src/lightning/app/CHANGELOG.md +0 -608
  75. lightning-2.4.0.dev20240630/src/lightning/app/__init__.py +0 -51
  76. lightning-2.4.0.dev20240630/src/lightning/app/api/__init__.py +0 -8
  77. lightning-2.4.0.dev20240630/src/lightning/app/api/http_methods.py +0 -258
  78. lightning-2.4.0.dev20240630/src/lightning/app/api/request_types.py +0 -56
  79. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/.gitignore +0 -157
  80. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/LICENSE +0 -201
  81. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/README.md +0 -37
  82. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/app.py +0 -16
  83. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/placeholdername/__init__.py +0 -4
  84. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/placeholdername/components/component_a/__init__.py +0 -3
  85. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/placeholdername/components/component_a/component_a.py +0 -6
  86. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/placeholdername/components/component_b/__init__.py +0 -3
  87. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/placeholdername/components/component_b/component_a.py +0 -6
  88. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/requirements.txt +0 -0
  89. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/setup.py +0 -15
  90. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/tests/README.md +0 -17
  91. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/tests/requirements.txt +0 -8
  92. lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/tests/test_placeholdername_app.py +0 -44
  93. lightning-2.4.0.dev20240630/src/lightning/app/cli/cmd_apps.py +0 -146
  94. lightning-2.4.0.dev20240630/src/lightning/app/cli/cmd_init.py +0 -167
  95. lightning-2.4.0.dev20240630/src/lightning/app/cli/cmd_install.py +0 -657
  96. lightning-2.4.0.dev20240630/src/lightning/app/cli/cmd_pl_init.py +0 -187
  97. lightning-2.4.0.dev20240630/src/lightning/app/cli/cmd_react_ui_init.py +0 -131
  98. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/__init__.py +0 -0
  99. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/app_commands.py +0 -135
  100. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/cd.py +0 -117
  101. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/cp.py +0 -350
  102. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/logs.py +0 -122
  103. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/ls.py +0 -268
  104. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/pwd.py +0 -53
  105. lightning-2.4.0.dev20240630/src/lightning/app/cli/commands/rm.py +0 -101
  106. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/.github/workflows/ci-testing.yml +0 -79
  107. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/.gitignore +0 -157
  108. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/LICENSE +0 -201
  109. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/README.md +0 -35
  110. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/app.py +0 -15
  111. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/placeholdername/__init__.py +0 -3
  112. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/placeholdername/component.py +0 -12
  113. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/requirements.txt +0 -0
  114. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/setup.py +0 -15
  115. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/tests/README.md +0 -17
  116. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/tests/__init__.py +0 -0
  117. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/tests/requirements.txt +0 -8
  118. lightning-2.4.0.dev20240630/src/lightning/app/cli/component-template/tests/test_placeholdername_component.py +0 -14
  119. lightning-2.4.0.dev20240630/src/lightning/app/cli/connect/__init__.py +0 -0
  120. lightning-2.4.0.dev20240630/src/lightning/app/cli/connect/app.py +0 -387
  121. lightning-2.4.0.dev20240630/src/lightning/app/cli/connect/data.py +0 -109
  122. lightning-2.4.0.dev20240630/src/lightning/app/cli/core.py +0 -27
  123. lightning-2.4.0.dev20240630/src/lightning/app/cli/lightning_cli.py +0 -503
  124. lightning-2.4.0.dev20240630/src/lightning/app/cli/lightning_cli_delete.py +0 -124
  125. lightning-2.4.0.dev20240630/src/lightning/app/cli/lightning_cli_launch.py +0 -130
  126. lightning-2.4.0.dev20240630/src/lightning/app/cli/lightning_cli_list.py +0 -32
  127. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/.gitignore +0 -1
  128. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/.lightningignore +0 -2
  129. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/app.py +0 -105
  130. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/__init__.py +0 -0
  131. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/callbacks.py +0 -319
  132. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/components/__init__.py +0 -2
  133. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/components/logger/__init__.py +0 -0
  134. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/components/logger/tensorboard.py +0 -49
  135. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/components/logger/weights_and_biases.py +0 -33
  136. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/components/script_runner/__init__.py +0 -1
  137. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/components/script_runner/script_runner.py +0 -76
  138. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/core/state.py +0 -45
  139. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/setup.py +0 -34
  140. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/tests/__init__.py +0 -0
  141. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/tests/core/__init__.py +0 -0
  142. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/tests/core/test_callbacks.py +0 -68
  143. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/tests/test_app.py +0 -14
  144. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/.gitignore +0 -25
  145. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/.prettierignore +0 -3
  146. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/.prettierrc +0 -24
  147. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/craco.config.js +0 -29
  148. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/package.json +0 -95
  149. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/public/favicon.svg +0 -9
  150. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/public/index.html +0 -65
  151. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/public/manifest.json +0 -15
  152. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/public/robots.txt +0 -3
  153. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/App.tsx +0 -126
  154. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/EnvironmentConfigurator.tsx +0 -67
  155. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/ErrorPanel.tsx +0 -24
  156. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/ExecutionSummary.tsx +0 -79
  157. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/HyperparameterSummary.tsx +0 -95
  158. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/Launcher.tsx +0 -172
  159. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/ProgressBar.tsx +0 -35
  160. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/ProgressBarGroup.tsx +0 -49
  161. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/components/Timer.tsx +0 -29
  162. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/hooks/useLightningState.ts +0 -31
  163. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/index.css +0 -19
  164. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/index.tsx +0 -26
  165. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/lightning-colors.ts +0 -2
  166. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/react-app-env.d.ts +0 -1
  167. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/reportWebVitals.ts +0 -15
  168. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/src/types/lightning.ts +0 -57
  169. lightning-2.4.0.dev20240630/src/lightning/app/cli/pl-app-template/ui/tsconfig.json +0 -22
  170. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/README.md +0 -103
  171. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/example_app.py +0 -33
  172. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/index.html +0 -14
  173. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/package.json +0 -31
  174. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/App.css +0 -10
  175. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/App.tsx +0 -69
  176. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/favicon.svg +0 -15
  177. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/hooks/useLightningState.ts +0 -31
  178. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/index.css +0 -11
  179. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/main.tsx +0 -11
  180. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/types/lightning.ts +0 -57
  181. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/src/vite-env.d.ts +0 -1
  182. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/tsconfig.json +0 -21
  183. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/tsconfig.node.json +0 -8
  184. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/vite.config.ts +0 -9
  185. lightning-2.4.0.dev20240630/src/lightning/app/cli/react-ui-template/ui/yarn.lock +0 -1278
  186. lightning-2.4.0.dev20240630/src/lightning/app/components/__init__.py +0 -41
  187. lightning-2.4.0.dev20240630/src/lightning/app/components/database/__init__.py +0 -4
  188. lightning-2.4.0.dev20240630/src/lightning/app/components/database/client.py +0 -93
  189. lightning-2.4.0.dev20240630/src/lightning/app/components/database/server.py +0 -243
  190. lightning-2.4.0.dev20240630/src/lightning/app/components/database/utilities.py +0 -263
  191. lightning-2.4.0.dev20240630/src/lightning/app/components/multi_node/__init__.py +0 -6
  192. lightning-2.4.0.dev20240630/src/lightning/app/components/multi_node/base.py +0 -107
  193. lightning-2.4.0.dev20240630/src/lightning/app/components/multi_node/fabric.py +0 -132
  194. lightning-2.4.0.dev20240630/src/lightning/app/components/multi_node/pytorch_spawn.py +0 -119
  195. lightning-2.4.0.dev20240630/src/lightning/app/components/multi_node/trainer.py +0 -130
  196. lightning-2.4.0.dev20240630/src/lightning/app/components/python/__init__.py +0 -4
  197. lightning-2.4.0.dev20240630/src/lightning/app/components/python/popen.py +0 -113
  198. lightning-2.4.0.dev20240630/src/lightning/app/components/python/tracer.py +0 -200
  199. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/__init__.py +0 -17
  200. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/auto_scaler.py +0 -753
  201. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/catimage.png +0 -0
  202. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/cold_start_proxy.py +0 -72
  203. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/gradio_server.py +0 -200
  204. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/python_server.py +0 -328
  205. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/serve.py +0 -170
  206. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/streamlit.py +0 -174
  207. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/types/__init__.py +0 -4
  208. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/types/image.py +0 -45
  209. lightning-2.4.0.dev20240630/src/lightning/app/components/serve/types/type.py +0 -32
  210. lightning-2.4.0.dev20240630/src/lightning/app/components/training.py +0 -203
  211. lightning-2.4.0.dev20240630/src/lightning/app/core/__init__.py +0 -5
  212. lightning-2.4.0.dev20240630/src/lightning/app/core/api.py +0 -498
  213. lightning-2.4.0.dev20240630/src/lightning/app/core/app.py +0 -746
  214. lightning-2.4.0.dev20240630/src/lightning/app/core/constants.py +0 -159
  215. lightning-2.4.0.dev20240630/src/lightning/app/core/flow.py +0 -866
  216. lightning-2.4.0.dev20240630/src/lightning/app/core/queues.py +0 -585
  217. lightning-2.4.0.dev20240630/src/lightning/app/core/work.py +0 -772
  218. lightning-2.4.0.dev20240630/src/lightning/app/frontend/__init__.py +0 -7
  219. lightning-2.4.0.dev20240630/src/lightning/app/frontend/frontend.py +0 -68
  220. lightning-2.4.0.dev20240630/src/lightning/app/frontend/just_py/__init__.py +0 -0
  221. lightning-2.4.0.dev20240630/src/lightning/app/frontend/just_py/just_py.py +0 -114
  222. lightning-2.4.0.dev20240630/src/lightning/app/frontend/just_py/just_py_base.py +0 -66
  223. lightning-2.4.0.dev20240630/src/lightning/app/frontend/panel/__init__.py +0 -6
  224. lightning-2.4.0.dev20240630/src/lightning/app/frontend/panel/app_state_comm.py +0 -101
  225. lightning-2.4.0.dev20240630/src/lightning/app/frontend/panel/app_state_watcher.py +0 -123
  226. lightning-2.4.0.dev20240630/src/lightning/app/frontend/panel/panel_frontend.py +0 -193
  227. lightning-2.4.0.dev20240630/src/lightning/app/frontend/panel/panel_serve_render_fn.py +0 -71
  228. lightning-2.4.0.dev20240630/src/lightning/app/frontend/stream_lit.py +0 -113
  229. lightning-2.4.0.dev20240630/src/lightning/app/frontend/streamlit_base.py +0 -50
  230. lightning-2.4.0.dev20240630/src/lightning/app/frontend/utils.py +0 -72
  231. lightning-2.4.0.dev20240630/src/lightning/app/frontend/web.py +0 -140
  232. lightning-2.4.0.dev20240630/src/lightning/app/launcher/__init__.py +0 -0
  233. lightning-2.4.0.dev20240630/src/lightning/app/launcher/launcher.py +0 -492
  234. lightning-2.4.0.dev20240630/src/lightning/app/launcher/lightning_backend.py +0 -570
  235. lightning-2.4.0.dev20240630/src/lightning/app/launcher/lightning_hybrid_backend.py +0 -160
  236. lightning-2.4.0.dev20240630/src/lightning/app/launcher/utils.py +0 -97
  237. lightning-2.4.0.dev20240630/src/lightning/app/pdb/__init__.py +0 -6
  238. lightning-2.4.0.dev20240630/src/lightning/app/pdb/pdb.py +0 -50
  239. lightning-2.4.0.dev20240630/src/lightning/app/plugin/__init__.py +0 -3
  240. lightning-2.4.0.dev20240630/src/lightning/app/plugin/plugin.py +0 -237
  241. lightning-2.4.0.dev20240630/src/lightning/app/runners/__init__.py +0 -14
  242. lightning-2.4.0.dev20240630/src/lightning/app/runners/backends/__init__.py +0 -24
  243. lightning-2.4.0.dev20240630/src/lightning/app/runners/backends/backend.py +0 -150
  244. lightning-2.4.0.dev20240630/src/lightning/app/runners/backends/cloud.py +0 -52
  245. lightning-2.4.0.dev20240630/src/lightning/app/runners/backends/docker.py +0 -43
  246. lightning-2.4.0.dev20240630/src/lightning/app/runners/backends/mp_process.py +0 -141
  247. lightning-2.4.0.dev20240630/src/lightning/app/runners/cloud.py +0 -1109
  248. lightning-2.4.0.dev20240630/src/lightning/app/runners/multiprocess.py +0 -161
  249. lightning-2.4.0.dev20240630/src/lightning/app/runners/runtime.py +0 -182
  250. lightning-2.4.0.dev20240630/src/lightning/app/runners/runtime_type.py +0 -33
  251. lightning-2.4.0.dev20240630/src/lightning/app/source_code/__init__.py +0 -7
  252. lightning-2.4.0.dev20240630/src/lightning/app/source_code/copytree.py +0 -183
  253. lightning-2.4.0.dev20240630/src/lightning/app/source_code/hashing.py +0 -51
  254. lightning-2.4.0.dev20240630/src/lightning/app/source_code/local.py +0 -149
  255. lightning-2.4.0.dev20240630/src/lightning/app/source_code/tar.py +0 -201
  256. lightning-2.4.0.dev20240630/src/lightning/app/source_code/uploader.py +0 -111
  257. lightning-2.4.0.dev20240630/src/lightning/app/storage/__init__.py +0 -6
  258. lightning-2.4.0.dev20240630/src/lightning/app/storage/copier.py +0 -155
  259. lightning-2.4.0.dev20240630/src/lightning/app/storage/drive.py +0 -341
  260. lightning-2.4.0.dev20240630/src/lightning/app/storage/filesystem.py +0 -166
  261. lightning-2.4.0.dev20240630/src/lightning/app/storage/mount.py +0 -75
  262. lightning-2.4.0.dev20240630/src/lightning/app/storage/orchestrator.py +0 -208
  263. lightning-2.4.0.dev20240630/src/lightning/app/storage/path.py +0 -453
  264. lightning-2.4.0.dev20240630/src/lightning/app/storage/payload.py +0 -274
  265. lightning-2.4.0.dev20240630/src/lightning/app/storage/requests.py +0 -57
  266. lightning-2.4.0.dev20240630/src/lightning/app/structures/__init__.py +0 -4
  267. lightning-2.4.0.dev20240630/src/lightning/app/structures/dict.py +0 -160
  268. lightning-2.4.0.dev20240630/src/lightning/app/structures/list.py +0 -177
  269. lightning-2.4.0.dev20240630/src/lightning/app/testing/__init__.py +0 -20
  270. lightning-2.4.0.dev20240630/src/lightning/app/testing/config.py +0 -28
  271. lightning-2.4.0.dev20240630/src/lightning/app/testing/helpers.py +0 -179
  272. lightning-2.4.0.dev20240630/src/lightning/app/testing/testing.py +0 -535
  273. lightning-2.4.0.dev20240630/src/lightning/app/ui/asset-manifest.json +0 -19
  274. lightning-2.4.0.dev20240630/src/lightning/app/ui/index.html +0 -1
  275. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/css/main.fb7060be.css +0 -2
  276. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/css/main.fb7060be.css.map +0 -1
  277. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/favicon.ico +0 -0
  278. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/js/787.418637a8.chunk.js +0 -2
  279. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/js/787.418637a8.chunk.js.map +0 -1
  280. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/js/main.c1f02aeb.js +0 -3
  281. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/js/main.c1f02aeb.js.LICENSE.txt +0 -87
  282. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/js/main.c1f02aeb.js.map +0 -1
  283. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/lightningState.js +0 -24
  284. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/manifest.json +0 -15
  285. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/media/error.11892047d0183a4723b91dc0fb98cb95.svg +0 -5
  286. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/media/lightning-logo-with-text.b964c8fbf221c97eb8ce52bb6e3a30d6.svg +0 -16
  287. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/media/success.5edae4c5b171e2c1c5a3c54273c47ba8.svg +0 -4
  288. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/media/warning.5c542673e84e77ceb6a230bfea7f7263.svg +0 -4
  289. lightning-2.4.0.dev20240630/src/lightning/app/ui/static/robots.txt +0 -3
  290. lightning-2.4.0.dev20240630/src/lightning/app/ui/version.info +0 -1
  291. lightning-2.4.0.dev20240630/src/lightning/app/utilities/__init__.py +0 -0
  292. lightning-2.4.0.dev20240630/src/lightning/app/utilities/app_commands.py +0 -127
  293. lightning-2.4.0.dev20240630/src/lightning/app/utilities/app_helpers.py +0 -582
  294. lightning-2.4.0.dev20240630/src/lightning/app/utilities/app_logs.py +0 -137
  295. lightning-2.4.0.dev20240630/src/lightning/app/utilities/app_status.py +0 -44
  296. lightning-2.4.0.dev20240630/src/lightning/app/utilities/auth.py +0 -61
  297. lightning-2.4.0.dev20240630/src/lightning/app/utilities/cli_helpers.py +0 -358
  298. lightning-2.4.0.dev20240630/src/lightning/app/utilities/cloud.py +0 -63
  299. lightning-2.4.0.dev20240630/src/lightning/app/utilities/clusters.py +0 -52
  300. lightning-2.4.0.dev20240630/src/lightning/app/utilities/commands/__init__.py +0 -3
  301. lightning-2.4.0.dev20240630/src/lightning/app/utilities/commands/base.py +0 -308
  302. lightning-2.4.0.dev20240630/src/lightning/app/utilities/component.py +0 -152
  303. lightning-2.4.0.dev20240630/src/lightning/app/utilities/data_structures.py +0 -50
  304. lightning-2.4.0.dev20240630/src/lightning/app/utilities/dependency_caching.py +0 -27
  305. lightning-2.4.0.dev20240630/src/lightning/app/utilities/enum.py +0 -82
  306. lightning-2.4.0.dev20240630/src/lightning/app/utilities/exceptions.py +0 -101
  307. lightning-2.4.0.dev20240630/src/lightning/app/utilities/frontend.py +0 -89
  308. lightning-2.4.0.dev20240630/src/lightning/app/utilities/git.py +0 -86
  309. lightning-2.4.0.dev20240630/src/lightning/app/utilities/imports.py +0 -148
  310. lightning-2.4.0.dev20240630/src/lightning/app/utilities/introspection.py +0 -400
  311. lightning-2.4.0.dev20240630/src/lightning/app/utilities/layout.py +0 -215
  312. lightning-2.4.0.dev20240630/src/lightning/app/utilities/load_app.py +0 -304
  313. lightning-2.4.0.dev20240630/src/lightning/app/utilities/log.py +0 -23
  314. lightning-2.4.0.dev20240630/src/lightning/app/utilities/log_helpers.py +0 -49
  315. lightning-2.4.0.dev20240630/src/lightning/app/utilities/login.py +0 -213
  316. lightning-2.4.0.dev20240630/src/lightning/app/utilities/logs_socket_api.py +0 -94
  317. lightning-2.4.0.dev20240630/src/lightning/app/utilities/name_generator.py +0 -1359
  318. lightning-2.4.0.dev20240630/src/lightning/app/utilities/network.py +0 -215
  319. lightning-2.4.0.dev20240630/src/lightning/app/utilities/openapi.py +0 -75
  320. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/__init__.py +0 -0
  321. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/app_config.py +0 -76
  322. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/build_config.py +0 -208
  323. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/cloud_compute.py +0 -188
  324. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/docker.py +0 -127
  325. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/lightning_utils.py +0 -219
  326. lightning-2.4.0.dev20240630/src/lightning/app/utilities/packaging/tarfile.py +0 -52
  327. lightning-2.4.0.dev20240630/src/lightning/app/utilities/port.py +0 -168
  328. lightning-2.4.0.dev20240630/src/lightning/app/utilities/proxies.py +0 -766
  329. lightning-2.4.0.dev20240630/src/lightning/app/utilities/redis.py +0 -34
  330. lightning-2.4.0.dev20240630/src/lightning/app/utilities/safe_pickle.py +0 -107
  331. lightning-2.4.0.dev20240630/src/lightning/app/utilities/scheduler.py +0 -60
  332. lightning-2.4.0.dev20240630/src/lightning/app/utilities/secrets.py +0 -41
  333. lightning-2.4.0.dev20240630/src/lightning/app/utilities/state.py +0 -323
  334. lightning-2.4.0.dev20240630/src/lightning/app/utilities/tracer.py +0 -193
  335. lightning-2.4.0.dev20240630/src/lightning/app/utilities/tree.py +0 -88
  336. lightning-2.4.0.dev20240630/src/lightning/app/utilities/types.py +0 -28
  337. lightning-2.4.0.dev20240630/src/lightning/app/utilities/warnings.py +0 -17
  338. lightning-2.4.0.dev20240630/src/lightning/pytorch/overrides/__init__.py +0 -0
  339. lightning-2.4.0.dev20240630/src/lightning/pytorch/trainer/connectors/__init__.py +0 -0
  340. lightning-2.4.0.dev20240630/src/lightning/store/__init__.py +0 -3
  341. lightning-2.4.0.dev20240630/src/lightning/store/store.py +0 -92
  342. lightning-2.4.0.dev20240630/src/lightning/store/utils.py +0 -67
  343. lightning-2.4.0.dev20240630/src/lightning/version.info +0 -1
  344. lightning-2.4.0.dev20240630/src/lightning.egg-info/SOURCES.txt +0 -569
  345. lightning-2.4.0.dev20240630/src/lightning.egg-info/requires.txt +0 -607
  346. lightning-2.4.0.dev20240630/src/version.info +0 -1
  347. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/CITATION.cff +0 -0
  348. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/LICENSE +0 -0
  349. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/requirements/fabric/docs.txt +0 -0
  350. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/requirements/fabric/strategies.txt +0 -0
  351. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/requirements/pytorch/docs.txt +0 -0
  352. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/requirements/pytorch/extra.txt +0 -0
  353. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/requirements/pytorch/strategies.txt +0 -0
  354. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/setup.cfg +0 -0
  355. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/__about__.py +0 -0
  356. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/__version__.py +0 -0
  357. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/data/__init__.py +0 -0
  358. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/_graveyard/__init__.py +0 -0
  359. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/_graveyard/tpu.py +0 -0
  360. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/accelerators/__init__.py +0 -0
  361. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/accelerators/accelerator.py +0 -0
  362. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/accelerators/cpu.py +0 -0
  363. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/accelerators/cuda.py +0 -0
  364. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/accelerators/mps.py +0 -0
  365. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/accelerators/registry.py +0 -0
  366. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/accelerators/xla.py +0 -0
  367. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/connector.py +0 -0
  368. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/loggers/__init__.py +0 -0
  369. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/loggers/logger.py +0 -0
  370. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/__init__.py +0 -0
  371. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/collectives/__init__.py +0 -0
  372. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/collectives/collective.py +0 -0
  373. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/collectives/single_device.py +0 -0
  374. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/collectives/torch_collective.py +0 -0
  375. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/environments/__init__.py +0 -0
  376. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/environments/cluster_environment.py +0 -0
  377. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/environments/kubeflow.py +0 -0
  378. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/environments/lightning.py +0 -0
  379. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/environments/lsf.py +0 -0
  380. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/environments/mpi.py +0 -0
  381. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/environments/slurm.py +0 -0
  382. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/environments/torchelastic.py +0 -0
  383. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/environments/xla.py +0 -0
  384. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/io/__init__.py +0 -0
  385. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/io/checkpoint_io.py +0 -0
  386. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/io/torch_io.py +0 -0
  387. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/io/xla.py +0 -0
  388. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/precision/__init__.py +0 -0
  389. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/precision/bitsandbytes.py +0 -0
  390. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/precision/deepspeed.py +0 -0
  391. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/precision/double.py +0 -0
  392. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/precision/fsdp.py +0 -0
  393. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/precision/half.py +0 -0
  394. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/precision/precision.py +0 -0
  395. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/precision/transformer_engine.py +0 -0
  396. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/precision/utils.py +0 -0
  397. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/plugins/precision/xla.py +0 -0
  398. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/__init__.py +0 -0
  399. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/ddp.py +0 -0
  400. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/dp.py +0 -0
  401. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/launchers/__init__.py +0 -0
  402. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/launchers/launcher.py +0 -0
  403. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/launchers/multiprocessing.py +0 -0
  404. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/launchers/subprocess_script.py +0 -0
  405. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/launchers/xla.py +0 -0
  406. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/parallel.py +0 -0
  407. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/registry.py +0 -0
  408. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/single_device.py +0 -0
  409. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/single_xla.py +0 -0
  410. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/strategy.py +0 -0
  411. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/xla.py +0 -0
  412. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/strategies/xla_fsdp.py +0 -0
  413. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/__init__.py +0 -0
  414. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/consolidate_checkpoint.py +0 -0
  415. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/data.py +0 -0
  416. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/device_dtype_mixin.py +0 -0
  417. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/device_parser.py +0 -0
  418. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/distributed.py +0 -0
  419. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/enums.py +0 -0
  420. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/exceptions.py +0 -0
  421. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/load.py +0 -0
  422. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/optimizer.py +0 -0
  423. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/rank_zero.py +0 -0
  424. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/spike.py +0 -0
  425. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/testing/__init__.py +0 -0
  426. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/types.py +0 -0
  427. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/utilities/warnings.py +0 -0
  428. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/fabric/wrappers.py +0 -0
  429. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/py.typed +0 -0
  430. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/_graveyard/__init__.py +0 -0
  431. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/_graveyard/_torchmetrics.py +0 -0
  432. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/_graveyard/hpu.py +0 -0
  433. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/_graveyard/precision.py +0 -0
  434. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/_graveyard/tpu.py +0 -0
  435. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/accelerators/__init__.py +0 -0
  436. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/accelerators/accelerator.py +0 -0
  437. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/accelerators/cpu.py +0 -0
  438. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/accelerators/cuda.py +0 -0
  439. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/accelerators/mps.py +0 -0
  440. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/accelerators/xla.py +0 -0
  441. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/__init__.py +0 -0
  442. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/batch_size_finder.py +0 -0
  443. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/callback.py +0 -0
  444. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/checkpoint.py +0 -0
  445. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/device_stats_monitor.py +0 -0
  446. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/early_stopping.py +0 -0
  447. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/finetuning.py +0 -0
  448. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/gradient_accumulation_scheduler.py +0 -0
  449. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/lambda_function.py +0 -0
  450. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/lr_finder.py +0 -0
  451. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/lr_monitor.py +0 -0
  452. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/model_checkpoint.py +0 -0
  453. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/model_summary.py +0 -0
  454. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/on_exception_checkpoint.py +0 -0
  455. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/prediction_writer.py +0 -0
  456. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/progress/__init__.py +0 -0
  457. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/progress/tqdm_progress.py +0 -0
  458. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/rich_model_summary.py +0 -0
  459. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/spike.py +0 -0
  460. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/throughput_monitor.py +0 -0
  461. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/callbacks/timer.py +0 -0
  462. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/core/__init__.py +0 -0
  463. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/core/hooks.py +0 -0
  464. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/core/mixins/__init__.py +0 -0
  465. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/core/mixins/hparams_mixin.py +0 -0
  466. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/core/optimizer.py +0 -0
  467. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/core/saving.py +0 -0
  468. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/demos/__init__.py +0 -0
  469. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/demos/boring_classes.py +0 -0
  470. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/demos/mnist_datamodule.py +0 -0
  471. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loggers/__init__.py +0 -0
  472. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loggers/comet.py +0 -0
  473. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loggers/logger.py +0 -0
  474. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loggers/mlflow.py +0 -0
  475. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loggers/neptune.py +0 -0
  476. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loggers/utilities.py +0 -0
  477. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loggers/wandb.py +0 -0
  478. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loops/__init__.py +0 -0
  479. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loops/evaluation_loop.py +0 -0
  480. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loops/fetchers.py +0 -0
  481. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loops/fit_loop.py +0 -0
  482. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loops/loop.py +0 -0
  483. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loops/optimization/__init__.py +0 -0
  484. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loops/optimization/automatic.py +0 -0
  485. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loops/optimization/closure.py +0 -0
  486. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loops/optimization/manual.py +0 -0
  487. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loops/prediction_loop.py +0 -0
  488. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loops/progress.py +0 -0
  489. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/loops/training_epoch_loop.py +0 -0
  490. {lightning-2.4.0.dev20240630/src/lightning/app/cli → lightning-2.4.0.dev20240721/src/lightning/pytorch/overrides}/__init__.py +0 -0
  491. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/overrides/distributed.py +0 -0
  492. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/__init__.py +0 -0
  493. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/environments/__init__.py +0 -0
  494. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/io/__init__.py +0 -0
  495. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/io/async_plugin.py +0 -0
  496. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/io/checkpoint_plugin.py +0 -0
  497. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/io/torch_plugin.py +0 -0
  498. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/io/wrapper.py +0 -0
  499. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/io/xla_plugin.py +0 -0
  500. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/layer_sync.py +0 -0
  501. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/precision/__init__.py +0 -0
  502. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/precision/bitsandbytes.py +0 -0
  503. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/precision/double.py +0 -0
  504. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/precision/fsdp.py +0 -0
  505. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/precision/half.py +0 -0
  506. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/precision/precision.py +0 -0
  507. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/precision/transformer_engine.py +0 -0
  508. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/plugins/precision/xla.py +0 -0
  509. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/profilers/__init__.py +0 -0
  510. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/profilers/base.py +0 -0
  511. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/profilers/profiler.py +0 -0
  512. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/profilers/simple.py +0 -0
  513. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/profilers/xla.py +0 -0
  514. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/serve/__init__.py +0 -0
  515. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/serve/servable_module.py +0 -0
  516. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/serve/servable_module_validator.py +0 -0
  517. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/__init__.py +0 -0
  518. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/ddp.py +0 -0
  519. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/deepspeed.py +0 -0
  520. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/launchers/__init__.py +0 -0
  521. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/launchers/launcher.py +0 -0
  522. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/launchers/subprocess_script.py +0 -0
  523. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/launchers/xla.py +0 -0
  524. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/parallel.py +0 -0
  525. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/single_device.py +0 -0
  526. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/single_xla.py +0 -0
  527. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/strategies/xla.py +0 -0
  528. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/__init__.py +0 -0
  529. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/call.py +0 -0
  530. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/configuration_validator.py +0 -0
  531. {lightning-2.4.0.dev20240630/src/lightning/app/cli/app-template/tests → lightning-2.4.0.dev20240721/src/lightning/pytorch/trainer/connectors}/__init__.py +0 -0
  532. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/connectors/accelerator_connector.py +0 -0
  533. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/connectors/callback_connector.py +0 -0
  534. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/connectors/checkpoint_connector.py +0 -0
  535. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/connectors/data_connector.py +0 -0
  536. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/connectors/logger_connector/__init__.py +0 -0
  537. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/connectors/logger_connector/fx_validator.py +0 -0
  538. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/connectors/logger_connector/logger_connector.py +0 -0
  539. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/setup.py +0 -0
  540. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/trainer/states.py +0 -0
  541. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/tuner/__init__.py +0 -0
  542. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/tuner/batch_size_scaling.py +0 -0
  543. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/tuner/lr_finder.py +0 -0
  544. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/tuner/tuning.py +0 -0
  545. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/__init__.py +0 -0
  546. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/argparse.py +0 -0
  547. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/combined_loader.py +0 -0
  548. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/consolidate_checkpoint.py +0 -0
  549. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/data.py +0 -0
  550. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/deepspeed.py +0 -0
  551. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/enums.py +0 -0
  552. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/exceptions.py +0 -0
  553. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/grads.py +0 -0
  554. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/imports.py +0 -0
  555. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/memory.py +0 -0
  556. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/migration/__init__.py +0 -0
  557. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/migration/migration.py +0 -0
  558. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/migration/utils.py +0 -0
  559. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/model_helpers.py +0 -0
  560. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/model_summary/__init__.py +0 -0
  561. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/model_summary/model_summary.py +0 -0
  562. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/model_summary/model_summary_deepspeed.py +0 -0
  563. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/parameter_tying.py +0 -0
  564. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/parsing.py +0 -0
  565. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/rank_zero.py +0 -0
  566. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/seed.py +0 -0
  567. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/signature_utils.py +0 -0
  568. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/testing/__init__.py +0 -0
  569. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/testing/_runif.py +0 -0
  570. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/types.py +0 -0
  571. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/upgrade_checkpoint.py +0 -0
  572. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning/pytorch/utilities/warnings.py +0 -0
  573. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning.egg-info/dependency_links.txt +0 -0
  574. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning.egg-info/not-zip-safe +0 -0
  575. {lightning-2.4.0.dev20240630 → lightning-2.4.0.dev20240721}/src/lightning.egg-info/top_level.txt +0 -0
@@ -14,19 +14,17 @@
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
24
22
  from itertools import chain
25
23
  from os.path import dirname, isfile
26
24
  from pathlib import Path
27
- from typing import Any, Dict, Iterable, Iterator, List, Optional, Sequence, Tuple, Union
25
+ from typing import Any, Dict, Iterable, Iterator, List, Optional, Sequence, Tuple
28
26
 
29
- from pkg_resources import Requirement, parse_requirements, yield_lines
27
+ from packaging.requirements import Requirement
30
28
 
31
29
  REQUIREMENT_FILES = {
32
30
  "pytorch": (
@@ -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",
@@ -87,14 +80,15 @@ class _RequirementWithComment(Requirement):
87
80
  out = str(self)
88
81
  if self.strict:
89
82
  return f"{out} {self.strict_string}"
83
+ specs = [(spec.operator, spec.version) for spec in self.specifier]
90
84
  if unfreeze == "major":
91
- for operator, version in self.specs:
85
+ for operator, version in specs:
92
86
  if operator in ("<", "<="):
93
87
  major = LooseVersion(version).version[0]
94
88
  # replace upper bound with major version increased by one
95
89
  return out.replace(f"{operator}{version}", f"<{major + 1}.0")
96
90
  elif unfreeze == "all":
97
- for operator, version in self.specs:
91
+ for operator, version in specs:
98
92
  if operator in ("<", "<="):
99
93
  # drop upper bound
100
94
  return out.replace(f"{operator}{version},", "")
@@ -103,33 +97,25 @@ class _RequirementWithComment(Requirement):
103
97
  return out
104
98
 
105
99
 
106
- def _parse_requirements(strs: Union[str, Iterable[str]]) -> Iterator[_RequirementWithComment]:
100
+ def _parse_requirements(lines: Iterable[str]) -> Iterator[_RequirementWithComment]:
107
101
  """Adapted from `pkg_resources.parse_requirements` to include comments.
108
102
 
109
103
  >>> txt = ['# ignored', '', 'this # is an', '--piparg', 'example', 'foo # strict', 'thing', '-r different/file.txt']
110
104
  >>> [r.adjust('none') for r in _parse_requirements(txt)]
111
105
  ['this', 'example', 'foo # strict', 'thing']
112
- >>> txt = '\\n'.join(txt)
113
- >>> [r.adjust('none') for r in _parse_requirements(txt)]
114
- ['this', 'example', 'foo # strict', 'thing']
115
106
 
116
107
  """
117
- lines = yield_lines(strs)
118
108
  pip_argument = None
119
109
  for line in lines:
110
+ line = line.strip()
111
+ if not line or line.startswith("#"):
112
+ continue
120
113
  # Drop comments -- a hash without a space may be in a URL.
121
114
  if " #" in line:
122
115
  comment_pos = line.find(" #")
123
116
  line, comment = line[:comment_pos], line[comment_pos:]
124
117
  else:
125
118
  comment = ""
126
- # If there is a line continuation, drop it, and append the next line.
127
- if line.endswith("\\"):
128
- line = line[:-2].strip()
129
- try:
130
- line += next(lines)
131
- except StopIteration:
132
- return
133
119
  # If there's a pip argument, save it
134
120
  if line.startswith("--"):
135
121
  pip_argument = line
@@ -155,7 +141,7 @@ def load_requirements(path_dir: str, file_name: str = "base.txt", unfreeze: str
155
141
  logging.warning(f"Folder {path_dir} does not have any base requirements.")
156
142
  return []
157
143
  assert path.exists(), (path_dir, file_name, path)
158
- text = path.read_text()
144
+ text = path.read_text().splitlines()
159
145
  return [req.adjust(unfreeze) for req in _parse_requirements(text)]
160
146
 
161
147
 
@@ -216,30 +202,6 @@ def distribute_version(src_folder: str, ver_file: str = "version.info") -> None:
216
202
  shutil.copy2(ver_template, fpath)
217
203
 
218
204
 
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
205
  def _load_aggregate_requirements(req_dir: str = "requirements", freeze_requirements: bool = False) -> None:
244
206
  """Load all base requirements from all particular packages and prune duplicates.
245
207
 
@@ -399,7 +361,7 @@ class AssistantCLI:
399
361
  if not ln_ or ln_.startswith("#"):
400
362
  final.append(line)
401
363
  continue
402
- req = list(parse_requirements(ln_))[0]
364
+ req = list(_parse_requirements([ln_]))[0]
403
365
  if req.name not in packages:
404
366
  final.append(line)
405
367
  print(final)
@@ -466,7 +428,7 @@ class AssistantCLI:
466
428
  raise RuntimeError(f"Requesting file '{zip_url}' does not exist or it is just unavailable.")
467
429
 
468
430
  with zipfile.ZipFile(zip_file, "r") as zip_ref:
469
- zip_ref.extractall(tmp) # noqa: S202
431
+ zip_ref.extractall(tmp)
470
432
 
471
433
  zip_dirs = [d for d in glob.glob(os.path.join(tmp, "*")) if os.path.isdir(d)]
472
434
  # 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.dev20240721
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,48 +21,35 @@ 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">
64
51
 
65
- <img alt="Lightning" src="https://pl-public-data.s3.amazonaws.com/assets_lightning/LightningColor.png" width="800px" style="max-width: 100%;">
52
+ <img alt="Lightning" src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/ptl_banner.png" width="800px" style="max-width: 100%;">
66
53
 
67
54
  <br/>
68
55
  <br/>
@@ -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.dev20240721">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,13 @@ ______________________________________________________________________
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
+ | [Text summarization](https://lightning.ai/lightning-ai/studios/text-summarization-with-pytorch-lightning) | Finetune - text summarization (Hugging Face transformer model) | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/text-summarization-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> |
150
+ | [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
151
 
163
152
  ### Hello simple model
164
153
 
@@ -594,7 +583,7 @@ Lightning is rigorously tested across multiple CPUs, GPUs and TPUs and against m
594
583
 
595
584
  | System / PyTorch ver. | 1.13 | 2.0 | 2.1 |
596
585
  | :--------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
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) |
586
+ | 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.dev20240721)](https://dev.azure.com/Lightning-AI/lightning/_build/latest?definitionId=24&branchName=master) |
598
587
  | 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
588
  | 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
589
  | 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) |
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
2
 
3
- <img alt="Lightning" src="https://pl-public-data.s3.amazonaws.com/assets_lightning/LightningColor.png" width="800px" style="max-width: 100%;">
3
+ <img alt="Lightning" src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/ptl_banner.png" width="800px" style="max-width: 100%;">
4
4
 
5
5
  <br/>
6
6
  <br/>
@@ -133,11 +133,13 @@ ______________________________________________________________________
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
+ | [Text summarization](https://lightning.ai/lightning-ai/studios/text-summarization-with-pytorch-lightning) | Finetune - text summarization (Hugging Face transformer model) | <a target="_blank" href="https://lightning.ai/lightning-ai/studios/text-summarization-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> |
142
+ | [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
143
 
142
144
  ### Hello simple model
143
145
 
@@ -16,6 +16,7 @@
16
16
  requires = [
17
17
  "setuptools",
18
18
  "wheel",
19
+ "packaging",
19
20
  ]
20
21
 
21
22
 
@@ -134,14 +135,7 @@ max-complexity = 10
134
135
  files = [
135
136
  "src/lightning",
136
137
  ]
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
- ]
138
+
145
139
  install_types = "True"
146
140
  non_interactive = "True"
147
141
  disallow_untyped_defs = "True"
@@ -156,100 +150,6 @@ disable_error_code = "attr-defined"
156
150
  # style choices
157
151
  warn_no_return = "False"
158
152
 
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
153
 
254
154
  [tool.coverage.report]
255
155
  exclude_lines = [
@@ -1,9 +1,8 @@
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
5
4
  packaging<24.0,>=20.0
6
- torch<3.0,>=2.0.0
5
+ torch<3.0,>=2.1.0
7
6
  torchmetrics<2.0,>=0.7.0
8
7
  tqdm<5.0,>=4.57.0
9
8
  typing-extensions<5.0,>=4.4.0
@@ -1,8 +1,7 @@
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
+ torch >=2.1.0, <2.5.0
6
5
  fsspec[http] >=2022.5.0, <2024.4.0
7
6
  packaging >=20.0, <=23.1
8
7
  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,4 +1,5 @@
1
1
  coverage ==7.3.1
2
+ numpy >=1.17.2, <1.27.0
2
3
  pytest ==7.4.0
3
4
  pytest-cov ==4.1.0
4
5
  pytest-timeout ==2.1.0
@@ -1,8 +1,7 @@
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
+ torch >=2.1.0, <2.5.0
6
5
  tqdm >=4.57.0, <4.67.0
7
6
  PyYAML >=5.4, <6.1.0
8
7
  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,9 @@ 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
+ numpy >=1.17.2, <1.27.0
12
+ onnx >=1.12.0, <1.17.0
13
+ onnxruntime >=1.12.0, <1.19.0
13
14
  psutil <5.9.6 # for `DeviceStatsMonitor`
14
15
  pandas >1.0, <2.2.0 # needed in benchmarks
15
16
  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()
@@ -5,7 +5,7 @@ from pathlib import Path
5
5
  from types import ModuleType
6
6
  from typing import Any, Dict
7
7
 
8
- from setuptools import find_packages
8
+ from setuptools import find_namespace_packages
9
9
 
10
10
  _PROJECT_ROOT = "."
11
11
  _SOURCE_ROOT = os.path.join(_PROJECT_ROOT, "src")
@@ -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(
@@ -102,19 +87,18 @@ def _setup_args() -> Dict[str, Any]:
102
87
  "url": about.__homepage__,
103
88
  "download_url": "https://github.com/Lightning-AI/lightning",
104
89
  "license": about.__license__,
105
- "packages": find_packages(where="src", include=["lightning", "lightning.*"]),
90
+ "packages": find_namespace_packages(where="src", include=["lightning", "lightning.*"]),
106
91
  "package_dir": {"": "src"},
107
92
  "long_description": long_description,
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
  }