particleflow 3.1.0__tar.gz → 3.2.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 (289) hide show
  1. {particleflow-3.1.0/particleflow.egg-info → particleflow-3.2.0}/PKG-INFO +43 -85
  2. particleflow-3.2.0/README.md +101 -0
  3. particleflow-3.2.0/configs/training/platforms/flatiron_a100.yaml +19 -0
  4. particleflow-3.2.0/configs/training/platforms/flatiron_h100.yaml +19 -0
  5. particleflow-3.2.0/configs/training/platforms/flatiron_h200.yaml +19 -0
  6. particleflow-3.2.0/configs/training/platforms/local.yaml +13 -0
  7. particleflow-3.2.0/configs/training/platforms/lumi_mi250x.yaml +40 -0
  8. particleflow-3.2.0/configs/training/platforms/tallinn_l40.yaml +23 -0
  9. particleflow-3.2.0/configs/training/scenarios/cld_hits_backbone_comparison.yaml +46 -0
  10. particleflow-3.2.0/configs/training/scenarios/cld_hits_output_comparison.yaml +66 -0
  11. particleflow-3.2.0/configs/training/scenarios/cld_pf_heptv2_batch512_50k.yaml +55 -0
  12. particleflow-3.2.0/configs/training/scenarios/cld_pf_heptv2_default_50k.yaml +24 -0
  13. particleflow-3.2.0/configs/training/scenarios/cld_pf_heptv2_fit_correction_50k.yaml +76 -0
  14. particleflow-3.2.0/configs/training/scenarios/cld_pf_heptv2_fit_loss_50k.yaml +40 -0
  15. particleflow-3.2.0/configs/training/scenarios/cld_pf_heptv2_grouped_tracking_50k.yaml +84 -0
  16. particleflow-3.2.0/configs/training/scenarios/cld_pf_heptv2_hit_grouping_50k.yaml +103 -0
  17. particleflow-3.2.0/configs/training/scenarios/cld_pf_heptv2_model_scaling_50k.yaml +62 -0
  18. particleflow-3.2.0/configs/training/scenarios/cld_pf_heptv2_momentum_50k_comparison.yaml +147 -0
  19. particleflow-3.2.0/configs/training/scenarios/cld_pf_heptv2_tracker_grouping_losses_50k.yaml +73 -0
  20. particleflow-3.2.0/configs/training/scenarios/cld_pf_heptv2_tracker_momentum_50k.yaml +39 -0
  21. particleflow-3.2.0/configs/training/scenarios/cld_pf_heptv2_tracker_readout_50k.yaml +63 -0
  22. particleflow-3.2.0/configs/training/scenarios/cld_pf_heptv2_tracker_width_scaling_50k.yaml +79 -0
  23. particleflow-3.2.0/configs/training/scenarios/cld_pf_hit_models_200k_comparison.yaml +115 -0
  24. particleflow-3.2.0/configs/training/scenarios/cld_pf_hits_comparison.yaml +85 -0
  25. particleflow-3.2.0/configs/training/scenarios/cld_pf_track_cluster_batch6144_10k.yaml +37 -0
  26. particleflow-3.2.0/configs/training/scenarios/cld_pf_track_cluster_batch6144_50k.yaml +36 -0
  27. particleflow-3.2.0/configs/training/scenarios/cld_set_hits_heptv2_sector_comparison.yaml +82 -0
  28. particleflow-3.2.0/configs/training/scenarios/cld_set_hits_improvement_comparison.yaml +82 -0
  29. particleflow-3.2.0/configs/training/scenarios/cld_set_hits_object_formation_comparison.yaml +73 -0
  30. particleflow-3.2.0/configs/training/scenarios/cld_set_hits_query_matching_comparison.yaml +91 -0
  31. particleflow-3.2.0/configs/training/scenarios/clic_cld_backbone_benchmark.yaml +148 -0
  32. particleflow-3.2.0/configs/training/scenarios/clic_cld_pf_set_hits_comparison.yaml +78 -0
  33. particleflow-3.2.0/configs/training/scenarios/cms_backbone_comparison.yaml +76 -0
  34. particleflow-3.2.0/mlpf/conf.py +1404 -0
  35. particleflow-3.2.0/mlpf/data/cluster_metrics.py +426 -0
  36. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/data/cms/postprocessing2.py +18 -4
  37. particleflow-3.2.0/mlpf/data/colliderml/clue.py +576 -0
  38. particleflow-3.2.0/mlpf/data/colliderml/cluster_common.py +152 -0
  39. particleflow-3.2.0/mlpf/data/colliderml/cluster_eval.py +357 -0
  40. particleflow-3.2.0/mlpf/data/colliderml/clustering.py +112 -0
  41. particleflow-3.2.0/mlpf/data/colliderml/make_test_fixture.py +293 -0
  42. particleflow-3.2.0/mlpf/data/colliderml/postprocessing.py +779 -0
  43. particleflow-3.2.0/mlpf/data/colliderml/radius_graph.py +409 -0
  44. particleflow-3.2.0/mlpf/data/colliderml/reader.py +114 -0
  45. particleflow-3.2.0/mlpf/data/colliderml/tracks.py +102 -0
  46. particleflow-3.2.0/mlpf/data/colliderml/truth.py +511 -0
  47. particleflow-3.2.0/mlpf/data/key4hep/postprocessing.py +2165 -0
  48. particleflow-3.2.0/mlpf/data/key4hep/prepare_idea_pipeline.py +60 -0
  49. particleflow-3.2.0/mlpf/data/target_building.py +532 -0
  50. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cld_pf_edm4hep/qq.py +5 -1
  51. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cld_pf_edm4hep/ttbar.py +5 -1
  52. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cld_pf_edm4hep/ww_fullhad.py +5 -1
  53. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cld_pf_edm4hep/zz.py +5 -1
  54. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cld_pf_edm4hep_hits/qq.py +5 -1
  55. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cld_pf_edm4hep_hits/ttbar.py +5 -1
  56. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cld_pf_edm4hep_hits/ww_fullhad.py +5 -1
  57. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cld_pf_edm4hep_hits/zz.py +5 -1
  58. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/clic_pf_edm4hep/qq.py +4 -1
  59. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/clic_pf_edm4hep/ttbar.py +4 -1
  60. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/clic_pf_edm4hep/ww_fullhad.py +4 -1
  61. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/clic_pf_edm4hep_hits/qq.py +4 -1
  62. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/clic_pf_edm4hep_hits/ttbar.py +4 -1
  63. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/clic_pf_edm4hep_hits/ww_fullhad.py +4 -1
  64. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cms_pf/cms_utils.py +1 -0
  65. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cms_pf/qcd.py +2 -1
  66. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cms_pf/qcd_nopu.py +2 -1
  67. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cms_pf/ttbar.py +2 -1
  68. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cms_pf/ttbar_nopu.py +2 -1
  69. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cms_pf/ztt.py +2 -1
  70. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/cms_pf/ztt_nopu.py +2 -1
  71. particleflow-3.2.0/mlpf/heptfds/colliderml_hits/ttbar.py +64 -0
  72. particleflow-3.2.0/mlpf/heptfds/colliderml_hits/ttbar_pu200.py +13 -0
  73. particleflow-3.2.0/mlpf/heptfds/colliderml_hits/utils.py +16 -0
  74. particleflow-3.2.0/mlpf/heptfds/colliderml_pf/ttbar.py +90 -0
  75. particleflow-3.2.0/mlpf/heptfds/colliderml_pf/ttbar_pu200.py +24 -0
  76. particleflow-3.2.0/mlpf/heptfds/colliderml_utils/utils.py +149 -0
  77. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/edm4hep_utils/utils_hits.py +7 -0
  78. particleflow-3.2.0/mlpf/heptfds/edm4hep_utils/utils_idea.py +173 -0
  79. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/heptfds/edm4hep_utils/utils_pf.py +1 -0
  80. particleflow-3.2.0/mlpf/heptfds/idea_pf_edm4hep/__init__.py +1 -0
  81. particleflow-3.2.0/mlpf/heptfds/idea_pf_edm4hep/qq.py +75 -0
  82. particleflow-3.2.0/mlpf/heptfds/idea_pf_edm4hep/ttbar.py +75 -0
  83. particleflow-3.2.0/mlpf/heptfds/idea_pf_edm4hep/ww_fullhad.py +75 -0
  84. particleflow-3.2.0/mlpf/heptfds/maia_pf_edm4hep/__init__.py +1 -0
  85. particleflow-3.2.0/mlpf/heptfds/maia_pf_edm4hep/ttbar.py +60 -0
  86. particleflow-3.2.0/mlpf/jet_utils.py +190 -0
  87. particleflow-3.2.0/mlpf/model/PFDataset.py +874 -0
  88. particleflow-3.2.0/mlpf/model/__init__.py +0 -0
  89. particleflow-3.2.0/mlpf/model/calo_probe.py +89 -0
  90. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/model/distributed_ray.py +12 -11
  91. particleflow-3.2.0/mlpf/model/gnnlsh.py +490 -0
  92. particleflow-3.2.0/mlpf/model/hept.py +481 -0
  93. particleflow-3.2.0/mlpf/model/heptv2.py +695 -0
  94. particleflow-3.2.0/mlpf/model/inference.py +308 -0
  95. particleflow-3.2.0/mlpf/model/instance_probe.py +152 -0
  96. particleflow-3.2.0/mlpf/model/litept.py +82 -0
  97. particleflow-3.2.0/mlpf/model/losses.py +316 -0
  98. particleflow-3.2.0/mlpf/model/lr_finder.py +253 -0
  99. particleflow-3.2.0/mlpf/model/mlpf.py +2005 -0
  100. particleflow-3.2.0/mlpf/model/monitoring.py +285 -0
  101. particleflow-3.2.0/mlpf/model/onnx_attention.py +211 -0
  102. particleflow-3.2.0/mlpf/model/onnx_graph.py +141 -0
  103. particleflow-3.2.0/mlpf/model/onnx_runtime.py +72 -0
  104. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/model/plots.py +23 -21
  105. particleflow-3.2.0/mlpf/model/reconstruction_diagnostics.py +261 -0
  106. particleflow-3.2.0/mlpf/model/set_decoder.py +747 -0
  107. particleflow-3.2.0/mlpf/model/set_losses.py +485 -0
  108. particleflow-3.2.0/mlpf/model/tracker_features.py +121 -0
  109. particleflow-3.2.0/mlpf/model/tracker_fit_loss.py +123 -0
  110. particleflow-3.2.0/mlpf/model/tracker_group_readout.py +85 -0
  111. particleflow-3.2.0/mlpf/model/tracker_momentum_readout.py +116 -0
  112. particleflow-3.2.0/mlpf/model/training.py +1999 -0
  113. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/model/utils.py +17 -8
  114. particleflow-3.2.0/mlpf/model/validation_metrics.py +377 -0
  115. particleflow-3.2.0/mlpf/model/validation_probes.py +208 -0
  116. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/optimizers/__init__.py +5 -3
  117. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/pipeline.py +23 -6
  118. particleflow-3.2.0/mlpf/plotting/__init__.py +0 -0
  119. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/plotting/draw_graphs.py +2 -2
  120. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/plotting/plot_utils.py +363 -83
  121. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/plotting/plot_validation.py +1 -1
  122. particleflow-3.2.0/mlpf/raytune/__init__.py +0 -0
  123. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/raytune/search_space.py +1 -1
  124. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/snakemake/produce_snakemake.py +26 -7
  125. particleflow-3.2.0/mlpf/standalone/__init__.py +0 -0
  126. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/standalone/dsl.py +1 -1
  127. particleflow-3.2.0/mlpf/standalone/eval.py +636 -0
  128. particleflow-3.2.0/mlpf/standalone/puppi.py +78 -0
  129. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/standalone/run_evolution.py +1 -1
  130. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/standalone/train.py +590 -361
  131. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/standalone_eval/key4hep/evaluator.py +1 -1
  132. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/standalone_eval/key4hep/plots.py +6 -6
  133. particleflow-3.2.0/mlpf/training_scenarios.py +672 -0
  134. particleflow-3.2.0/mlpf/training_submission.py +252 -0
  135. particleflow-3.2.0/ngt/probe-ort-kernels.py +34 -0
  136. particleflow-3.2.0/ngt/session-l40s.yaml +22 -0
  137. particleflow-3.2.0/ngt/session-w7900.yaml +21 -0
  138. particleflow-3.2.0/ngt/setup-qualification-cxx.py +42 -0
  139. {particleflow-3.1.0 → particleflow-3.2.0/particleflow.egg-info}/PKG-INFO +43 -85
  140. particleflow-3.2.0/particleflow.egg-info/SOURCES.txt +267 -0
  141. {particleflow-3.1.0 → particleflow-3.2.0}/particleflow.egg-info/requires.txt +13 -3
  142. {particleflow-3.1.0 → particleflow-3.2.0}/particleflow.egg-info/top_level.txt +2 -0
  143. {particleflow-3.1.0 → particleflow-3.2.0}/particleflow_spec.yaml +655 -93
  144. {particleflow-3.1.0 → particleflow-3.2.0}/pyproject.toml +35 -5
  145. particleflow-3.2.0/tests/test_attention24_export.py +146 -0
  146. particleflow-3.2.0/tests/test_attention_export_profiles.py +396 -0
  147. particleflow-3.2.0/tests/test_attention_runtime.py +84 -0
  148. {particleflow-3.1.0 → particleflow-3.2.0}/tests/test_attention_stability.py +8 -38
  149. particleflow-3.2.0/tests/test_backbone_task_queries.py +266 -0
  150. particleflow-3.2.0/tests/test_calo_continuation_probe.py +60 -0
  151. particleflow-3.2.0/tests/test_checkpoint_restore.py +123 -0
  152. particleflow-3.2.0/tests/test_cld_gun_samples.py +33 -0
  153. particleflow-3.2.0/tests/test_cluster_metrics.py +149 -0
  154. particleflow-3.2.0/tests/test_colliderml_adapter.py +109 -0
  155. particleflow-3.2.0/tests/test_colliderml_clustering.py +225 -0
  156. particleflow-3.2.0/tests/test_colliderml_postprocessing.py +139 -0
  157. particleflow-3.2.0/tests/test_colliderml_surrogates.py +231 -0
  158. particleflow-3.2.0/tests/test_colliderml_truth.py +406 -0
  159. particleflow-3.2.0/tests/test_colliderml_writer.py +49 -0
  160. particleflow-3.2.0/tests/test_config_overrides.py +315 -0
  161. particleflow-3.2.0/tests/test_dataloader.py +512 -0
  162. particleflow-3.2.0/tests/test_detector_event_displays.py +90 -0
  163. particleflow-3.2.0/tests/test_detector_jet_comparison.py +50 -0
  164. particleflow-3.2.0/tests/test_detector_plot_layout.py +25 -0
  165. {particleflow-3.1.0 → particleflow-3.2.0}/tests/test_distributed_sampler.py +4 -0
  166. {particleflow-3.1.0 → particleflow-3.2.0}/tests/test_dsl_interleaving.py +4 -0
  167. particleflow-3.2.0/tests/test_frozen_calibration.py +32 -0
  168. particleflow-3.2.0/tests/test_frozen_tracker_filtering.py +54 -0
  169. particleflow-3.2.0/tests/test_frozen_tracker_readout.py +102 -0
  170. particleflow-3.2.0/tests/test_group_validation_losses.py +94 -0
  171. particleflow-3.2.0/tests/test_grouped_tracking.py +105 -0
  172. particleflow-3.2.0/tests/test_hept_layers.py +239 -0
  173. {particleflow-3.1.0 → particleflow-3.2.0}/tests/test_hept_utils.py +5 -1
  174. particleflow-3.2.0/tests/test_heptv2.py +121 -0
  175. particleflow-3.2.0/tests/test_heptv2_checkpointing.py +112 -0
  176. particleflow-3.2.0/tests/test_heptv2_export.py +203 -0
  177. particleflow-3.2.0/tests/test_hit_feature_engineering.py +212 -0
  178. particleflow-3.2.0/tests/test_hit_instance_probe.py +40 -0
  179. particleflow-3.2.0/tests/test_idea_pipeline.py +138 -0
  180. particleflow-3.2.0/tests/test_instance_ari_logging.py +55 -0
  181. particleflow-3.2.0/tests/test_interleaved_shard_sampler.py +276 -0
  182. particleflow-3.2.0/tests/test_iterators.py +217 -0
  183. particleflow-3.2.0/tests/test_jet_utils.py +138 -0
  184. particleflow-3.2.0/tests/test_key4hep_hit_postprocessing.py +203 -0
  185. particleflow-3.2.0/tests/test_local_available_spec.py +79 -0
  186. particleflow-3.2.0/tests/test_lr_finder.py +145 -0
  187. {particleflow-3.1.0 → particleflow-3.2.0}/tests/test_lr_schedule.py +46 -3
  188. particleflow-3.2.0/tests/test_maia_pipeline.py +96 -0
  189. particleflow-3.2.0/tests/test_mlpf_models.py +334 -0
  190. particleflow-3.2.0/tests/test_onnx_export.py +209 -0
  191. particleflow-3.2.0/tests/test_optimizer.py +57 -0
  192. {particleflow-3.1.0 → particleflow-3.2.0}/tests/test_pfdataset_logic.py +69 -0
  193. {particleflow-3.1.0 → particleflow-3.2.0}/tests/test_pipeline_config.py +9 -5
  194. particleflow-3.2.0/tests/test_plot_training_evolution.py +31 -0
  195. particleflow-3.2.0/tests/test_postprocessing_idea.py +133 -0
  196. particleflow-3.2.0/tests/test_postprocessing_merge.py +160 -0
  197. particleflow-3.2.0/tests/test_reconstruction_diagnostics.py +155 -0
  198. particleflow-3.2.0/tests/test_reconstruction_event_assets.py +71 -0
  199. {particleflow-3.1.0 → particleflow-3.2.0}/tests/test_resumable_sampler.py +4 -0
  200. particleflow-3.2.0/tests/test_set_prediction.py +937 -0
  201. {particleflow-3.1.0 → particleflow-3.2.0}/tests/test_shard_consecutive_sampler.py +4 -0
  202. particleflow-3.2.0/tests/test_simple_mha_masking.py +194 -0
  203. {particleflow-3.1.0 → particleflow-3.2.0}/tests/test_standalone_attention.py +7 -0
  204. particleflow-3.2.0/tests/test_standard_loss.py +244 -0
  205. particleflow-3.2.0/tests/test_target_building.py +42 -0
  206. particleflow-3.2.0/tests/test_task_loss_weights.py +80 -0
  207. particleflow-3.2.0/tests/test_tracker_fit_diagnostic.py +31 -0
  208. particleflow-3.2.0/tests/test_tracker_fit_loss.py +118 -0
  209. particleflow-3.2.0/tests/test_tracker_grouping_losses.py +127 -0
  210. particleflow-3.2.0/tests/test_tracker_momentum_features.py +162 -0
  211. particleflow-3.2.0/tests/test_tracker_momentum_readout.py +185 -0
  212. particleflow-3.2.0/tests/test_train_epoch.py +80 -0
  213. particleflow-3.2.0/tests/test_training_convergence_plot.py +24 -0
  214. particleflow-3.2.0/tests/test_training_diagnostics.py +111 -0
  215. particleflow-3.2.0/tests/test_training_scenarios.py +1046 -0
  216. particleflow-3.2.0/tests/test_training_seed.py +46 -0
  217. particleflow-3.2.0/tests/test_training_submission.py +312 -0
  218. {particleflow-3.1.0 → particleflow-3.2.0}/tests/test_utils.py +4 -0
  219. particleflow-3.2.0/tests/test_validation_metrics.py +216 -0
  220. particleflow-3.2.0/tests/test_validation_probes.py +82 -0
  221. particleflow-3.1.0/README.md +0 -153
  222. particleflow-3.1.0/mlpf/conf.py +0 -720
  223. particleflow-3.1.0/mlpf/data/cms/prepare_args.py +0 -48
  224. particleflow-3.1.0/mlpf/data/cms/prepare_args_val.py +0 -29
  225. particleflow-3.1.0/mlpf/data/key4hep/plot_postprocessing.py +0 -380
  226. particleflow-3.1.0/mlpf/data/key4hep/postprocessing.py +0 -1480
  227. particleflow-3.1.0/mlpf/jet_utils.py +0 -133
  228. particleflow-3.1.0/mlpf/model/PFDataset.py +0 -571
  229. particleflow-3.1.0/mlpf/model/gnn_lsh.py +0 -320
  230. particleflow-3.1.0/mlpf/model/inference.py +0 -295
  231. particleflow-3.1.0/mlpf/model/losses.py +0 -222
  232. particleflow-3.1.0/mlpf/model/mlpf.py +0 -715
  233. particleflow-3.1.0/mlpf/model/monitoring.py +0 -118
  234. particleflow-3.1.0/mlpf/model/training.py +0 -946
  235. particleflow-3.1.0/mlpf/standalone/eval.py +0 -415
  236. particleflow-3.1.0/particleflow.egg-info/SOURCES.txt +0 -123
  237. particleflow-3.1.0/tests/test_config_overrides.py +0 -142
  238. particleflow-3.1.0/tests/test_dataloader.py +0 -214
  239. particleflow-3.1.0/tests/test_iterators.py +0 -218
  240. particleflow-3.1.0/tests/test_mlpf_models.py +0 -117
  241. {particleflow-3.1.0 → particleflow-3.2.0}/LICENSE +0 -0
  242. {particleflow-3.1.0 → particleflow-3.2.0}/MANIFEST.in +0 -0
  243. {particleflow-3.1.0 → particleflow-3.2.0}/habana/gaudi-pod-python-v19-1hpu.yaml +0 -0
  244. {particleflow-3.1.0 → particleflow-3.2.0}/habana/gaudi-pod-python-v19-2hpu.yaml +0 -0
  245. {particleflow-3.1.0 → particleflow-3.2.0}/habana/gaudi-pod-python-v19-3hpu.yaml +0 -0
  246. {particleflow-3.1.0 → particleflow-3.2.0}/habana/gaudi-pod-python-v19-4hpu.yaml +0 -0
  247. {particleflow-3.1.0 → particleflow-3.2.0}/habana/gaudi-pod-python-v19-5hpu.yaml +0 -0
  248. {particleflow-3.1.0 → particleflow-3.2.0}/habana/gaudi-pod-python-v19-6hpu.yaml +0 -0
  249. {particleflow-3.1.0 → particleflow-3.2.0}/habana/gaudi-pod-python-v19-7hpu.yaml +0 -0
  250. {particleflow-3.1.0 → particleflow-3.2.0}/habana/gaudi-pod-python-v19-8hpu.yaml +0 -0
  251. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/__init__.py +0 -0
  252. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/customizations.py +0 -0
  253. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/data/__init__.py +0 -0
  254. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/data/cms/__init__.py +0 -0
  255. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/data/cms/plot_cms.py +0 -0
  256. {particleflow-3.1.0/mlpf/data/key4hep → particleflow-3.2.0/mlpf/data/colliderml}/__init__.py +0 -0
  257. {particleflow-3.1.0/mlpf/heptfds → particleflow-3.2.0/mlpf/data/key4hep}/__init__.py +0 -0
  258. {particleflow-3.1.0/mlpf/heptfds/cld_pf_edm4hep → particleflow-3.2.0/mlpf/heptfds}/__init__.py +0 -0
  259. {particleflow-3.1.0/mlpf/heptfds/cld_pf_edm4hep_hits → particleflow-3.2.0/mlpf/heptfds/cld_pf_edm4hep}/__init__.py +0 -0
  260. {particleflow-3.1.0/mlpf/heptfds/clic_pf_edm4hep → particleflow-3.2.0/mlpf/heptfds/cld_pf_edm4hep_hits}/__init__.py +0 -0
  261. {particleflow-3.1.0/mlpf/heptfds/clic_pf_edm4hep_hits → particleflow-3.2.0/mlpf/heptfds/clic_pf_edm4hep}/__init__.py +0 -0
  262. {particleflow-3.1.0/mlpf/heptfds/cms_pf → particleflow-3.2.0/mlpf/heptfds/clic_pf_edm4hep_hits}/__init__.py +0 -0
  263. {particleflow-3.1.0/mlpf/heptfds/edm4hep_utils → particleflow-3.2.0/mlpf/heptfds/cms_pf}/__init__.py +0 -0
  264. {particleflow-3.1.0/mlpf/model → particleflow-3.2.0/mlpf/heptfds/colliderml_hits}/__init__.py +0 -0
  265. {particleflow-3.1.0/mlpf/plotting → particleflow-3.2.0/mlpf/heptfds/colliderml_pf}/__init__.py +0 -0
  266. {particleflow-3.1.0/mlpf/raytune → particleflow-3.2.0/mlpf/heptfds/colliderml_utils}/__init__.py +0 -0
  267. {particleflow-3.1.0/mlpf/standalone → particleflow-3.2.0/mlpf/heptfds/edm4hep_utils}/__init__.py +0 -0
  268. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/logger.py +0 -0
  269. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/optimizers/lamb.py +0 -0
  270. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/plotting/cms_fwlite.py +0 -0
  271. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/plotting/cmssw_validation_data.py +0 -0
  272. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/plotting/corrections.py +0 -0
  273. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/plotting/data_preparation.py +0 -0
  274. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/plotting/plot_jet_response_comparison_v1.py +0 -0
  275. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/plotting/plot_jet_response_comparison_v2.py +0 -0
  276. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/plotting/plot_loss_curves.py +0 -0
  277. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/plotting/plot_met_validation.py +0 -0
  278. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/plotting/utils.py +0 -0
  279. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/raytune/utils.py +0 -0
  280. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/snakemake/produce_cms_validation_snakemake.py +0 -0
  281. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/snakemake/produce_validation_snakemake.py +0 -0
  282. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/standalone/plot_evolution.py +0 -0
  283. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/timing.py +0 -0
  284. {particleflow-3.1.0 → particleflow-3.2.0}/mlpf/utils.py +0 -0
  285. {particleflow-3.1.0 → particleflow-3.2.0}/particleflow.egg-info/dependency_links.txt +0 -0
  286. {particleflow-3.1.0 → particleflow-3.2.0}/particleflow.egg-info/entry_points.txt +0 -0
  287. {particleflow-3.1.0 → particleflow-3.2.0}/setup.cfg +0 -0
  288. {particleflow-3.1.0 → particleflow-3.2.0}/validation_cms.yaml +0 -0
  289. {particleflow-3.1.0 → particleflow-3.2.0}/validation_key4hep.yaml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: particleflow
