weightslab 1.4.2__tar.gz → 2.0.0__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 (602) hide show
  1. {weightslab-1.4.2 → weightslab-2.0.0}/.github/workflows/release.yml +34 -1
  2. {weightslab-1.4.2 → weightslab-2.0.0}/.gitignore +4 -1
  3. {weightslab-1.4.2 → weightslab-2.0.0}/AGENTS.md +32 -0
  4. weightslab-2.0.0/CHANGELOG.md +1 -0
  5. {weightslab-1.4.2/weightslab.egg-info → weightslab-2.0.0}/PKG-INFO +31 -12
  6. {weightslab-1.4.2 → weightslab-2.0.0}/README.md +20 -8
  7. weightslab-2.0.0/agent_config.yaml +23 -0
  8. weightslab-2.0.0/docs/_scripts/update_whats_new.py +254 -0
  9. weightslab-2.0.0/docs/_static/code-copy.js +124 -0
  10. {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/custom.css +232 -0
  11. {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/examples-gallery.js +7 -0
  12. weightslab-2.0.0/docs/_static/screenshots/README.md +17 -0
  13. weightslab-2.0.0/docs/_static/screenshots/agent-bar.png +0 -0
  14. weightslab-2.0.0/docs/_static/screenshots/agent-window.png +0 -0
  15. weightslab-2.0.0/docs/_static/screenshots/bottom-bar.png +0 -0
  16. weightslab-2.0.0/docs/_static/screenshots/data-grid.png +0 -0
  17. weightslab-2.0.0/docs/_static/screenshots/evaluate-popover.png +0 -0
  18. weightslab-2.0.0/docs/_static/screenshots/export-annotations.png +0 -0
  19. weightslab-2.0.0/docs/_static/screenshots/header-bar.png +0 -0
  20. weightslab-2.0.0/docs/_static/screenshots/image-detail-modal.png +0 -0
  21. weightslab-2.0.0/docs/_static/screenshots/landing-page.png +0 -0
  22. weightslab-2.0.0/docs/_static/screenshots/left-panel-details.png +0 -0
  23. weightslab-2.0.0/docs/_static/screenshots/left-panel-hyperparameters.png +0 -0
  24. weightslab-2.0.0/docs/_static/screenshots/left-panel-tags-painter.png +0 -0
  25. weightslab-2.0.0/docs/_static/screenshots/left-panel-training.png +0 -0
  26. weightslab-2.0.0/docs/_static/screenshots/list-exploration.png +0 -0
  27. weightslab-2.0.0/docs/_static/screenshots/media-player.png +0 -0
  28. weightslab-2.0.0/docs/_static/screenshots/modal-overlays.png +0 -0
  29. weightslab-2.0.0/docs/_static/screenshots/mode-selector.png +0 -0
  30. weightslab-2.0.0/docs/_static/screenshots/notebook-panel.png +0 -0
  31. weightslab-2.0.0/docs/_static/screenshots/plot-error-band.png +0 -0
  32. weightslab-2.0.0/docs/_static/screenshots/plot-merge.png +0 -0
  33. weightslab-2.0.0/docs/_static/screenshots/plot-search.png +0 -0
  34. weightslab-2.0.0/docs/_static/screenshots/plots-board.png +0 -0
  35. weightslab-2.0.0/docs/_static/screenshots/pointcloud-viewer.png +0 -0
  36. weightslab-2.0.0/docs/_static/screenshots/quick-filters.png +0 -0
  37. weightslab-2.0.0/docs/_static/screenshots/refresh-config.png +0 -0
  38. weightslab-2.0.0/docs/_static/screenshots/report-button.png +0 -0
  39. weightslab-2.0.0/docs/_static/screenshots/resource-signals.png +0 -0
  40. weightslab-2.0.0/docs/_static/screenshots/selection-context-menu.png +0 -0
  41. weightslab-2.0.0/docs/_static/screenshots/tagging-modal.png +0 -0
  42. weightslab-2.0.0/docs/_static/screenshots/training-controls.png +0 -0
  43. {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/version-switcher.js +46 -6
  44. {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/wl-topnav.js +9 -0
  45. weightslab-2.0.0/docs/agent.rst +570 -0
  46. weightslab-2.0.0/docs/build_docs.sh +72 -0
  47. {weightslab-1.4.2 → weightslab-2.0.0}/docs/checkpointing.rst +2 -2
  48. {weightslab-1.4.2 → weightslab-2.0.0}/docs/conf.py +18 -1
  49. {weightslab-1.4.2 → weightslab-2.0.0}/docs/configuration.rst +131 -79
  50. weightslab-2.0.0/docs/data_exploration.rst +134 -0
  51. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/index.rst +8 -0
  52. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/usecases/index.rst +2 -1
  53. weightslab-2.0.0/docs/examples/usecases/model_signals.rst +162 -0
  54. weightslab-2.0.0/docs/experiment_reports.rst +333 -0
  55. weightslab-2.0.0/docs/export.rst +137 -0
  56. weightslab-2.0.0/docs/four_way_approach.rst +144 -0
  57. {weightslab-1.4.2 → weightslab-2.0.0}/docs/grpc/audit_logger.rst +1 -1
  58. {weightslab-1.4.2 → weightslab-2.0.0}/docs/grpc/grpc_functions.rst +1 -1
  59. {weightslab-1.4.2 → weightslab-2.0.0}/docs/grpc/index.rst +1 -1
  60. weightslab-2.0.0/docs/hyperparameters.rst +151 -0
  61. weightslab-2.0.0/docs/index.rst +179 -0
  62. weightslab-2.0.0/docs/logger.rst +202 -0
  63. weightslab-2.0.0/docs/migration/from_3lc.rst +196 -0
  64. weightslab-2.0.0/docs/migration/from_tensorboard.rst +176 -0
  65. weightslab-2.0.0/docs/migration/from_voxel51.rst +197 -0
  66. weightslab-2.0.0/docs/migration/from_wandb.rst +193 -0
  67. weightslab-2.0.0/docs/migration/index.rst +70 -0
  68. weightslab-2.0.0/docs/model_interaction.rst +298 -0
  69. weightslab-2.0.0/docs/notebooks.rst +100 -0
  70. weightslab-2.0.0/docs/quickstart.rst +217 -0
  71. weightslab-2.0.0/docs/resource_monitoring.rst +196 -0
  72. weightslab-1.4.2/docs/usage/good_practice.rst → weightslab-2.0.0/docs/usage/good_practice/data_and_loaders.rst +6 -81
  73. weightslab-2.0.0/docs/usage/good_practice/index.rst +24 -0
  74. weightslab-2.0.0/docs/usage/good_practice/signals.rst +60 -0
  75. weightslab-2.0.0/docs/usage/good_practice/training_loop.rst +62 -0
  76. {weightslab-1.4.2 → weightslab-2.0.0}/docs/usage/parameters.rst +11 -20
  77. weightslab-2.0.0/docs/usage.rst +18 -0
  78. {weightslab-1.4.2 → weightslab-2.0.0}/docs/user_commands.rst +86 -11
  79. {weightslab-1.4.2 → weightslab-2.0.0}/docs/user_functions.rst +736 -16
  80. weightslab-2.0.0/docs/weights_studio/agent.rst +115 -0
  81. weightslab-2.0.0/docs/weights_studio/cli_console.rst +42 -0
  82. weightslab-2.0.0/docs/weights_studio/configuration.rst +74 -0
  83. weightslab-2.0.0/docs/weights_studio/data_board.rst +96 -0
  84. weightslab-2.0.0/docs/weights_studio/deployment.rst +72 -0
  85. weightslab-2.0.0/docs/weights_studio/detail_modal.rst +56 -0
  86. weightslab-2.0.0/docs/weights_studio/header_bar.rst +96 -0
  87. weightslab-2.0.0/docs/weights_studio/index.rst +97 -0
  88. weightslab-2.0.0/docs/weights_studio/landing_page.rst +29 -0
  89. weightslab-2.0.0/docs/weights_studio/left_panel.rst +84 -0
  90. weightslab-2.0.0/docs/weights_studio/notebook.rst +119 -0
  91. weightslab-2.0.0/docs/weights_studio/plots.rst +69 -0
  92. weightslab-2.0.0/docs/weights_studio/ports.rst +243 -0
  93. weightslab-2.0.0/docs/weights_studio/reports.rst +72 -0
  94. weightslab-2.0.0/docs/weights_studio/resource_monitoring.rst +140 -0
  95. weightslab-2.0.0/docs/weights_studio/security.rst +47 -0
  96. weightslab-2.0.0/docs/weights_studio/troubleshooting.rst +13 -0
  97. weightslab-2.0.0/docs/whats_new.rst +248 -0
  98. weightslab-2.0.0/opencode.json +10 -0
  99. {weightslab-1.4.2 → weightslab-2.0.0}/pyproject.toml +51 -4
  100. weightslab-2.0.0/resource_monitoring.yaml +39 -0
  101. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_cli.py +84 -0
  102. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_cli_additional_unit.py +8 -10
  103. weightslab-2.0.0/tests/backend/test_export_annotations_api.py +62 -0
  104. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_instance_signal_logger.py +109 -0
  105. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_logger_core.py +226 -12
  106. weightslab-2.0.0/tests/backend/test_logger_scale.py +513 -0
  107. weightslab-2.0.0/tests/backend/test_signal_outliers.py +574 -0
  108. weightslab-2.0.0/tests/data/test_video_utils.py +316 -0
  109. weightslab-2.0.0/tests/export/test_collect.py +247 -0
  110. weightslab-2.0.0/tests/export/test_exporter.py +86 -0
  111. weightslab-2.0.0/tests/export/test_formats.py +142 -0
  112. weightslab-2.0.0/tests/gRPC/test_get_media.py +434 -0
  113. {weightslab-1.4.2 → weightslab-2.0.0}/tests/gRPC/test_get_point_cloud.py +83 -0
  114. {weightslab-1.4.2 → weightslab-2.0.0}/tests/gRPC/test_grpc_user_actions.py +6 -3
  115. weightslab-2.0.0/tests/general/test_cli_export.py +141 -0
  116. weightslab-2.0.0/tests/general/test_four_way_standalone.py +599 -0
  117. weightslab-2.0.0/tests/general/test_model_signals.py +230 -0
  118. weightslab-2.0.0/tests/monitoring/test_resource_monitor.py +360 -0
  119. weightslab-2.0.0/tests/test_opencode_process.py +219 -0
  120. weightslab-2.0.0/tests/test_opencode_shared_server_integration.py +164 -0
  121. weightslab-2.0.0/tests/test_report_entrypoints.py +329 -0
  122. weightslab-2.0.0/tests/test_reporting.py +587 -0
  123. {weightslab-1.4.2 → weightslab-2.0.0}/tests/test_src_functions.py +80 -6
  124. {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_agent_live_prompt_evaluation.py +37 -46
  125. {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_agent_model_and_safety_unit.py +11 -70
  126. weightslab-2.0.0/tests/trainer/services/test_agent_opencode_provider.py +448 -0
  127. {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_agent_prompt_unit.py +52 -78
  128. weightslab-2.0.0/tests/trainer/services/test_agent_service_unit.py +185 -0
  129. weightslab-2.0.0/tests/trainer/services/test_data_service_step_snapshot.py +110 -0
  130. weightslab-2.0.0/tests/trainer/services/test_notebook_service_unit.py +488 -0
  131. weightslab-2.0.0/tests/trainer/services/test_opencode_chat.py +448 -0
  132. {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_trainer_services_server.py +92 -0
  133. {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_trainer_services_unit.py +335 -3
  134. weightslab-2.0.0/tests/ui/fake_opencode.py +261 -0
  135. weightslab-2.0.0/tests/ui/test_server_agent.py +550 -0
  136. weightslab-2.0.0/tests/ui/test_server_data_query.py +211 -0
  137. weightslab-2.0.0/tests/ui/test_server_experiment_reports.py +132 -0
  138. weightslab-2.0.0/tests/ui/test_server_loop.py +487 -0
  139. weightslab-2.0.0/tests/ui/test_server_opencode_wire.py +361 -0
  140. weightslab-2.0.0/tests/ui/test_server_shutdown_signals.py +151 -0
  141. weightslab-2.0.0/tests/ui/test_server_tracked_processes.py +235 -0
  142. weightslab-2.0.0/weightslab/AGENTS.md +413 -0
  143. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/__init__.py +9 -3
  144. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/_version.py +3 -3
  145. weightslab-2.0.0/weightslab/assets/chart.umd.min.js +14 -0
  146. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/cli.py +273 -150
  147. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/dataloader_interface.py +19 -22
  148. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/ledgers.py +12 -1
  149. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/logger.py +981 -67
  150. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/model_interface.py +69 -1
  151. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/cli.py +251 -18
  152. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/checkpoint_manager.py +112 -1
  153. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/experiment_hash.py +6 -2
  154. weightslab-2.0.0/weightslab/components/experiment_naming.py +33 -0
  155. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/global_monitoring.py +49 -3
  156. weightslab-2.0.0/weightslab/components/model_signals.py +492 -0
  157. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/data_samples_with_ops.py +80 -0
  158. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/data_utils.py +78 -3
  159. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/dataframe_manager.py +158 -0
  160. weightslab-2.0.0/weightslab/data/media_store.py +219 -0
  161. weightslab-2.0.0/weightslab/data/video_utils.py +475 -0
  162. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Colab/wl-colab-quickstart.ipynb +12 -3
  163. weightslab-2.0.0/weightslab/examples/Notebooks/Local/wl-local-studio-quickstart.ipynb +93 -0
  164. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/wl-ads-recommendation.ipynb +24 -25
  165. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/wl-classification.ipynb +33 -76
  166. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/wl-clustering.ipynb +236 -243
  167. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/wl-detection.ipynb +362 -358
  168. weightslab-2.0.0/weightslab/examples/Notebooks/PyTorch/wl-fraud-detection.ipynb +588 -0
  169. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/wl-segmentation.ipynb +40 -37
  170. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/ws-classification.ipynb +35 -30
  171. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/ws-clustering.ipynb +6 -24
  172. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/ws-detection.ipynb +6 -24
  173. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/ws-generation.ipynb +6 -24
  174. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/ws-segmentation.ipynb +6 -24
  175. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-brain-tumor-detection-dataset.ipynb +5 -8
  176. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-carparts-segmentation-dataset.ipynb +377 -376
  177. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-construction-ppe-detection-dataset.ipynb +360 -359
  178. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-crack-segmentation-dataset.ipynb +378 -377
  179. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-homeobjects-dataset.ipynb +360 -359
  180. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-kitti-detection-dataset.ipynb +360 -359
  181. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-medical-pills-dataset.ipynb +381 -380
  182. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-package-segmentation-dataset.ipynb +378 -377
  183. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Usecases/wl-segmentation-loss-shapes-classification.ipynb +24 -17
  184. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Usecases/ws-segmentation-loss-shapes-classification.ipynb +26 -24
  185. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/main.py +10 -4
  186. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-classification/config.yaml +8 -5
  187. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-classification/main.py +13 -7
  188. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-detection/main.py +1 -2
  189. weightslab-2.0.0/weightslab/examples/PyTorch/wl-detection/utils/data.py +226 -0
  190. weightslab-2.0.0/weightslab/examples/PyTorch/wl-detection-relabeling/README.md +95 -0
  191. weightslab-2.0.0/weightslab/examples/PyTorch/wl-detection-relabeling/config.yaml +29 -0
  192. weightslab-2.0.0/weightslab/examples/PyTorch/wl-detection-relabeling/main.py +107 -0
  193. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/main.py +10 -4
  194. {weightslab-1.4.2/weightslab/examples/PyTorch/wl-generation → weightslab-2.0.0/weightslab/examples/PyTorch/wl-image-generation}/config.yaml +1 -1
  195. {weightslab-1.4.2/weightslab/examples/PyTorch/wl-generation → weightslab-2.0.0/weightslab/examples/PyTorch/wl-image-generation}/main.py +9 -3
  196. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/config.yaml +1 -1
  197. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/main.py +1 -2
  198. weightslab-2.0.0/weightslab/examples/PyTorch/wl-standalone-config/config.yaml +21 -0
  199. weightslab-2.0.0/weightslab/examples/PyTorch/wl-standalone-config/main.py +178 -0
  200. weightslab-2.0.0/weightslab/examples/PyTorch/wl-standalone-data/main.py +206 -0
  201. weightslab-2.0.0/weightslab/examples/PyTorch/wl-standalone-logger/main.py +219 -0
  202. weightslab-2.0.0/weightslab/examples/PyTorch/wl-standalone-model/main.py +277 -0
  203. weightslab-2.0.0/weightslab/examples/PyTorch/wl-video-generation/README.md +147 -0
  204. weightslab-2.0.0/weightslab/examples/PyTorch/wl-video-generation/config.yaml +58 -0
  205. weightslab-2.0.0/weightslab/examples/PyTorch/wl-video-generation/main.py +364 -0
  206. weightslab-2.0.0/weightslab/examples/PyTorch/wl-video-generation/utils/data.py +357 -0
  207. weightslab-2.0.0/weightslab/examples/PyTorch/wl-video-generation/utils/model.py +187 -0
  208. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Ultralytics/wl-detection/config.yaml +2 -1
  209. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/main.py +1 -2
  210. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/config.yaml +0 -1
  211. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/main.py +27 -23
  212. weightslab-2.0.0/weightslab/examples/Usecases/wl-fashion-mnist-signals/config.yaml +44 -0
  213. weightslab-2.0.0/weightslab/examples/Usecases/wl-fashion-mnist-signals/main.py +446 -0
  214. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/ws-signals-mnist/main.py +23 -17
  215. weightslab-2.0.0/weightslab/export/__init__.py +16 -0
  216. weightslab-2.0.0/weightslab/export/collect.py +331 -0
  217. weightslab-2.0.0/weightslab/export/exporter.py +87 -0
  218. weightslab-2.0.0/weightslab/export/formats/cvat.py +56 -0
  219. weightslab-2.0.0/weightslab/export/formats/label_studio.py +61 -0
  220. weightslab-2.0.0/weightslab/export/formats/v7_darwin.py +70 -0
  221. weightslab-2.0.0/weightslab/export/models.py +35 -0
  222. weightslab-2.0.0/weightslab/monitoring/__init__.py +18 -0
  223. weightslab-2.0.0/weightslab/monitoring/resource_monitor.py +470 -0
  224. weightslab-2.0.0/weightslab/opencode.json +4 -0
  225. weightslab-2.0.0/weightslab/opencode_process.py +458 -0
  226. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/proto/experiment_service.proto +345 -2
  227. weightslab-2.0.0/weightslab/proto/experiment_service_pb2.py +262 -0
  228. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/proto/experiment_service_pb2_grpc.py +635 -0
  229. weightslab-2.0.0/weightslab/reporting.py +1887 -0
  230. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/src.py +869 -80
  231. weightslab-2.0.0/weightslab/trainer/services/__init__.py +0 -0
  232. weightslab-2.0.0/weightslab/trainer/services/agent/__init__.py +0 -0
  233. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/agent/agent.py +378 -311
  234. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/agent/intent_prompt.py +72 -0
  235. weightslab-2.0.0/weightslab/trainer/services/agent/notebook_prompt.py +54 -0
  236. weightslab-2.0.0/weightslab/trainer/services/agent/opencode_chat.py +373 -0
  237. weightslab-2.0.0/weightslab/trainer/services/agent/report_prompt.py +65 -0
  238. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/agent_service.py +68 -7
  239. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/data_service.py +816 -45
  240. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/experiment_service.py +318 -53
  241. weightslab-2.0.0/weightslab/trainer/services/notebook_service.py +1099 -0
  242. weightslab-2.0.0/weightslab/trainer/services/utils/__init__.py +0 -0
  243. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/utils/tools.py +6 -1
  244. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/trainer_services.py +100 -4
  245. weightslab-2.0.0/weightslab/ui/server.py +2502 -0
  246. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  247. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  248. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  249. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  250. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  251. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  252. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  253. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  254. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  255. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  256. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  257. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  258. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  259. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  260. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  261. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  262. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  263. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  264. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  265. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  266. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  267. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  268. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  269. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  270. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  271. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  272. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  273. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  274. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  275. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  276. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  277. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  278. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  279. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  280. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  281. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  282. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  283. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  284. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  285. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  286. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  287. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  288. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  289. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  290. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  291. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  292. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  293. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  294. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  295. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  296. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  297. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  298. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  299. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  300. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  301. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  302. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  303. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  304. weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  305. weightslab-1.4.2/weightslab/ui/static/assets/experiment_service-DQrh-y3X.js → weightslab-2.0.0/weightslab/ui/static/assets/experiment_service-D5Hvut2A.js +1 -1
  306. weightslab-2.0.0/weightslab/ui/static/assets/index-DSQEvsQq.js +5518 -0
  307. weightslab-2.0.0/weightslab/ui/static/assets/index-fwUoZNsu.css +1 -0
  308. weightslab-2.0.0/weightslab/ui/static/images/darkmode/logo.png +0 -0
  309. weightslab-2.0.0/weightslab/ui/static/images/favicon.png +0 -0
  310. weightslab-2.0.0/weightslab/ui/static/images/lightmode/logo.png +0 -0
  311. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/static/index.html +253 -23
  312. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/utils/sync-frontend.sh +1 -1
  313. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/tools.py +20 -0
  314. {weightslab-1.4.2 → weightslab-2.0.0/weightslab.egg-info}/PKG-INFO +31 -12
  315. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab.egg-info/SOURCES.txt +205 -7
  316. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab.egg-info/requires.txt +11 -3
  317. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab.egg-info/scm_file_list.json +433 -294
  318. weightslab-2.0.0/weightslab.egg-info/scm_version.json +8 -0
  319. weightslab-1.4.2/CHANGELOG.md +0 -1
  320. weightslab-1.4.2/agent_config.yaml +0 -28
  321. weightslab-1.4.2/docs/agent.rst +0 -650
  322. weightslab-1.4.2/docs/data_exploration.rst +0 -60
  323. weightslab-1.4.2/docs/four_way_approach.rst +0 -58
  324. weightslab-1.4.2/docs/hyperparameters.rst +0 -53
  325. weightslab-1.4.2/docs/index.rst +0 -164
  326. weightslab-1.4.2/docs/logger.rst +0 -251
  327. weightslab-1.4.2/docs/model_interaction.rst +0 -44
  328. weightslab-1.4.2/docs/quickstart.rst +0 -188
  329. weightslab-1.4.2/docs/usage.rst +0 -18
  330. weightslab-1.4.2/docs/weights_studio.rst +0 -425
  331. weightslab-1.4.2/tests/trainer/services/test_agent_service_unit.py +0 -104
  332. weightslab-1.4.2/weightslab/examples/Notebooks/PyTorch/wl-fraud-detection.ipynb +0 -232
  333. weightslab-1.4.2/weightslab/proto/experiment_service_pb2.py +0 -204
  334. weightslab-1.4.2/weightslab/ui/server.py +0 -561
  335. weightslab-1.4.2/weightslab/ui/static/assets/index-BL7NV5ej.css +0 -1
  336. weightslab-1.4.2/weightslab/ui/static/assets/index-DhU_F1Hm.js +0 -4475
  337. weightslab-1.4.2/weightslab.egg-info/scm_version.json +0 -8
  338. {weightslab-1.4.2 → weightslab-2.0.0}/.coverage +0 -0
  339. {weightslab-1.4.2 → weightslab-2.0.0}/.gitattributes +0 -0
  340. {weightslab-1.4.2 → weightslab-2.0.0}/.github/workflows/ci.yml +0 -0
  341. {weightslab-1.4.2 → weightslab-2.0.0}/.github/workflows/docs-pages.yml +0 -0
  342. {weightslab-1.4.2 → weightslab-2.0.0}/LICENSE +0 -0
  343. {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/.gitkeep +0 -0
  344. {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/favicon.png +0 -0
  345. {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/github-stars.js +0 -0
  346. {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/logo-dark.png +0 -0
  347. {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/logo-light.png +0 -0
  348. {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/weights_studio_architecture.png +0 -0
  349. {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/wl-ribbon.js +0 -0
  350. {weightslab-1.4.2 → weightslab-2.0.0}/docs/_templates/.gitkeep +0 -0
  351. {weightslab-1.4.2 → weightslab-2.0.0}/docs/_templates/sidebar/brand.html +0 -0
  352. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/lightning/classification.rst +0 -0
  353. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/lightning/index.rst +0 -0
  354. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/pytorch/classification.rst +0 -0
  355. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/pytorch/clustering.rst +0 -0
  356. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/pytorch/detection.rst +0 -0
  357. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/pytorch/generation.rst +0 -0
  358. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/pytorch/index.rst +0 -0
  359. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/pytorch/segmentation.rst +0 -0
  360. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/ultralytics/detection.rst +0 -0
  361. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/ultralytics/index.rst +0 -0
  362. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/usecases/lidar_detection.rst +0 -0
  363. {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/usecases/loss_shape_classification.rst +0 -0
  364. {weightslab-1.4.2 → weightslab-2.0.0}/docs/pytorch_lightning.rst +0 -0
  365. {weightslab-1.4.2 → weightslab-2.0.0}/docs/requirements.txt +0 -0
  366. {weightslab-1.4.2 → weightslab-2.0.0}/docs/segmentation_usecase.rst +0 -0
  367. {weightslab-1.4.2 → weightslab-2.0.0}/docs/ultralytics.rst +0 -0
  368. {weightslab-1.4.2 → weightslab-2.0.0}/docs/usecases.rst +0 -0
  369. {weightslab-1.4.2 → weightslab-2.0.0}/setup.cfg +0 -0
  370. {weightslab-1.4.2 → weightslab-2.0.0}/tests/__init__.py +0 -0
  371. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/__init__.py +0 -0
  372. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_audit_logger.py +0 -0
  373. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_compare_dataloaders.py +0 -0
  374. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_data_loader_interface.py +0 -0
  375. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_ledgers.py +0 -0
  376. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_model_interface_unit.py +0 -0
  377. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_optimizer_interface.py +0 -0
  378. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_optimizer_interface_additional_unit.py +0 -0
  379. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_tunnel.py +0 -0
  380. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_write_dataframe.py +0 -0
  381. {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_write_history.py +0 -0
  382. {weightslab-1.4.2 → weightslab-2.0.0}/tests/chaos_monkeys_utests/__init__.py +0 -0
  383. {weightslab-1.4.2 → weightslab-2.0.0}/tests/chaos_monkeys_utests/test_grpc_chaos_monkey_robustness.py +0 -0
  384. {weightslab-1.4.2 → weightslab-2.0.0}/tests/components/__init__.py +0 -0
  385. {weightslab-1.4.2 → weightslab-2.0.0}/tests/components/test_checkpoint_workflow.py +0 -0
  386. {weightslab-1.4.2 → weightslab-2.0.0}/tests/components/test_experiment_hash_and_art.py +0 -0
  387. {weightslab-1.4.2 → weightslab-2.0.0}/tests/components/test_global_monitoring_unit.py +0 -0
  388. {weightslab-1.4.2/tests/gRPC → weightslab-2.0.0/tests/export}/__init__.py +0 -0
  389. {weightslab-1.4.2/tests/general → weightslab-2.0.0/tests/gRPC}/__init__.py +0 -0
  390. {weightslab-1.4.2 → weightslab-2.0.0}/tests/gRPC/test_grpc_histogram_categorical.py +0 -0
  391. {weightslab-1.4.2 → weightslab-2.0.0}/tests/gRPC/test_grpc_tag_operations.py +0 -0
  392. {weightslab-1.4.2/tests/integrations → weightslab-2.0.0/tests/general}/__init__.py +0 -0
  393. {weightslab-1.4.2 → weightslab-2.0.0}/tests/general/test_auditor_mode.py +0 -0
  394. {weightslab-1.4.2 → weightslab-2.0.0}/tests/general/test_cli.py +0 -0
  395. {weightslab-1.4.2 → weightslab-2.0.0}/tests/general/test_hyperparams.py +0 -0
  396. {weightslab-1.4.2 → weightslab-2.0.0}/tests/general/test_signal_refinements.py +0 -0
  397. {weightslab-1.4.2 → weightslab-2.0.0}/tests/general/test_signals.py +0 -0
  398. {weightslab-1.4.2 → weightslab-2.0.0}/tests/general/test_signals_wrapping.py +0 -0
  399. {weightslab-1.4.2/tests/model → weightslab-2.0.0/tests/integrations}/__init__.py +0 -0
  400. {weightslab-1.4.2 → weightslab-2.0.0}/tests/integrations/test_pytorch_lightning_integration.py +0 -0
  401. {weightslab-1.4.2 → weightslab-2.0.0}/tests/integrations/ultralytics/ddp/ddp_ablation.py +0 -0
  402. {weightslab-1.4.2 → weightslab-2.0.0}/tests/integrations/ultralytics/ddp/ddp_test_suite.py +0 -0
  403. {weightslab-1.4.2/tests/modules → weightslab-2.0.0/tests/model}/__init__.py +0 -0
  404. {weightslab-1.4.2 → weightslab-2.0.0}/tests/model/test_constraint_generation.py +0 -0
  405. {weightslab-1.4.2 → weightslab-2.0.0}/tests/model/test_dependency_patterns.py +0 -0
  406. {weightslab-1.4.2 → weightslab-2.0.0}/tests/model/test_logger.py +0 -0
  407. {weightslab-1.4.2 → weightslab-2.0.0}/tests/model/test_model_with_ops.py +0 -0
  408. {weightslab-1.4.2 → weightslab-2.0.0}/tests/model/test_model_with_ops_unit.py +0 -0
  409. {weightslab-1.4.2 → weightslab-2.0.0}/tests/model/test_tracking.py +0 -0
  410. {weightslab-1.4.2/tests/trainer → weightslab-2.0.0/tests/modules}/__init__.py +0 -0
  411. {weightslab-1.4.2 → weightslab-2.0.0}/tests/modules/test_modules_with_ops.py +0 -0
  412. {weightslab-1.4.2/tests/trainer/services → weightslab-2.0.0/tests/monitoring}/__init__.py +0 -0
  413. {weightslab-1.4.2 → weightslab-2.0.0}/tests/test_secure_communication.py +0 -0
  414. {weightslab-1.4.2/tests/utils → weightslab-2.0.0/tests/trainer}/__init__.py +0 -0
  415. {weightslab-1.4.2/tests/watchdog → weightslab-2.0.0/tests/trainer/services}/__init__.py +0 -0
  416. {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_data_service_sample_id_query.py +0 -0
  417. {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_data_service_tabular_task_type.py +0 -0
  418. {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_data_service_text_predictions.py +0 -0
  419. {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_signal_trajectory.py +0 -0
  420. {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/test_trainer_tools.py +0 -0
  421. {weightslab-1.4.2/weightslab/backend → weightslab-2.0.0/tests/utils}/__init__.py +0 -0
  422. {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_computational_graph_utils_unit.py +0 -0
  423. {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_logs_unit.py +0 -0
  424. {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_modules_dependencies_unit.py +0 -0
  425. {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_plot_graph_render_unit.py +0 -0
  426. {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_plot_graph_unit.py +0 -0
  427. {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_shape_prop_unit.py +0 -0
  428. {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_telemetry.py +0 -0
  429. {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_utils_tools_unit.py +0 -0
  430. {weightslab-1.4.2/weightslab/data → weightslab-2.0.0/tests/watchdog}/__init__.py +0 -0
  431. {weightslab-1.4.2 → weightslab-2.0.0}/tests/watchdog/test_lock_monitor.py +0 -0
  432. {weightslab-1.4.2 → weightslab-2.0.0}/tests/watchdog/test_watchdog.py +0 -0
  433. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/art.py +0 -0
  434. /weightslab-1.4.2/weightslab/ui/static/assets/favicon-BtmqMp0p.png → /weightslab-2.0.0/weightslab/assets/icon.png +0 -0
  435. /weightslab-1.4.2/weightslab/ui/static/images/darkmode/logo.png → /weightslab-2.0.0/weightslab/assets/logo-dark.png +0 -0
  436. {weightslab-1.4.2/weightslab/ui/static/images/lightmode → weightslab-2.0.0/weightslab/assets}/logo.png +0 -0
  437. {weightslab-1.4.2/weightslab/examples/PyTorch/wl-ads-recommendation/utils → weightslab-2.0.0/weightslab/backend}/__init__.py +0 -0
  438. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/audit_logger.py +0 -0
  439. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/optimizer_interface.py +0 -0
  440. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/__init__.py +0 -0
  441. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/evaluation_controller.py +0 -0
  442. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/parallel_primitives.py +0 -0
  443. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/tracking.py +0 -0
  444. {weightslab-1.4.2/weightslab/examples/PyTorch/wl-clustering/face → weightslab-2.0.0/weightslab/data}/__init__.py +0 -0
  445. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/array_proxy.py +0 -0
  446. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/h5_array_store.py +0 -0
  447. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/h5_dataframe_store.py +0 -0
  448. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/point_cloud_utils.py +0 -0
  449. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/sample_stats.py +0 -0
  450. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/docker/docker/utils/test-deployment.sh +0 -0
  451. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Lightning/wl-classification/config.yaml +0 -0
  452. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Lightning/wl-classification/main.py +0 -0
  453. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/README.md +0 -0
  454. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/config.yaml +0 -0
  455. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/test_ads_recommendation.py +0 -0
  456. {weightslab-1.4.2/weightslab/examples/PyTorch/wl-fraud-detection → weightslab-2.0.0/weightslab/examples/PyTorch/wl-ads-recommendation}/utils/__init__.py +0 -0
  457. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/utils/data.py +0 -0
  458. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/utils/model.py +0 -0
  459. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/verify_integration.py +0 -0
  460. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-clustering/config.yaml +0 -0
  461. {weightslab-1.4.2/weightslab/examples/utils/baseline_models → weightslab-2.0.0/weightslab/examples/PyTorch/wl-clustering/face}/__init__.py +0 -0
  462. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-clustering/face/data.py +0 -0
  463. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-clustering/face/model.py +0 -0
  464. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-clustering/face/signals.py +0 -0
  465. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-clustering/face/utils.py +0 -0
  466. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-clustering/main.py +0 -0
  467. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-detection/README.md +0 -0
  468. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-detection/config.yaml +0 -0
  469. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-detection/utils/criterions.py +0 -0
  470. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-detection/utils/model.py +0 -0
  471. {weightslab-1.4.2/weightslab/examples/PyTorch/wl-detection → weightslab-2.0.0/weightslab/examples/PyTorch/wl-detection-relabeling}/utils/data.py +0 -0
  472. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/README.md +0 -0
  473. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/config.yaml +0 -0
  474. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/test_fraud_detection.py +0 -0
  475. {weightslab-1.4.2/weightslab/examples/utils/baseline_models/pytorch → weightslab-2.0.0/weightslab/examples/PyTorch/wl-fraud-detection/utils}/__init__.py +0 -0
  476. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/utils/data.py +0 -0
  477. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/utils/kaggle_data.py +0 -0
  478. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/utils/model.py +0 -0
  479. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/verify_integration.py +0 -0
  480. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/0000f77c-6257be58.jpg +0 -0
  481. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/000f8d37-d4c09a0f.jpg +0 -0
  482. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00a0f008-a315437f.jpg +0 -0
  483. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00c12bd0-bb46e479.jpg +0 -0
  484. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00c29c52-f9524f1e.jpg +0 -0
  485. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00ce6f6d-50bbee62.jpg +0 -0
  486. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00d1bafa-1b47b41c.jpg +0 -0
  487. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00d7268f-fd4487be.jpg +0 -0
  488. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00f0dd0f-5e9c9557.jpg +0 -0
  489. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/0a0d7f4c-ac5c3c8f.jpg +0 -0
  490. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/0a1f4fce-f9cac880.jpg +0 -0
  491. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/0a3bb2d8-c195d91e.jpg +0 -0
  492. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1cac6a7-04e33135.jpg +0 -0
  493. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1ceb32e-3f481b43.jpg +0 -0
  494. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1d10d08-5b108225.jpg +0 -0
  495. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1d22449-15fb948f.jpg +0 -0
  496. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1d7b3ac-5af8623b.jpg +0 -0
  497. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1dce572-c6a8cb5e.jpg +0 -0
  498. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1e1a7b8-0aec80e8.jpg +0 -0
  499. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1e8ad72-c3c79240.jpg +0 -0
  500. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1ee702d-0ae1fc10.jpg +0 -0
  501. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1f0efd9-37a14dda.jpg +0 -0
  502. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b2a0648b-d8e126bc.jpg +0 -0
  503. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b2b70230-bad4ff6e.jpg +0 -0
  504. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/0000f77c-6257be58.png +0 -0
  505. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/000f8d37-d4c09a0f.png +0 -0
  506. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00a0f008-a315437f.png +0 -0
  507. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00c12bd0-bb46e479.png +0 -0
  508. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00c29c52-f9524f1e.png +0 -0
  509. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00ce6f6d-50bbee62.png +0 -0
  510. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00d1bafa-1b47b41c.png +0 -0
  511. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00d7268f-fd4487be.png +0 -0
  512. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00f0dd0f-5e9c9557.png +0 -0
  513. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/0a0d7f4c-ac5c3c8f.png +0 -0
  514. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/0a1f4fce-f9cac880.png +0 -0
  515. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/0a3bb2d8-c195d91e.png +0 -0
  516. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1cac6a7-04e33135.png +0 -0
  517. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1ceb32e-3f481b43.png +0 -0
  518. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1d10d08-5b108225.png +0 -0
  519. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1d22449-15fb948f.png +0 -0
  520. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1d7b3ac-5af8623b.png +0 -0
  521. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1dce572-c6a8cb5e.png +0 -0
  522. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1e1a7b8-0aec80e8.png +0 -0
  523. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1e8ad72-c3c79240.png +0 -0
  524. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1ee702d-0ae1fc10.png +0 -0
  525. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1f0efd9-37a14dda.png +0 -0
  526. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b2a0648b-d8e126bc.png +0 -0
  527. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b2b70230-bad4ff6e.png +0 -0
  528. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/utils/criterions.py +0 -0
  529. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/utils/data.py +0 -0
  530. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/utils/model.py +0 -0
  531. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Ultralytics/wl-detection/main.py +0 -0
  532. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-2d-lidar-detection/README.md +0 -0
  533. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-2d-lidar-detection/config.yaml +0 -0
  534. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-2d-lidar-detection/main.py +0 -0
  535. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-2d-lidar-detection/utils/criterions.py +0 -0
  536. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-2d-lidar-detection/utils/data.py +0 -0
  537. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-2d-lidar-detection/utils/model.py +0 -0
  538. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/README.md +0 -0
  539. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/config.yaml +0 -0
  540. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/utils/criterions.py +0 -0
  541. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/utils/data.py +0 -0
  542. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/utils/kitti_download.py +0 -0
  543. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/utils/model.py +0 -0
  544. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/utils/criterions.py +0 -0
  545. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/utils/data.py +0 -0
  546. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/utils/model.py +0 -0
  547. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/utils/signals.py +0 -0
  548. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/__init__.py +0 -0
  549. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/utils/__init__.py +0 -0
  550. {weightslab-1.4.2/weightslab/models → weightslab-2.0.0/weightslab/examples/utils/baseline_models}/__init__.py +0 -0
  551. {weightslab-1.4.2/weightslab/modules → weightslab-2.0.0/weightslab/examples/utils/baseline_models/pytorch}/__init__.py +0 -0
  552. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/utils/baseline_models/pytorch/models.py +0 -0
  553. {weightslab-1.4.2/weightslab/proto → weightslab-2.0.0/weightslab/export/formats}/__init__.py +0 -0
  554. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/__init__.py +0 -0
  555. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/README.md +0 -0
  556. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/__init__.py +0 -0
  557. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/_utils.py +0 -0
  558. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/collate.py +0 -0
  559. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/dataset.py +0 -0
  560. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/signals.py +0 -0
  561. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/trainer.py +0 -0
  562. {weightslab-1.4.2/weightslab/trainer → weightslab-2.0.0/weightslab/models}/__init__.py +0 -0
  563. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/models/model_with_ops.py +0 -0
  564. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/models/monkey_patcher.py +0 -0
  565. {weightslab-1.4.2/weightslab/trainer/services → weightslab-2.0.0/weightslab/modules}/__init__.py +0 -0
  566. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/modules/modules_with_ops.py +0 -0
  567. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/modules/neuron_ops.py +0 -0
  568. {weightslab-1.4.2/weightslab/trainer/services/agent → weightslab-2.0.0/weightslab/proto}/__init__.py +0 -0
  569. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/security/__init__.py +0 -0
  570. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/security/cert_auth_manager.py +0 -0
  571. {weightslab-1.4.2/weightslab/trainer/services/utils → weightslab-2.0.0/weightslab/trainer}/__init__.py +0 -0
  572. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/experiment_context.py +0 -0
  573. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/agent/agent_overview/agent.png +0 -0
  574. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/agent/agent_overview/query_example.png +0 -0
  575. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/agent/agent_overview/schema.png +0 -0
  576. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/data_image_utils.py +0 -0
  577. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/instance_merger.py +0 -0
  578. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/model_service.py +0 -0
  579. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/trainer_tools.py +0 -0
  580. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/tunnel.py +0 -0
  581. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/__init__.py +0 -0
  582. /weightslab-1.4.2/weightslab/ui/static/images/favicon.png → /weightslab-2.0.0/weightslab/ui/static/assets/favicon-BtmqMp0p.png +0 -0
  583. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/static/images/darkmode/logo.svg +0 -0
  584. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/static/images/lightmode/logo.svg +0 -0
  585. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/static/images/logo.png +0 -0
  586. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/utils/generate-certs-auth-token.ps1 +0 -0
  587. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/utils/generate-certs-auth-token.sh +0 -0
  588. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/__init__.py +0 -0
  589. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/computational_graph.py +0 -0
  590. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/logs.py +0 -0
  591. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/modules_dependencies.py +0 -0
  592. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/plot_graph.py +0 -0
  593. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/shape_prop.py +0 -0
  594. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/telemetry.py +0 -0
  595. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/watchdog/__init__.py +0 -0
  596. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/watchdog/grpc_watchdog.py +0 -0
  597. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/watchdog/lock_monitor.py +0 -0
  598. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/watchdog/log_level.py +0 -0
  599. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/watchdog/watchdog.py +0 -0
  600. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab.egg-info/dependency_links.txt +0 -0
  601. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab.egg-info/entry_points.txt +0 -0
  602. {weightslab-1.4.2 → weightslab-2.0.0}/weightslab.egg-info/top_level.txt +0 -0
@@ -177,8 +177,38 @@ jobs:
177
177
  - name: Install build tools
178
178
  run: python -m pip install --upgrade pip build twine
179
179
 
180
+ # This job always publishes to TestPyPI ONLY (never real PyPI -- that's
181
+ # build-and-publish-main, below, which is untouched by this and always
182
+ # builds the tag's own clean version). So the version published HERE is
183
+ # always commit-decorated, regardless of whether the pushed tag name
184
+ # itself contains "-devN" -- a dev-branch pre-release tag and a real
185
+ # main-branch release tag both go through this same TestPyPI pre-check,
186
+ # and an exact tag match otherwise carries no commit-specific info of
187
+ # its own (every push of the same tag name would resolve to the exact
188
+ # same version, colliding on a re-run/retag).
189
+ #
190
+ # TestPyPI/PyPI reject a literal "+sha" local version (see local_scheme
191
+ # = "no-local-version" in pyproject.toml), and PEP 440's devN segment
192
+ # must be a plain integer -- so the short hex commit sha is encoded as
193
+ # a decimal integer inside devN instead, mirroring ci.yml's
194
+ # build-and-publish-dev job (which solves the exact same constraint for
195
+ # its own, non-tag-based, publish-on-push-to-main version).
196
+ - name: Compute decorated TestPyPI version
197
+ id: compute_version
198
+ run: |
199
+ BASE_VERSION="$(echo "${GITHUB_REF_NAME#v}" | sed -E 's/[-\.]?dev[0-9]*$//')"
200
+ SHORT_SHA_HEX="$(git rev-parse --short=8 HEAD)"
201
+ SHA_DEC="$((16#${SHORT_SHA_HEX}))"
202
+ PUBLISH_VERSION="${BASE_VERSION}.dev${SHA_DEC}"
203
+ echo "publish_version=${PUBLISH_VERSION}" >> $GITHUB_OUTPUT
204
+ echo "Tag ${GITHUB_REF_NAME} @ ${SHORT_SHA_HEX} -> TestPyPI version ${PUBLISH_VERSION}"
205
+
180
206
  - name: Build distributions
181
- run: python -m build
207
+ env:
208
+ SETUPTOOLS_SCM_PRETEND_VERSION_FOR_WEIGHTSLAB: ${{ steps.compute_version.outputs.publish_version }}
209
+ run: |
210
+ echo "Building with version ${SETUPTOOLS_SCM_PRETEND_VERSION_FOR_WEIGHTSLAB}"
211
+ python -m build
182
212
 
183
213
  - name: Capture version from wheel
184
214
  id: version
@@ -188,6 +218,9 @@ jobs:
188
218
  VERSION="$(basename "${WHEEL}" | sed -E 's/^weightslab-([^-]+)-.*/\1/')"
189
219
  echo "published_version=${VERSION}" >> $GITHUB_OUTPUT
190
220
  echo "Dev release version: ${VERSION}"
221
+ if [ "${VERSION}" != "${{ steps.compute_version.outputs.publish_version }}" ]; then
222
+ echo "::warning::Built wheel version (${VERSION}) does not match the intended decorated version (${{ steps.compute_version.outputs.publish_version }})."
223
+ fi
191
224
 
192
225
  - name: Check distributions
193
226
  run: python -m twine check dist/*
@@ -8,6 +8,8 @@ agents
8
8
  dist
9
9
  static
10
10
  weightslab/ui/static/
11
+ weightslab/**/AGENTS.md
12
+ weightslab/**/opencode.json
11
13
 
12
14
  # Ignore files and directories generated by Python
13
15
  logs
@@ -49,9 +51,10 @@ htmlcov-report
49
51
  experiment_service_pb2.py
50
52
  experiment_service_pb2_grpc.py
51
53
  settings.json
52
- laumch.json
54
+ launch.json
53
55
  pkg_main.py
54
56
  _version.py
57
+ .wl_opencode.json
55
58
 
56
59
  # Ignore extensions
57
60
  *.onnx
@@ -132,6 +132,37 @@ Conventions that matter for correctness:
132
132
  supports both `hp.get("lr")` and `hp["lr"]` (subscript == `.get`), and stays
133
133
  live — reads reflect in-place updates and re-registration.
134
134
 
135
+ Recording values (pick by what the value is *about*, not by convenience):
136
+
137
+ | Value describes | Verb | Example |
138
+ |---|---|---|
139
+ | one sample | `wl.save_signals(signals={...}, batch_ids=ids, ...)` | an image's loss |
140
+ | one annotation | `wl.save_instance_signals(...)` | one box's IoU |
141
+ | a group of samples | `wl.save_group_signals(signals={...}, group_ids=[...])` | a pair's contrastive loss |
142
+ | one training **step** | `wl.save_model_signals(signals={...})` | a gradient norm |
143
+
144
+ The first three write dataframe rows (sortable/filterable in the grid); the
145
+ fourth only plots a curve. Never fake a step-level value by broadcasting it
146
+ across `batch_ids` — that writes a number onto samples it was never about.
147
+
148
+ - **Training-dynamics signals** come free with
149
+ `wl.watch_or_edit(model, flag="model", track_model_signals=True,
150
+ model_signals_every_n_steps=N)`. That emits, per step and with no call in the
151
+ training loop: `metrics/global/{grad_norm,weights_norm}` and
152
+ `metrics/layer/<layer_id>/{grad_norm,weights_norm,activation_mean,
153
+ activation_std,activation_max,activation_min}`. `<layer_id>` is the same id
154
+ architecture ops (freeze/reset) address, so a bad curve names the layer to act
155
+ on. Only collects inside `guard_training_context`, so eval never contaminates
156
+ it. Implementation: `weightslab/weightslab/components/model_signals.py`;
157
+ example: `examples/Usecases/wl-fashion-mnist-signals`.
158
+ - Diagnosing from these: early-layer `grad_norm` → 0 with healthy late layers
159
+ = vanishing gradient; `grad_norm` spiking orders of magnitude = exploding;
160
+ `activation_std` → 0 on a layer = that layer went constant (dead
161
+ ReLU/saturated BN); `weights_norm` growing while loss flattens = needs decay.
162
+ - Per-layer curves need per-layer modules: an `nn.Sequential` block resolves
163
+ to ONE layer id, so a model built out of Sequentials gets one curve for the
164
+ whole block.
165
+
135
166
  ---
136
167
 
137
168
  ## 4. Configuration (environment variables)
@@ -166,6 +197,7 @@ ones when debugging:
166
197
  | `ENABLE_DATA_EXPLORATION` | `1` | `0`/`false` removes the data grid + metadata/details panel and stops the data/metadata auto-refresh. |
167
198
  | `ENABLE_HYPERPARAMETERS_OPTIMIZATION` | `1` | `0`/`false` removes the Hyperparameters section, makes HP inputs read-only, and stops the HP poll. |
168
199
  | `ENABLE_AGENT` | `1` | `0`/`false` removes the agent chat bar + history panel and stops the agent health poll. |
200
+ | `ENABLE_NOTEBOOK` | `1` | `0`/`false` removes the notebook button (left of the logo) + notebook window. The notebook runs Python in a shared in-process kernel against the live experiment (`df`, model, checkpoints), persisted as `notebook.ipynb` under `root_log_dir`; `>`-prefixed cells ask the agent to propose code. |
169
201
 
170
202
  > **VITE_ vs WS_/BB_/ENABLE_:** `VITE_*` variables are baked at **build time**
171
203
  > (changing them needs a frontend rebuild). `WS_*` / `BB_*` / `ENABLE_*` are
@@ -0,0 +1 @@
1
+ # Changelog - 2026-08-21 v2.0.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: weightslab
3
- Version: 1.4.2
3
+ Version: 2.0.0
4
4
  Summary: Paving the way between black-box and white-box modeling.
5
5
  Author-email: Alexandru-Andrei Rotaru <alexandru@graybx.com>, Guillaue Pelluet <guillaue@graybx.com>
6
6
  License: BSD 2-clause
@@ -27,7 +27,7 @@ Requires-Dist: torch<=2.9,>=2.1
27
27
  Requires-Dist: torchvision<1,>=0.16
28
28
  Requires-Dist: torchmetrics>=1.9
29
29
  Requires-Dist: grpcio<2,>=1.80
30
- Requires-Dist: protobuf<8,>=5.28.1
30
+ Requires-Dist: protobuf<8,>=6.31.1
31
31
  Requires-Dist: pydantic<3,>=2.7
32
32
  Requires-Dist: Pillow<12,>=10
33
33
  Requires-Dist: graphviz<1,>=0.20
@@ -35,8 +35,13 @@ Requires-Dist: onnx<=1.20,>=1.15
35
35
  Requires-Dist: tqdm<5,>=4.66
36
36
  Requires-Dist: python-dotenv<2,>=1
37
37
  Requires-Dist: langchain-core<2,>=0.3
38
- Requires-Dist: langchain-ollama<2,>=0.2
39
- Requires-Dist: langchain-openai<2,>=0.2
38
+ Requires-Dist: ipykernel<7,>=6.29
39
+ Requires-Dist: jupyter_client<9,>=8.6
40
+ Requires-Dist: notebook>=7.6.1
41
+ Requires-Dist: ipywidgets>=8.1.8
42
+ Requires-Dist: matplotlib<4,>=3.7
43
+ Requires-Dist: psutil<8,>=5.9
44
+ Requires-Dist: nvidia-ml-py<14,>=11
40
45
  Provides-Extra: ultralytics
41
46
  Requires-Dist: ultralytics>=8.4.16; extra == "ultralytics"
42
47
  Provides-Extra: onnx
@@ -46,6 +51,8 @@ Provides-Extra: dev
46
51
  Requires-Dist: grpcio-tools<2,>=1.62; extra == "dev"
47
52
  Requires-Dist: torchinfo<2,>=1.8; extra == "dev"
48
53
  Requires-Dist: httpx<1,>=0.27; extra == "dev"
54
+ Provides-Extra: export
55
+ Requires-Dist: opencv-python-headless<5,>=4.8; extra == "export"
49
56
  Provides-Extra: utest
50
57
  Requires-Dist: torchaudio<2.9,>=2.1; python_version < "3.13" and extra == "utest"
51
58
  Requires-Dist: torchaudio<3,>=2.9; python_version >= "3.13" and extra == "utest"
@@ -56,13 +63,11 @@ Requires-Dist: pytest>=9.0.2; extra == "utest"
56
63
  Dynamic: license-file
57
64
 
58
65
  <div align="center">
59
- <a href="https://grayboxtech.github.io/weightslab/latest/index.html">
60
- <picture>
61
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
62
- <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
63
- <img alt="WeightsLab Banner" src="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-light.png" width="100%" />
64
- </picture>
65
- </a>
66
+ <picture>
67
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
68
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
69
+ <img alt="WeightsLab Banner" src="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-light.png" width="100%" />
70
+ </picture>
66
71
  <br>
67
72
 
68
73
  </div>
@@ -102,7 +107,7 @@ WeightsLab hooks into your existing PyTorch training loop and exposes a live UI
102
107
 
103
108
  ## Weightslab in Motion
104
109
  <div align="center">
105
- <img src="https://github.com/GrayboxTech/assets/blob/main/GIF/weightslab_demo_bdd.gif" width="1280" alt="WeightsLab Studio demo" />
110
+ <img width="960" height="540" alt="Image" src="https://github.com/user-attachments/assets/2e8f8846-efcd-4188-9d60-fee0674d1105" />
106
111
  <!-- <sub><a href="https://youtu.be/GBBDDaJQLWk">▶ Watch full demo</a></sub> -->
107
112
  </div>
108
113
 
@@ -378,6 +383,20 @@ Find our documentation [online](https://grayboxtech.github.io/weightslab/latest/
378
383
 
379
384
  </details>
380
385
 
386
+ <details>
387
+ <summary><b>Agent: chat with your training run (OpenCode)</b></summary>
388
+
389
+ <br>
390
+
391
+ WeightsLab ships two distinct agent surfaces — the backend SDK agent for data-manipulation
392
+ queries, and a local [OpenCode](https://opencode.ai)-backed agent with a full bash/file
393
+ toolset that can restart training, edit your code, and run recurring `/loop` monitoring
394
+ jobs. See the [Agent docs](https://grayboxtech.github.io/weightslab/latest/agent.html) for
395
+ how the two connect, how to point either one at a local model, and the full `/loop`
396
+ reference.
397
+
398
+ </details>
399
+
381
400
  </details>
382
401
 
383
402
  <details>
@@ -1,11 +1,9 @@
1
1
  <div align="center">
2
- <a href="https://grayboxtech.github.io/weightslab/latest/index.html">
3
- <picture>
4
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
5
- <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
6
- <img alt="WeightsLab Banner" src="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-light.png" width="100%" />
7
- </picture>
8
- </a>
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
4
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
5
+ <img alt="WeightsLab Banner" src="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-light.png" width="100%" />
6
+ </picture>
9
7
  <br>
10
8
 
11
9
  </div>
@@ -45,7 +43,7 @@ WeightsLab hooks into your existing PyTorch training loop and exposes a live UI
45
43
 
46
44
  ## Weightslab in Motion
47
45
  <div align="center">
48
- <img src="https://github.com/GrayboxTech/assets/blob/main/GIF/weightslab_demo_bdd.gif" width="1280" alt="WeightsLab Studio demo" />
46
+ <img width="960" height="540" alt="Image" src="https://github.com/user-attachments/assets/2e8f8846-efcd-4188-9d60-fee0674d1105" />
49
47
  <!-- <sub><a href="https://youtu.be/GBBDDaJQLWk">▶ Watch full demo</a></sub> -->
50
48
  </div>
51
49
 
@@ -321,6 +319,20 @@ Find our documentation [online](https://grayboxtech.github.io/weightslab/latest/
321
319
 
322
320
  </details>
323
321
 
322
+ <details>
323
+ <summary><b>Agent: chat with your training run (OpenCode)</b></summary>
324
+
325
+ <br>
326
+
327
+ WeightsLab ships two distinct agent surfaces — the backend SDK agent for data-manipulation
328
+ queries, and a local [OpenCode](https://opencode.ai)-backed agent with a full bash/file
329
+ toolset that can restart training, edit your code, and run recurring `/loop` monitoring
330
+ jobs. See the [Agent docs](https://grayboxtech.github.io/weightslab/latest/agent.html) for
331
+ how the two connect, how to point either one at a local model, and the full `/loop`
332
+ reference.
333
+
334
+ </details>
335
+
324
336
  </details>
325
337
 
326
338
  <details>
@@ -0,0 +1,23 @@
1
+ # Agent Configuration
2
+ # ###################
3
+ # Variables can be defined from env. variables
4
+ # or directly in the config file.
5
+ # Config file values will override env. variables if both are set.
6
+ # If cloned, env. variables can be defined in a .env file at the root of the repository.
7
+ #
8
+ # OpenCode (opencode.ai) is the only supported agent backend: a local OpenCode
9
+ # server backs every LLM call. There is no API key here -- the credential
10
+ # lives in OpenCode's own config, entered once via `opencode auth login` or
11
+ # the Weights Studio landing page's login modal.
12
+ agent:
13
+ # URL of the local OpenCode server (can also be set as env variable
14
+ # OPENCODE_URL). Defaults to http://127.0.0.1:4096. This is the SAME shared
15
+ # root env var the frontend reads, so set it once and both sides point at
16
+ # one server.
17
+ opencode_url: http://127.0.0.1:4096
18
+
19
+ # OpenCode model, "providerID/modelID" (can also be set as env variable
20
+ # OPENCODE_MODEL). Empty string self-heals to whatever OpenCode's own
21
+ # config was last set to, or a configured provider default, falling back
22
+ # to the free-tier "opencode/deepseek-v4-flash-free" if neither resolves.
23
+ opencode_model: "opencode/deepseek-v4-flash-free"
@@ -0,0 +1,254 @@
1
+ #!/usr/bin/env python3
2
+ """Regenerate ``docs/whats_new.rst`` from the repository's GitHub releases.
3
+
4
+ The page is committed as static RST rather than fetched while Sphinx runs: a
5
+ docs build that reached out to api.github.com would fail on an offline machine,
6
+ in an air-gapped CI runner, or simply when the unauthenticated rate limit is
7
+ spent -- and it would fail at the moment someone is trying to build the docs,
8
+ which is the worst time to discover it. Regenerating is a deliberate step::
9
+
10
+ python docs/_scripts/update_whats_new.py
11
+
12
+ Only **stable** releases are listed. Every tag push also publishes a
13
+ ``vX.Y.Z.devN`` pre-release to TestPyPI for verification (see ci.yml's
14
+ ``build-and-publish-dev-release``), and those outnumber the real releases
15
+ roughly two to one -- a "What's New" page carrying them would be mostly noise
16
+ about build plumbing.
17
+
18
+ Each summary is the release body **between the "Welcome" heading and the
19
+ "What's Changed precisely:" heading**, which is where the release template puts
20
+ the human description. Two transformations make that readable:
21
+
22
+ * the boilerplate wrapping it (identical in all ten releases) is stripped;
23
+ * the template flattens every PR description onto a single line, so the
24
+ structure it had as markdown survives only as inline ``" - "`` separators and
25
+ stray ``"## Heading"`` markers -- ``_description_lines`` recovers it as real
26
+ nested bullets. Without that step the page is ten paragraphs of run-on text.
27
+ """
28
+
29
+ from __future__ import annotations
30
+
31
+ import json
32
+ import re
33
+ import urllib.request
34
+ from datetime import datetime, timezone
35
+ from pathlib import Path
36
+
37
+ REPO = "GrayboxTech/weightslab"
38
+ RELEASE_COUNT = 10
39
+ OUTPUT = Path(__file__).resolve().parents[1] / "whats_new.rst"
40
+
41
+ LEAD_IN = re.compile(
42
+ r"^Welcome to the \*\*[^*]+\*\* release of WeightsLab\.[^\n]*\n+", re.M)
43
+ TAIL = re.compile(r"\n*One platform\. Unmatched flexibility\..*\Z", re.S)
44
+
45
+ SECTION_MARKER = re.compile(r"\s*#{2,4}\s+([A-Z][^#\n]{0,40}?)\s+(?=[-*`\[A-Z])")
46
+ ITEM_SPLIT = re.compile(r"\s+-\s+(?=[\[`*\w])")
47
+ PR_BULLET = re.compile(r"^\[([^\]]+)\]\(([^)]+)\)\s*:?\s*(.*)$", re.S)
48
+
49
+
50
+ def fetch_releases() -> list:
51
+ releases, page = [], 1
52
+ while True:
53
+ url = f"https://api.github.com/repos/{REPO}/releases?per_page=100&page={page}"
54
+ req = urllib.request.Request(url, headers={"Accept": "application/vnd.github+json"})
55
+ with urllib.request.urlopen(req, timeout=30) as resp:
56
+ batch = json.load(resp)
57
+ releases += batch
58
+ if len(batch) < 100:
59
+ return releases
60
+ page += 1
61
+
62
+
63
+ def stable_releases(releases: list) -> list:
64
+ out = [r for r in releases if not r.get("prerelease") and not r.get("draft")]
65
+ out.sort(key=lambda r: r.get("published_at") or "", reverse=True)
66
+ return out[:RELEASE_COUNT]
67
+
68
+
69
+ def welcome_section(body: str) -> str:
70
+ match = re.search(
71
+ r"^#{1,4}\s*Welcome\s*$(.*?)^#{1,4}\s*What's Changed", body or "", re.M | re.S)
72
+ return (match.group(1) if match else "").strip()
73
+
74
+
75
+ def _strip_boilerplate(text: str) -> str:
76
+ return TAIL.sub("", LEAD_IN.sub("", text)).strip()
77
+
78
+
79
+ def md_inline_to_rst(text: str) -> str:
80
+ """Convert the inline markdown that turns up in PR descriptions.
81
+
82
+ Deliberately small: these are PR descriptions pasted into a release
83
+ template, so they carry links, bold, and inline code and little else.
84
+ """
85
+ text = re.sub(r"`([^`]+)`", r"``\1``", text)
86
+ text = re.sub(r"\[([^\]]+)\]\(([^)]+)\)", r"`\1 <\2>`__", text)
87
+ text = re.sub(r"_\(([^)]+)\)_", r"*(\1)*", text)
88
+ text = re.sub(r"\s{2,}", " ", text)
89
+ return text.strip()
90
+
91
+
92
+ def _sanitize(text: str) -> str:
93
+ """Repair the two things the release template's flattening leaves behind.
94
+
95
+ A GitHub task-list marker (``[ ]``) carries no meaning once the checklist
96
+ has been flattened into prose, and an unbalanced backtick is an outright
97
+ RST error -- which happens whenever the template truncates a long PR body
98
+ mid-token, as it does with an ellipsis. Closing the text at the last
99
+ balanced point is honest about the truncation and keeps the build clean;
100
+ the card links to the full release notes anyway.
101
+ """
102
+ text = re.sub(r"^[-*]\s+", "", text.strip())
103
+ text = re.sub(r"^\[[ xX]\]\s*", "", text)
104
+ for marker in ("`", "**"):
105
+ if text.count(marker) % 2:
106
+ text = text[:text.rindex(marker)].rstrip(" .") + " …"
107
+ return text.strip()
108
+
109
+
110
+ def _wrap(text: str, width: int, first: str, rest: str) -> list:
111
+ """Greedy wrap that keeps an RST bullet or indent prefix on the first line."""
112
+ words = text.split()
113
+ if not words:
114
+ return []
115
+ out, line = [], first + words[0]
116
+ for word in words[1:]:
117
+ if len(line) + 1 + len(word) > width:
118
+ out.append(line)
119
+ line = rest + word
120
+ else:
121
+ line += " " + word
122
+ out.append(line)
123
+ return out
124
+
125
+
126
+ def _description_lines(description: str, indent: str) -> list:
127
+ """Render one PR's flattened description as nested RST beneath its bullet."""
128
+ if not description.strip():
129
+ return []
130
+
131
+ marked = SECTION_MARKER.sub(
132
+ lambda m: "\n@@" + m.group(1).rstrip(":") + "@@\n", description)
133
+
134
+ lines = []
135
+ for block in marked.split("\n"):
136
+ block = block.strip()
137
+ if not block:
138
+ continue
139
+ heading = re.fullmatch(r"@@(.+)@@", block)
140
+ if heading:
141
+ lines.append("")
142
+ lines.append(indent + "**" + md_inline_to_rst(heading.group(1)) + "**")
143
+ continue
144
+ items = [i.strip() for i in ITEM_SPLIT.split(block) if i.strip()]
145
+ lines.append("")
146
+ if len(items) > 1:
147
+ for item in items:
148
+ lines.extend(_wrap(_sanitize(md_inline_to_rst(item)), 86,
149
+ first=indent + "- ", rest=indent + " "))
150
+ else:
151
+ lines.extend(_wrap(_sanitize(md_inline_to_rst(items[0])), 86,
152
+ first=indent, rest=indent))
153
+ return lines
154
+
155
+
156
+ def summary_to_rst(body: str) -> list:
157
+ text = _strip_boilerplate(welcome_section(body))
158
+ if not text:
159
+ return [" *No description was published with this release.*"]
160
+
161
+ lines, entries, current = [], [], None
162
+ for raw in text.splitlines():
163
+ stripped = raw.strip()
164
+ if not stripped or stripped == "---":
165
+ continue
166
+ if stripped.startswith("- "):
167
+ current = [stripped[2:]]
168
+ entries.append(current)
169
+ elif stripped.startswith(">") and current is not None:
170
+ current.append(stripped.lstrip("> ").strip())
171
+ elif current is not None:
172
+ current.append(stripped)
173
+ else:
174
+ lines.extend(_wrap(_sanitize(md_inline_to_rst(stripped)), 86, first=" ", rest=" "))
175
+
176
+ for entry in entries:
177
+ joined = " ".join(entry).strip()
178
+ match = PR_BULLET.match(joined)
179
+ if match:
180
+ label, url, description = match.groups()
181
+ lines.append(" - `" + label.strip() + " <" + url.strip() + ">`__")
182
+ lines.extend(_description_lines(description, " "))
183
+ else:
184
+ lines.extend(_wrap(_sanitize(md_inline_to_rst(joined)), 86, first=" - ", rest=" "))
185
+ lines.append("")
186
+
187
+ while lines and not lines[-1].strip():
188
+ lines.pop()
189
+ return lines
190
+
191
+
192
+ HEADER = """.. _whats-new:
193
+
194
+ What's New
195
+ ==========
196
+
197
+ The last {count} stable releases of WeightsLab, newest first. Each card links to
198
+ its full release notes on GitHub, where the complete "What's Changed" commit
199
+ list lives.
200
+
201
+ .. note::
202
+
203
+ Only stable releases appear here. Every tag also publishes a
204
+ ``vX.Y.Z.devN`` pre-release to TestPyPI for verification; those are build
205
+ plumbing rather than user-facing changes.
206
+
207
+ .. tip::
208
+
209
+ Upgrade with ``pip install --upgrade weightslab``. Setting up for the first
210
+ time? Start at :doc:`quickstart`.
211
+
212
+ """
213
+
214
+ FOOTER = """
215
+ ----
216
+
217
+ `Every release on GitHub → <https://github.com/{repo}/releases>`__
218
+
219
+ .. This page is generated. To refresh it after a release:
220
+ .. python docs/_scripts/update_whats_new.py
221
+ .. Last generated: {generated}
222
+ """
223
+
224
+
225
+ def build_rst(releases: list) -> str:
226
+ parts = [HEADER.format(count=len(releases))]
227
+ for release in releases:
228
+ published = datetime.fromisoformat(
229
+ release["published_at"].replace("Z", "+00:00")).astimezone(timezone.utc)
230
+ date_label = f"{published.strftime('%B')} {published.day}, {published.year}"
231
+
232
+ parts.append(".. card::\n")
233
+ parts.append(f" :link: {release['html_url']}\n")
234
+ parts.append(" :class-card: wl-release-card\n\n")
235
+ parts.append(" .. rst-class:: wl-release-date\n\n")
236
+ parts.append(f" {date_label}\n\n")
237
+ parts.append(" .. rst-class:: wl-release-version\n\n")
238
+ parts.append(f" {release['tag_name']}\n\n")
239
+ parts.append("\n".join(summary_to_rst(release.get("body") or "")))
240
+ parts.append("\n\n")
241
+ parts.append(FOOTER.format(
242
+ repo=REPO, generated=datetime.now(timezone.utc).strftime("%Y-%m-%d")))
243
+ return "".join(parts)
244
+
245
+
246
+ def main() -> None:
247
+ releases = stable_releases(fetch_releases())
248
+ OUTPUT.write_text(build_rst(releases), encoding="utf-8")
249
+ print(f"wrote {OUTPUT} — {len(releases)} releases, "
250
+ f"{releases[-1]['tag_name']} … {releases[0]['tag_name']}")
251
+
252
+
253
+ if __name__ == "__main__":
254
+ main()
@@ -0,0 +1,124 @@
1
+ function detectLineKind(text) {
2
+ const trimmed = text.replace(/\u00a0/g, " ").trimStart();
3
+ if (trimmed.startsWith("+")) return "wl-line-added";
4
+ if (trimmed.startsWith("-")) return "wl-line-removed";
5
+ return "";
6
+ }
7
+
8
+ function isMarkedDiffBlock(block) {
9
+ return Boolean(block.closest(".wl-diff-lines"));
10
+ }
11
+
12
+ function decoratePrefixedDiffRows(block) {
13
+ if (!isMarkedDiffBlock(block)) return;
14
+ const pre = block.querySelector("pre");
15
+ if (!pre || pre.dataset.wlDiffDecorated === "1") return;
16
+
17
+ const nodes = Array.from(pre.childNodes);
18
+ const rows = [];
19
+ let current = null;
20
+
21
+ for (const node of nodes) {
22
+ if (node.nodeType === Node.ELEMENT_NODE && node.classList.contains("linenos")) {
23
+ current = { lineno: node, nodes: [] };
24
+ rows.push(current);
25
+ continue;
26
+ }
27
+ if (current) current.nodes.push(node);
28
+ }
29
+
30
+ for (const row of rows) {
31
+ if (row.nodes.length === 0) continue;
32
+ const kind = detectLineKind(row.nodes.map((n) => n.textContent || "").join(""));
33
+ if (!kind) continue;
34
+
35
+ row.lineno.classList.add(kind);
36
+
37
+ for (const node of row.nodes) {
38
+ if (node.nodeType === Node.ELEMENT_NODE) {
39
+ node.classList.add("wl-line-segment", kind);
40
+ } else if (node.nodeType === Node.TEXT_NODE && node.textContent) {
41
+ const segment = document.createElement("span");
42
+ segment.className = `wl-line-segment ${kind}`;
43
+ segment.textContent = node.textContent;
44
+ pre.replaceChild(segment, node);
45
+ }
46
+ }
47
+ }
48
+
49
+ pre.dataset.wlDiffDecorated = "1";
50
+ }
51
+
52
+ function isDiffLikeBlock(block) {
53
+ return (
54
+ isMarkedDiffBlock(block) ||
55
+ block.classList.contains("highlight-diff") ||
56
+ block.querySelector(".gd, .gi, .wl-line-added, .wl-line-removed")
57
+ );
58
+ }
59
+
60
+ document.addEventListener("DOMContentLoaded", () => {
61
+ const blocks = document.querySelectorAll("div.highlight");
62
+ for (const block of blocks) {
63
+ decoratePrefixedDiffRows(block);
64
+ if (block.querySelector(".wl-copy-btn")) continue;
65
+
66
+ const pre = block.querySelector("pre");
67
+ if (!pre) continue;
68
+
69
+ const button = document.createElement("button");
70
+ button.type = "button";
71
+ button.className = "wl-copy-btn";
72
+ button.textContent = "Copy";
73
+
74
+ button.addEventListener("click", async () => {
75
+ try {
76
+ const lines = pre.querySelectorAll(".linenos");
77
+ const previous = [];
78
+ for (const line of lines) {
79
+ previous.push(line.textContent);
80
+ line.textContent = "";
81
+ }
82
+
83
+ let text = pre.innerText.replace(/\u00a0/g, " ");
84
+ if (isDiffLikeBlock(block)) {
85
+ const cleanedLines = text
86
+ .split(/\r?\n/)
87
+ .filter((line) => {
88
+ const trimmed = line.trimStart();
89
+ return !(trimmed.startsWith("-") && !trimmed.startsWith("--"));
90
+ })
91
+ .map((line) => line.replace(/^(\s*)\+\s{0,2}/, "$1"));
92
+
93
+ const compacted = [];
94
+ for (const line of cleanedLines) {
95
+ const isBlank = line.trim() === "";
96
+ if (isBlank && compacted.length > 0 && compacted[compacted.length - 1].trim() === "") {
97
+ continue;
98
+ }
99
+ compacted.push(line);
100
+ }
101
+ text = compacted.join("\n");
102
+ }
103
+ text = text.trimEnd();
104
+
105
+ lines.forEach((line, i) => {
106
+ line.textContent = previous[i];
107
+ });
108
+
109
+ await navigator.clipboard.writeText(text);
110
+ button.textContent = "Copied";
111
+ setTimeout(() => {
112
+ button.textContent = "Copy";
113
+ }, 1200);
114
+ } catch (_err) {
115
+ button.textContent = "Failed";
116
+ setTimeout(() => {
117
+ button.textContent = "Copy";
118
+ }, 1200);
119
+ }
120
+ });
121
+
122
+ block.appendChild(button);
123
+ }
124
+ });