3
- Version: 3.1.0
3
+ Version: 3.2.0
4
4
  Summary: Machine Learning for Particle Flow Reconstruction
5
5
  Author: Farouk Mokhtar, Eric Wulff, Javier Duarte
6
6
  Author-email: Joosep Pata <joosep.pata@cern.ch>
@@ -20,8 +20,9 @@ Requires-Dist: click
20
20
  Requires-Dist: comet-ml
21
21
  Requires-Dist: fastjet
22
22
  Requires-Dist: fsspec
23
+ Requires-Dist: importlib-resources
23
24
  Requires-Dist: jupyter
24
- Requires-Dist: jupyter-book
25
+ Requires-Dist: jupyter-book>=2.1.6
25
26
  Requires-Dist: keras
26
27
  Requires-Dist: keras-tuner
27
28
  Requires-Dist: matplotlib
@@ -32,13 +33,13 @@ Requires-Dist: notebook
32
33
  Requires-Dist: numba
33
34
  Requires-Dist: numpy
34
35
  Requires-Dist: onnx
35
- Requires-Dist: onnxruntime
36
36
  Requires-Dist: onnxscript
37
37
  Requires-Dist: pandas
38
38
  Requires-Dist: papermill
39
39
  Requires-Dist: plotly
40
40
  Requires-Dist: pre-commit
41
41
  Requires-Dist: protobuf~=5.28.3
42
+ Requires-Dist: psutil
42
43
  Requires-Dist: pyarrow~=18.1.0; sys_platform == "linux"
43
44
  Requires-Dist: pyarrow~=22.0.0; sys_platform == "darwin"
44
45
  Requires-Dist: pydantic
@@ -50,12 +51,15 @@ Requires-Dist: scipy
50
51
  Requires-Dist: seaborn
51
52
  Requires-Dist: setGPU
52
53
  Requires-Dist: snakemake
54
+ Requires-Dist: tabulate
53
55
  Requires-Dist: tensorboard
54
56
  Requires-Dist: tensorflow~=2.20.0
55
57
  Requires-Dist: tensorflow-datasets~=4.9.9
56
58
  Requires-Dist: tensorflow-metadata~=1.17.3
57
- Requires-Dist: torch
59
+ Requires-Dist: torch==2.11.0
60
+ Requires-Dist: torchvision
58
61
  Requires-Dist: torch_runstats
62
+ Requires-Dist: torch-scatter
59
63
  Requires-Dist: tqdm
60
64
  Requires-Dist: uproot
61
65
  Requires-Dist: umap-learn
@@ -63,6 +67,12 @@ Requires-Dist: vector
63
67
  Requires-Dist: zenodo_get
64
68
  Requires-Dist: huggingface_hub
65
69
  Requires-Dist: apache_beam~=2.71.0; sys_platform == "linux"
70
+ Requires-Dist: spconv-cu124; sys_platform == "linux"
71
+ Requires-Dist: addict
72
+ Requires-Dist: timm
73
+ Requires-Dist: colorhash
74
+ Requires-Dist: flash-attn; sys_platform == "linux"
75
+ Requires-Dist: colliderml>=0.4.2
66
76
  Dynamic: license-file
67
77
 
68
78
  ### **Summary**
@@ -70,6 +80,10 @@ Dynamic: license-file
70
80
  **ML-based particle flow (MLPF)** focuses on developing full event reconstruction for particle detectors using computationally scalable and flexible machine learning models. The project aims to improve particle flow reconstruction across various detector environments, including CMS, as well as future detectors via Key4HEP.
71
81
  We build on existing, open-source simulation software by the experimental collaborations.
72
82
 
83
+ **Documentation: [jpata.github.io/particleflow](https://jpata.github.io/particleflow/)**
84
+
85
+ Read the documentation for the physics overview, installation and workflow guides, current capabilities, publications, and development priorities. The Markdown source is in [`docs/`](docs/index.md).
86
+
73
87
  <p float="left">
74
88
  <img src="images/diagram.svg" alt="High-level overview" width="800"/>
75
89
  </p>
@@ -80,11 +94,24 @@ We build on existing, open-source simulation software by the experimental collab
80
94
  You can use `uv` to set up the repo and test that everything works:
81
95
  ```
82
96
  git clone --recurse-submodules https://github.com/jpata/particleflow.git
83
- uv sync
97
+ uv sync --project envs/ort-gpu
84
98
  uv run ./scripts/local_test_cld.sh
85
99
  uv run ./scripts/local_test_cms.sh
86
100
  ```
87
101
 
102
+ Before opening a pull request, run the lightweight quality checks with
103
+ `uvx --python 3.12 pre-commit run --all-files`. The cyclomatic-complexity check covers the
104
+ first-party `mlpf/` package (not the vendored detector configuration under
105
+ `mlpf/data/key4hep/gen/`) and rejects new functions above the transitional
106
+ complexity ceiling. Prefer small, single-purpose helpers when generating or
107
+ refactoring code; a local `# noqa: C901` should be a reviewed exception, not an
108
+ automatic workaround.
109
+
110
+ To run the same all-files check before every local commit, enable the repository
111
+ hook with `git config core.hooksPath .githooks`. The hook uses the same pre-commit
112
+ flags and Python version as GitHub Actions. It requires `uv`, which installs the
113
+ lint tool and Python 3.12 if needed.
114
+
88
115
  Alternatively, you can use a prepared container:
89
116
  ```
90
117
  apptainer exec --nv https://jpata.web.cern.ch/jpata/pytorch-20260305-08d6950.sif ./scripts/local_test_cld.sh
@@ -95,38 +122,16 @@ apptainer exec --nv https://jpata.web.cern.ch/jpata/pytorch-20260305-08d6950.sif
95
122
 
96
123
  ### **Datasets**
97
124
 
98
- If you wish to train on pre-made datasets, you can download them from the [Hugging Face Hub](https://huggingface.co/datasets/jpata/particleflow).
99
- To download a specific dataset and split (e.g., CLD, PF setup, configuration split 1):
100
- ```bash
101
- uv run hf download jpata/particleflow \
102
- --include "tensorflow_datasets/cld/cld_edm_*_pf/1/*" \
103
- --local-dir data/tfds \
104
- --repo-type dataset
105
- ```
106
- This will download the requested files into `data/tfds/tensorflow_datasets/cld/cld_edm_*_pf/1/`.
107
-
108
- ### **Dataset Upload**
109
-
110
- To upload a generated dataset to the Hugging Face Hub:
111
- ```bash
112
- uv run python3 scripts/upload_hf.py --repo jpata/particleflow --spec particleflow_spec.yaml clic 1
113
- ```
125
+ See the user documentation to [choose a dataset](https://jpata.github.io/particleflow/datasets/catalog), [download and verify published TFDS data](https://jpata.github.io/particleflow/datasets/download), or [produce and publish a dataset](https://jpata.github.io/particleflow/datasets/generate).
114
126
 
115
127
  ### **Training**
116
128
 
117
- Run the training on the downloaded data configuration split
118
- ```
119
- uv run \
120
- python mlpf/pipeline.py \
121
- --spec-file particleflow_spec.yaml \
122
- --production cld \
123
- --model-name pyg-cld-v1 \
124
- --data-dir data/tfds/tensorflow_datasets/cld \
125
- train \
126
- --data_config 1 \
127
- --gpu_batch_multiplier 4 \
128
- --gpus 1
129
- ```
129
+ The [training guide](https://jpata.github.io/particleflow/training/train) provides a verified CPU check, a bounded GPU example, expected outputs, and checkpoint continuation.
130
+
131
+ For CLD hit-based reconstruction, the recommended model is `pyg-cld-hits-heptv2-set-v1`
132
+ (grouped HEPTv2 with tracker-neighborhood features), using the
133
+ [`cld_pf_heptv2_default_50k` training scenario](configs/training/scenarios/cld_pf_heptv2_default_50k.yaml).
134
+ See the [scenario guide](configs/training/README.md) for launch commands.
130
135
 
131
136
  ### **Model Upload**
132
137
 
@@ -137,58 +142,11 @@ uv run python3 scripts/upload_model_hf.py experiments/pyg-clic-hits-v1_clic_2026
137
142
 
138
143
  ### **Model Download & Evaluation**
139
144
 
140
- To download a specific model (e.g., CLD, cluster-based, version v3.1.0) and run evaluation on a sample ROOT file:
145
+ The [Key4HEP evaluation guide](https://jpata.github.io/particleflow/validation/key4hep) downloads a published checkpoint and runs it on an example EDM4hep ROOT file. The [validation overview](https://jpata.github.io/particleflow/validation/overview) explains which checks are needed before interpreting physics performance.
141
146
 
142
- 1. Download the model files from the Hugging Face Hub:
143
- ```bash
144
- uv run hf download jpata/particleflow \
145
- --include "cld/clusters/v3.1.0/pyg-cld-v1_cld_20260328_101206_533260/*" \
146
- --local-dir models \
147
- --repo-type model
148
- ```
147
+ ## **End-to-end workflow**
149
148
 
150
- 2. Run the evaluation script:
151
- ```bash
152
-
153
- mkdir -p local_test_data/cld/p8_ee_ttbar_ecm365/root
154
- cd local_test_data/cld/p8_ee_ttbar_ecm365/root
155
- wget -q --no-check-certificate -nc https://jpata.web.cern.ch/jpata/mlpf/cld/v1.2.3_key4hep_2025-05-29_CLD_f1e8f9/gen/root/reco_p8_ee_ttbar_ecm365_300000.root
156
- cd ../../..
157
-
158
- uv run python3 mlpf/standalone_eval/key4hep/evaluator.py \
159
- --input local_test_data/cld/p8_ee_ttbar_ecm365/root/reco_p8_ee_ttbar_ecm365_300000.root \
160
- --checkpoint models/cld/clusters/v3.1.0/pyg-cld-v1_cld_20260328_101206_533260/checkpoints/best_weights.pth \
161
- --detector cld \
162
- --outpath eval_results.parquet
163
- ```
164
- The input ROOT file should be in the [EDM4hep format](https://github.com/key4hep/EDM4hep).
165
-
166
- ## **End-to-end workflow: dataset generation and model training**
167
-
168
- The full data generation, model training, and validation workflow are managed using [Pixi](https://pixi.sh/) for environment and [Snakemake](https://snakemake.readthedocs.io/) for job orchestration. Apptainer images are used to provide the software for the steps for different detetors.
169
-
170
- ```bash
171
- #ensure all gen configs are downloaded
172
- git submodule update --init --recursive
173
-
174
- # install pixi, restart your shell or source your .bashrc after this. only do once.
175
- curl -fsSL https://pixi.sh/install.sh | bash
176
-
177
- # copy the configuration for your site. only do once.
178
- ln -s configs/{local,tallinn,lxplus}/pixi.toml pixi.toml
179
-
180
- # initalize the orhcestrator python environment. only do this once.
181
- pixi run init
182
-
183
- # generate the snakefile (will overwrite the defaults)
184
- PROD={cms_run3,clic,cld} pixi run snakefile
185
-
186
- # run the steps (this will take many days and thousands of jobs), so run inside screen or tmux
187
- PROD={cms_run3,clic,cld} pixi run gen
188
- PROD={cms_run3,clic,cld} pixi run post
189
- PROD={cms_run3,clic,cld} pixi run tfds
190
- PROD={cms_run3,clic,cld} pixi run train
191
- ```
149
+ The [dataset-generation guide](https://jpata.github.io/particleflow/datasets/generate) documents the Pixi/Snakemake pipeline from detector simulation through validated TFDS output. Training, evaluation, physics validation, and ONNX validation are covered in the [user documentation](https://jpata.github.io/particleflow/).
192
150
 
193
151
  ---
194
152
 
@@ -217,4 +175,4 @@ You are welcome to reuse the code in accordance with the [LICENSE](https://githu
217
175
 
218
176
  **Contact**
219
177
 
220
- For collaboration ideas that do not fit into the categories above, please [get in touch via GitHub Discussions](https://github.com/jpata/particleflow/discussions/categories/general).
178
+ For other collaboration ideas, please [get in touch via GitHub Discussions](https://github.com/jpata/particleflow/discussions/categories/general).
@@ -0,0 +1,101 @@
1
+ ### **Summary**
2
+
3
+ **ML-based particle flow (MLPF)** focuses on developing full event reconstruction for particle detectors using computationally scalable and flexible machine learning models. The project aims to improve particle flow reconstruction across various detector environments, including CMS, as well as future detectors via Key4HEP.
4
+ We build on existing, open-source simulation software by the experimental collaborations.
5
+
6
+ **Documentation: [jpata.github.io/particleflow](https://jpata.github.io/particleflow/)**
7
+
8
+ Read the documentation for the physics overview, installation and workflow guides, current capabilities, publications, and development priorities. The Markdown source is in [`docs/`](docs/index.md).
9
+
10
+ <p float="left">
11
+ <img src="images/diagram.svg" alt="High-level overview" width="800"/>
12
+ </p>
13
+
14
+ ---
15
+
16
+ ### **TLDR; I just want to run the code**
17
+ You can use `uv` to set up the repo and test that everything works:
18
+ ```
19
+ git clone --recurse-submodules https://github.com/jpata/particleflow.git
20
+ uv sync --project envs/ort-gpu
21
+ uv run ./scripts/local_test_cld.sh
22
+ uv run ./scripts/local_test_cms.sh
23
+ ```
24
+
25
+ Before opening a pull request, run the lightweight quality checks with
26
+ `uvx --python 3.12 pre-commit run --all-files`. The cyclomatic-complexity check covers the
27
+ first-party `mlpf/` package (not the vendored detector configuration under
28
+ `mlpf/data/key4hep/gen/`) and rejects new functions above the transitional
29
+ complexity ceiling. Prefer small, single-purpose helpers when generating or
30
+ refactoring code; a local `# noqa: C901` should be a reviewed exception, not an
31
+ automatic workaround.
32
+
33
+ To run the same all-files check before every local commit, enable the repository
34
+ hook with `git config core.hooksPath .githooks`. The hook uses the same pre-commit
35
+ flags and Python version as GitHub Actions. It requires `uv`, which installs the
36
+ lint tool and Python 3.12 if needed.
37
+
38
+ Alternatively, you can use a prepared container:
39
+ ```
40
+ apptainer exec --nv https://jpata.web.cern.ch/jpata/pytorch-20260305-08d6950.sif ./scripts/local_test_cld.sh
41
+ apptainer exec --nv https://jpata.web.cern.ch/jpata/pytorch-20260305-08d6950.sif ./scripts/local_test_cms.sh
42
+ ```
43
+
44
+
45
+
46
+ ### **Datasets**
47
+
48
+ See the user documentation to [choose a dataset](https://jpata.github.io/particleflow/datasets/catalog), [download and verify published TFDS data](https://jpata.github.io/particleflow/datasets/download), or [produce and publish a dataset](https://jpata.github.io/particleflow/datasets/generate).
49
+
50
+ ### **Training**
51
+
52
+ The [training guide](https://jpata.github.io/particleflow/training/train) provides a verified CPU check, a bounded GPU example, expected outputs, and checkpoint continuation.
53
+
54
+ For CLD hit-based reconstruction, the recommended model is `pyg-cld-hits-heptv2-set-v1`
55
+ (grouped HEPTv2 with tracker-neighborhood features), using the
56
+ [`cld_pf_heptv2_default_50k` training scenario](configs/training/scenarios/cld_pf_heptv2_default_50k.yaml).
57
+ See the [scenario guide](configs/training/README.md) for launch commands.
58
+
59
+ ### **Model Upload**
60
+
61
+ To upload a trained model to the Hugging Face Hub:
62
+ ```bash
63
+ uv run python3 scripts/upload_model_hf.py experiments/pyg-clic-hits-v1_clic_20260328_144021_479374 --version v3.1.0
64
+ ```
65
+
66
+ ### **Model Download & Evaluation**
67
+
68
+ The [Key4HEP evaluation guide](https://jpata.github.io/particleflow/validation/key4hep) downloads a published checkpoint and runs it on an example EDM4hep ROOT file. The [validation overview](https://jpata.github.io/particleflow/validation/overview) explains which checks are needed before interpreting physics performance.
69
+
70
+ ## **End-to-end workflow**
71
+
72
+ The [dataset-generation guide](https://jpata.github.io/particleflow/datasets/generate) documents the Pixi/Snakemake pipeline from detector simulation through validated TFDS output. Training, evaluation, physics validation, and ONNX validation are covered in the [user documentation](https://jpata.github.io/particleflow/).
73
+
74
+ ---
75
+
76
+ ### **Publications**
77
+
78
+ The following publications trace the development of MLPF from early proofs of concept to full detector simulations and fine-tuning studies across detectors.
79
+
80
+ * [2021] First full-event GNN demonstration of MLPF: [Paper](https://doi.org/10.1140/epjc/s10052-021-09158-w) [Code](https://zenodo.org/records/4559587) [Dataset](https://doi.org/10.5281/zenodo.4559324)
81
+ * [2021] First demonstration in CMS Run 3: [Paper](http://dx.doi.org/10.1088/1742-6596/2438/1/012100) [CMS-DP](https://cds.cern.ch/record/2792320)
82
+ * [2022] Improved performance in CMS Run 3: [CMS-DP](http://cds.cern.ch/record/2842375)
83
+ * [2024] Improved performance with full simulation for future colliders: [Paper](https://doi.org/10.1038/s42005-024-01599-5) [Code](https://zenodo.org/records/10928968) [Results](https://doi.org/10.5281/zenodo.10567397)
84
+ * [2025] Fine-tuning across detectors: [Paper](https://doi.org/10.1103/PhysRevD.111.092015) [Code](https://zenodo.org/records/14930299)
85
+ * [2026] CMS Run 3 full results: [Paper](https://arxiv.org/abs/2601.17554) [CMS-DP](https://cds.cern.ch/record/2937578) [Code](https://zenodo.org/records/15573658)
86
+
87
+ ---
88
+
89
+ ### **Citations and Reuse**
90
+
91
+ You are welcome to reuse the code in accordance with the [LICENSE](https://github.com/jpata/particleflow/blob/main/LICENSE).
92
+
93
+ **How to Cite**
94
+
95
+ 1. **Academic Work:** Please cite the specific papers listed in the **Publications** section above relevant to the method you are using (e.g., initial GNN idea, fine-tuning, or specific detector studies).
96
+ 2. **Code Usage:** If you use the code significantly for research, please cite the specific [tagged version from Zenodo](https://zenodo.org/search?q=parent.id%3A4452541&f=allversions%3Atrue&l=list&p=1&s=10&sort=version).
97
+ 3. **Dataset Usage:** Cite the [appropriate dataset](https://zenodo.org/search?q=mlpf&f=allversions%3Atrue&f=resource_type%3Adataset&l=list&p=1&s=10&sort=version) via the Zenodo link and the corresponding paper.
98
+
99
+ **Contact**
100
+
101
+ For other collaboration ideas, please [get in touch via GitHub Discussions](https://github.com/jpata/particleflow/discussions/categories/general).
@@ -0,0 +1,19 @@
1
+ name: flatiron_a100
2
+ gpus: 4
3
+ data_dir:
4
+ cld: /mnt/ceph/users/${USER}/mlpf/cld/v1.2.5_key4hep_2025-05-29/tfds
5
+ clic: /mnt/ceph/users/${USER}/mlpf/clic/v1.2.5_key4hep_2025-05-29/tfds
6
+ colliderml: /mnt/ceph/users/${USER}/tensorflow_datasets/colliderml
7
+ experiments_dir: /mnt/home/${USER}/particleflow/experiments
8
+ runtime_overrides:
9
+ dtype: bfloat16
10
+ num_workers: 8
11
+ prefetch_factor: 2
12
+ model.attention.use_flash_attn_varlen: false
13
+ slurm:
14
+ partition: gpu
15
+ constraint: a100
16
+ time: "12:00:00"
17
+ nodes: 1
18
+ tasks_per_node: 1
19
+ cpus_per_task: 64
@@ -0,0 +1,19 @@
1
+ name: flatiron_h100
2
+ gpus: 8
3
+ data_dir:
4
+ cld: /mnt/ceph/users/${USER}/mlpf/cld/v1.2.5_key4hep_2025-05-29/tfds
5
+ clic: /mnt/ceph/users/${USER}/mlpf/clic/v1.2.5_key4hep_2025-05-29/tfds
6
+ colliderml: /mnt/ceph/users/${USER}/tensorflow_datasets/colliderml
7
+ experiments_dir: /mnt/home/${USER}/particleflow/experiments
8
+ runtime_overrides:
9
+ dtype: bfloat16
10
+ num_workers: 8
11
+ prefetch_factor: 2
12
+ model.attention.use_flash_attn_varlen: false
13
+ slurm:
14
+ partition: gpu
15
+ constraint: h100
16
+ time: "48:00:00"
17
+ nodes: 1
18
+ tasks_per_node: 1
19
+ cpus_per_task: 64
@@ -0,0 +1,19 @@
1
+ name: flatiron_h200
2
+ gpus: 8
3
+ data_dir:
4
+ cld: /mnt/ceph/users/${USER}/mlpf/cld/v1.2.5_key4hep_2025-05-29/tfds
5
+ clic: /mnt/ceph/users/${USER}/mlpf/clic/v1.2.5_key4hep_2025-05-29/tfds
6
+ colliderml: /mnt/ceph/users/${USER}/tensorflow_datasets/colliderml
7
+ experiments_dir: /mnt/home/${USER}/particleflow/experiments
8
+ runtime_overrides:
9
+ dtype: bfloat16
10
+ num_workers: 8
11
+ prefetch_factor: 2
12
+ model.attention.use_flash_attn_varlen: false
13
+ slurm:
14
+ partition: gpuxl
15
+ constraint: h200
16
+ time: "48:00:00"
17
+ nodes: 1
18
+ tasks_per_node: 1
19
+ cpus_per_task: 64
@@ -0,0 +1,13 @@
1
+ name: local
2
+ gpus: 1
3
+ data_dir:
4
+ cld: /mnt/work/mlpf/tensorflow_datasets/cld
5
+ clic: /mnt/work/mlpf/tensorflow_datasets/clic
6
+ experiments_dir: experiments
7
+ environment:
8
+ PF_SITE: local
9
+ runtime_overrides:
10
+ dtype: bfloat16
11
+ num_workers: 8
12
+ prefetch_factor: 4
13
+ model.attention.use_flash_attn_varlen: false
@@ -0,0 +1,40 @@
1
+ name: lumi_mi250x
2
+ gpus: 8
3
+ # The LAIF wrapper activates the environment before launching the scenario.
4
+ python_command: [python3]
5
+ data_dir:
6
+ cld: /scratch/project_465001293/joosep/mlpf/cld/v1.2.5_key4hep_2025-05-29/tfds
7
+ clic: /scratch/project_465001293/joosep/mlpf/clic/v1.2.5_key4hep_2025-05-29/tfds
8
+ cms_run3: /scratch/project_465001293/joosep/mlpf/cms/2.8.0/
9
+ experiments_dir: /scratch/project_465001293/${USER}/particleflow/experiments
10
+ environment:
11
+ MIOPEN_USER_DB_PATH: /tmp/${USER}-${SLURM_JOB_ID}-miopen-cache
12
+ MIOPEN_CUSTOM_CACHE_DIR: /tmp/${USER}-${SLURM_JOB_ID}-miopen-cache
13
+ ROCM_PATH: /opt/rocm
14
+ KERAS_BACKEND: torch
15
+ # Eight DDP ranks share the 32 requested CPU cores. Limit library thread
16
+ # pools so they do not each try to consume the full allocation.
17
+ OMP_NUM_THREADS: "4"
18
+ PYTHONUNBUFFERED: "1"
19
+ NCCL_SOCKET_IFNAME: hsn
20
+ NCCL_NET_GDR_LEVEL: "3"
21
+ runtime_overrides:
22
+ # LAIF PyTorch 2.10 cannot compile the dynamic hit-neighborhood grids.
23
+ compile: false
24
+ dtype: bfloat16
25
+ num_workers: 2
26
+ prefetch_factor: 2
27
+ model.attention.use_flash_attn_varlen: true
28
+ slurm:
29
+ partition: standard-g
30
+ account: project_465001293
31
+ # standard-g permits 48 hours. The scenario checkpoints every 1,000 steps,
32
+ # so an unfinished allocation can be resumed with --continue.
33
+ time: "2-00:00:00"
34
+ nodes: 1
35
+ tasks_per_node: 1
36
+ cpus_per_task: 32
37
+ gpu_request: gpus-per-task
38
+ # Leave operating-system headroom on the 512 GB LUMI-G node.
39
+ memory: 480G
40
+ no_requeue: true
@@ -0,0 +1,23 @@
1
+ name: tallinn_l40
2
+ gpus: 2
3
+ data_dir:
4
+ cms_run3: /store/user/jpata/mlpf/tensorflow_datasets/2.8.0/
5
+ cld: /local/${USER}/mlpf/cld/v1.2.5_key4hep_2025-05-29/tfds
6
+ clic: /local/${USER}/mlpf/clic/v1.2.5_key4hep_2025-05-29/tfds
7
+ experiments_dir: /home/${USER}/particleflow/experiments
8
+ environment:
9
+ PF_SITE: tallinn
10
+ runtime_overrides:
11
+ dtype: bfloat16
12
+ num_workers: 4
13
+ prefetch_factor: 2
14
+ model.attention.use_flash_attn_varlen: false
15
+ slurm:
16
+ partition: gpu
17
+ time: "24:00:00"
18
+ nodes: 1
19
+ tasks_per_node: 1
20
+ cpus_per_task: 8
21
+ gpu_request: gres
22
+ gpu_type: l40
23
+ memory_per_gpu: 80G
@@ -0,0 +1,46 @@
1
+ name: cld_hits_backbone_comparison
2
+ spec_file: particleflow_spec.yaml
3
+ production_name: cld
4
+
5
+ variants:
6
+ attention:
7
+ model_name: pyg-cld-hits-v1
8
+ heptv2:
9
+ model_name: pyg-cld-hits-v1
10
+ overrides:
11
+ model.type: heptv2
12
+ model.attention: null
13
+ # Match the input padding used by the attention run so HEPTv2 can form
14
+ # complete hash-attention buckets without changing the training samples.
15
+ model.heptv2.block_size: 128
16
+
17
+ # Add seeds here and expand the Slurm array to 2 * len(seeds) tasks.
18
+ seeds: [12345]
19
+
20
+ training:
21
+ # Kept fixed across hardware profiles. The runner derives the per-GPU batch.
22
+ global_batch_size: 512
23
+ parameters:
24
+ lr: 0.001
25
+ num_steps: 20000
26
+ val_freq: 2000
27
+ checkpoint_freq: 2000
28
+ nvalid: 512
29
+ ntest: 512
30
+ sampler_mode: interleaved-shards
31
+ validation_diagnostics_batches: 4
32
+ pad_to_multiple_elements: 128
33
+ make_plots: true
34
+
35
+ common_overrides:
36
+ # Keep the output head and depth fixed so only the backbone family changes.
37
+ model.output_mode: elementwise
38
+ model.task_queries: false
39
+ model.backbone.mode: shared
40
+ model.backbone.num_convs: 6
41
+
42
+ allowed_variant_differences:
43
+ - conv_type
44
+ - model.type
45
+ - model.attention
46
+ - model.heptv2
@@ -0,0 +1,66 @@
1
+ name: cld_hits_output_comparison
2
+ spec_file: particleflow_spec.yaml
3
+ production_name: cld
4
+
5
+ variants:
6
+ elementwise:
7
+ model_name: pyg-cld-hits-v1
8
+ set:
9
+ model_name: pyg-cld-hits-set-v1
10
+ overrides:
11
+ # Start slots from energetic detector inputs so their initial direction is
12
+ # physical, then refine within a local eta-phi neighborhood.
13
+ model.set_decoder.query_init: input-conditioned
14
+ model.set_decoder.local_attention_radius: 0.4
15
+ model.set_decoder.tracker_query_fraction: 0.6
16
+ model.set_decoder.num_layers: 4
17
+
18
+ # Treat no-object suppression as a first-class objective and supervise
19
+ # every refinement layer, not only the final decoder output.
20
+ model.set_decoder.presence_threshold: 0.5
21
+ model.set_decoder.no_object_weight: 1.0
22
+ model.set_decoder.cardinality_loss_weight: 0.05
23
+ model.set_decoder.auxiliary_loss_weight: 0.25
24
+
25
+ # Match in the same variables emphasized by particle/jet evaluation.
26
+ # A delta-R of 0.1 and a factor-two pT error each cost one unit.
27
+ model.set_decoder.matcher.presence: 1.0
28
+ model.set_decoder.matcher.pid: 1.0
29
+ model.set_decoder.matcher.geometry: 2.0
30
+ model.set_decoder.matcher.pt: 1.0
31
+ model.set_decoder.matcher.energy: 0.0
32
+ model.set_decoder.matcher.dr_scale: 0.1
33
+ model.set_decoder.matcher.log_pt_scale: 0.6931471805599453
34
+ model.set_decoder.matcher.log_energy_scale: 0.6931471805599453
35
+
36
+ # Add seeds here and expand the Slurm array to 2 * len(seeds) tasks.
37
+ seeds: [12345]
38
+
39
+ training:
40
+ # Kept fixed across hardware profiles. The runner derives the per-GPU batch.
41
+ global_batch_size: 512
42
+ parameters:
43
+ lr: 0.001
44
+ num_steps: 20000
45
+ val_freq: 2000
46
+ checkpoint_freq: 2000
47
+ nvalid: 512
48
+ ntest: 512
49
+ sampler_mode: interleaved-shards
50
+ validation_diagnostics_batches: 4
51
+ pad_to_multiple_elements: 128
52
+ make_plots: true
53
+
54
+ common_overrides:
55
+ model.task_queries: false
56
+ # Preserve the six-layer detector-aware attention backbone used by the
57
+ # existing Flatiron H100 training, independent of the accelerator profile.
58
+ model.backbone.mode: shared
59
+ model.backbone.num_convs: 6
60
+ model.backbone.num_tracker_layers: 2
61
+ model.backbone.num_calo_layers: 2
62
+ model.backbone.num_common_layers: 2
63
+
64
+ allowed_variant_differences:
65
+ - model.output_mode
66
+ - model.set_decoder
@@ -0,0 +1,55 @@
1
+ # Reduced batch for GPU memory headroom: 50k * 384 = 19.2M events.
2
+ # Retain the historical scenario name for existing launch commands.
3
+ # HEPTv2 keeps the current grouped tracker-feature model and set objective.
4
+ # Checkpointing has a recomputation cost; validate memory on the target platform
5
+ # with real hit occupancies before launching the full run (see docs/heptv2_checkpointing.md).
6
+ name: cld_pf_heptv2_batch512_50k
7
+ spec_file: particleflow_spec.yaml
8
+ production_name: cld
9
+ variants:
10
+ track_cluster_mlpf:
11
+ model_name: pyg-cld-v1
12
+ overrides:
13
+ model.attention.use_jagged_attention: true
14
+ hit_heptv2_grouped_tracker_features:
15
+ model_name: pyg-cld-hits-heptv2-set-v1
16
+ overrides:
17
+ model.heptv2.activation_checkpointing: true
18
+ seeds: [12345]
19
+ training:
20
+ global_batch_size: 384
21
+ parameters:
22
+ optimizer: lamb
23
+ lr: 0.001
24
+ lr_schedule: cosinedecay
25
+ num_steps: 50000
26
+ val_freq: 5000
27
+ checkpoint_freq: 5000
28
+ nvalid: 512
29
+ ntest: 512
30
+ sampler_mode: interleaved-shards
31
+ validation_diagnostics_batches: 4
32
+ pad_to_multiple_elements: 128
33
+ make_plots: true
34
+ common_overrides:
35
+ model.task_queries: false
36
+ model.backbone.mode: shared
37
+ model.backbone.num_convs: 6
38
+ allowed_variant_differences:
39
+ - conv_type
40
+ - data_dir
41
+ - dataset
42
+ - elemtypes_nonzero
43
+ - enabled_test_datasets
44
+ - hyperparameters.lr
45
+ - input_dim
46
+ - model.type
47
+ - model.binary_classification_focal_gamma
48
+ - model.attention
49
+ - model.heptv2
50
+ - model.output_mode
51
+ - model.set_decoder
52
+ - model.hit_feature_engineering.tracker_neighborhood
53
+ - train_dataset
54
+ - valid_dataset
55
+ - test_dataset
@@ -0,0 +1,24 @@
1
+ # Recommended CLD hit-model training recipe, promoted from the tracker-feature ablation.
2
+ name: cld_pf_heptv2_default_50k
3
+ spec_file: particleflow_spec.yaml
4
+ production_name: cld
5
+ variants:
6
+ hit_heptv2_grouped_tracker_features:
7
+ model_name: pyg-cld-hits-heptv2-set-v1
8
+ seeds:
9
+ - 12345
10
+ training:
11
+ global_batch_size: 64
12
+ parameters:
13
+ lr: 0.001
14
+ num_steps: 50000
15
+ val_freq: 5000
16
+ checkpoint_freq: 1000
17
+ nvalid: 512
18
+ ntest: 512
19
+ sampler_mode: interleaved-shards
20
+ validation_diagnostics_batches: 4
21
+ validation_linear_probe: true
22
+ validation_linear_probe_max_events: 16
23
+ pad_to_multiple_elements: 128
24
+ make_plots: true