erstream 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. erstream-0.1.1/CHANGELOG.md +59 -0
  2. erstream-0.1.1/CITATION.cff +41 -0
  3. erstream-0.1.1/COPYING +674 -0
  4. erstream-0.1.1/LICENSE +165 -0
  5. erstream-0.1.1/MANIFEST.in +14 -0
  6. erstream-0.1.1/NOTICE +40 -0
  7. erstream-0.1.1/PKG-INFO +198 -0
  8. erstream-0.1.1/README.md +138 -0
  9. erstream-0.1.1/configs/dpa4c/README.md +42 -0
  10. erstream-0.1.1/configs/dpa4c/constraints/toolkit-ops-050.txt +11 -0
  11. erstream-0.1.1/licenses/Apache-2.0.txt +202 -0
  12. erstream-0.1.1/licenses/NVALCHEMI_APACHE_2.0.txt +14 -0
  13. erstream-0.1.1/native/dpa4c/candidate/source.json +52 -0
  14. erstream-0.1.1/native/dpa4c/channel.cu +5 -0
  15. erstream-0.1.1/native/dpa4c/dpa4c_graph_compress.cu +944 -0
  16. erstream-0.1.1/native/dpa4c/dpa4c_graph_compress.cuh +739 -0
  17. erstream-0.1.1/native/dpa4c/dpa4c_graph_compress_kernel.cuh +2341 -0
  18. erstream-0.1.1/native/dpa4c/dpa4c_graph_compress_launch.h +438 -0
  19. erstream-0.1.1/native/dpa4c/readout/source.json +30 -0
  20. erstream-0.1.1/native/dpa4c/state_readout.cu +84 -0
  21. erstream-0.1.1/plugins/deepmd-lr/COPYING +674 -0
  22. erstream-0.1.1/plugins/deepmd-lr/LICENSE +21 -0
  23. erstream-0.1.1/plugins/deepmd-lr/LICENSE.ERStream +165 -0
  24. erstream-0.1.1/plugins/deepmd-lr/README.md +67 -0
  25. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/__init__.py +32 -0
  26. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/argcheck.py +558 -0
  27. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/ase.py +450 -0
  28. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/born.py +320 -0
  29. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/bridging.py +35 -0
  30. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/cell.py +49 -0
  31. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/compress.py +188 -0
  32. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/ema_default.py +91 -0
  33. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/fitting/__init__.py +19 -0
  34. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/fitting/charge.py +388 -0
  35. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/fitting/moment_table.py +280 -0
  36. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/fitting/multipole.py +275 -0
  37. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/hessian.py +514 -0
  38. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/kernels/__init__.py +3 -0
  39. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/kernels/moments.py +316 -0
  40. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/loss.py +321 -0
  41. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/lr/__init__.py +42 -0
  42. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/lr/isolated.py +383 -0
  43. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/lr/multipole.py +356 -0
  44. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/lr/multipole_pairs.py +155 -0
  45. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/lr/term.py +823 -0
  46. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/model/__init__.py +11 -0
  47. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/model/lr_model.py +2361 -0
  48. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/neighbors.py +98 -0
  49. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/__init__.py +85 -0
  50. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/ase.py +103 -0
  51. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/assembly.py +135 -0
  52. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/bec_schedule.py +29 -0
  53. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/born_csr.py +101 -0
  54. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/born_fused.py +110 -0
  55. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/charge_memory.py +123 -0
  56. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/compiler.py +78 -0
  57. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/driver.py +1359 -0
  58. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/evaluator.py +1242 -0
  59. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/fitting.py +87 -0
  60. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/joint.py +230 -0
  61. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/md.py +1639 -0
  62. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/nlist.py +810 -0
  63. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/optimize.py +1028 -0
  64. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/partition.py +752 -0
  65. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/setup.py +158 -0
  66. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/thermo.py +559 -0
  67. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/nvalchemi/tuning.py +42 -0
  68. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/register.py +70 -0
  69. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/same_as.py +678 -0
  70. erstream-0.1.1/plugins/deepmd-lr/deepmd_lr/zbl.py +1046 -0
  71. erstream-0.1.1/plugins/deepmd-lr/pyproject.toml +44 -0
  72. erstream-0.1.1/plugins/deepmd-lr/scripts/calibrate_born.py +76 -0
  73. erstream-0.1.1/plugins/deepmd-lr/scripts/graft_short_range.py +181 -0
  74. erstream-0.1.1/plugins/deepmd-lr/scripts/xyz_to_deepmd.py +571 -0
  75. erstream-0.1.1/plugins/deepmd-lr/tests/__init__.py +0 -0
  76. erstream-0.1.1/plugins/deepmd-lr/tests/conftest.py +11 -0
  77. erstream-0.1.1/plugins/deepmd-lr/tests/test_ase_calculator.py +401 -0
  78. erstream-0.1.1/plugins/deepmd-lr/tests/test_born.py +566 -0
  79. erstream-0.1.1/plugins/deepmd-lr/tests/test_born_loss.py +264 -0
  80. erstream-0.1.1/plugins/deepmd-lr/tests/test_calibrate_born.py +43 -0
  81. erstream-0.1.1/plugins/deepmd-lr/tests/test_charge_filter.py +347 -0
  82. erstream-0.1.1/plugins/deepmd-lr/tests/test_charge_head.py +301 -0
  83. erstream-0.1.1/plugins/deepmd-lr/tests/test_charge_same_as.py +364 -0
  84. erstream-0.1.1/plugins/deepmd-lr/tests/test_compress.py +732 -0
  85. erstream-0.1.1/plugins/deepmd-lr/tests/test_curriculum.py +222 -0
  86. erstream-0.1.1/plugins/deepmd-lr/tests/test_dpa4.py +1067 -0
  87. erstream-0.1.1/plugins/deepmd-lr/tests/test_ema_default.py +158 -0
  88. erstream-0.1.1/plugins/deepmd-lr/tests/test_eps_inf.py +265 -0
  89. erstream-0.1.1/plugins/deepmd-lr/tests/test_graft_short_range.py +44 -0
  90. erstream-0.1.1/plugins/deepmd-lr/tests/test_hessian.py +494 -0
  91. erstream-0.1.1/plugins/deepmd-lr/tests/test_import_order.py +45 -0
  92. erstream-0.1.1/plugins/deepmd-lr/tests/test_isolated_term.py +700 -0
  93. erstream-0.1.1/plugins/deepmd-lr/tests/test_joint_model.py +532 -0
  94. erstream-0.1.1/plugins/deepmd-lr/tests/test_lr_term.py +749 -0
  95. erstream-0.1.1/plugins/deepmd-lr/tests/test_md.py +2074 -0
  96. erstream-0.1.1/plugins/deepmd-lr/tests/test_moment_table.py +359 -0
  97. erstream-0.1.1/plugins/deepmd-lr/tests/test_multi_task.py +402 -0
  98. erstream-0.1.1/plugins/deepmd-lr/tests/test_multipole_model.py +633 -0
  99. erstream-0.1.1/plugins/deepmd-lr/tests/test_multipole_term.py +614 -0
  100. erstream-0.1.1/plugins/deepmd-lr/tests/test_neighbors.py +138 -0
  101. erstream-0.1.1/plugins/deepmd-lr/tests/test_neutrality_loss.py +251 -0
  102. erstream-0.1.1/plugins/deepmd-lr/tests/test_nlist.py +441 -0
  103. erstream-0.1.1/plugins/deepmd-lr/tests/test_nvalchemi.py +2158 -0
  104. erstream-0.1.1/plugins/deepmd-lr/tests/test_optimize.py +171 -0
  105. erstream-0.1.1/plugins/deepmd-lr/tests/test_plugin_registration.py +213 -0
  106. erstream-0.1.1/plugins/deepmd-lr/tests/test_pme_physics.py +126 -0
  107. erstream-0.1.1/plugins/deepmd-lr/tests/test_read_structure.py +129 -0
  108. erstream-0.1.1/plugins/deepmd-lr/tests/test_same_as.py +386 -0
  109. erstream-0.1.1/plugins/deepmd-lr/tests/test_sync.py +226 -0
  110. erstream-0.1.1/plugins/deepmd-lr/tests/test_thermo.py +384 -0
  111. erstream-0.1.1/plugins/deepmd-lr/tests/test_xyz_to_deepmd.py +389 -0
  112. erstream-0.1.1/plugins/deepmd-lr/tests/test_zbl.py +1073 -0
  113. erstream-0.1.1/plugins/deepmd-lr/tests/test_zbl_gpu.py +447 -0
  114. erstream-0.1.1/pyproject.toml +83 -0
  115. erstream-0.1.1/setup.cfg +4 -0
  116. erstream-0.1.1/setup.py +29 -0
  117. erstream-0.1.1/src/erstream/__init__.py +13 -0
  118. erstream-0.1.1/src/erstream/ase.py +126 -0
  119. erstream-0.1.1/src/erstream/backends/__init__.py +7 -0
  120. erstream-0.1.1/src/erstream/backends/dpa4c/__init__.py +3 -0
  121. erstream-0.1.1/src/erstream/backends/dpa4c/backend.py +741 -0
  122. erstream-0.1.1/src/erstream/backends/dpa4c/build.py +369 -0
  123. erstream-0.1.1/src/erstream/backends/dpa4c/cell_grid.py +137 -0
  124. erstream-0.1.1/src/erstream/backends/dpa4c/compat/__init__.py +3 -0
  125. erstream-0.1.1/src/erstream/backends/dpa4c/compat/toolkit-producers.json +61 -0
  126. erstream-0.1.1/src/erstream/backends/dpa4c/compat/toolkit_ops.py +129 -0
  127. erstream-0.1.1/src/erstream/backends/dpa4c/config.py +135 -0
  128. erstream-0.1.1/src/erstream/backends/dpa4c/deepmd_build.py +214 -0
  129. erstream-0.1.1/src/erstream/backends/dpa4c/evaluator.py +377 -0
  130. erstream-0.1.1/src/erstream/backends/dpa4c/file_identity.py +74 -0
  131. erstream-0.1.1/src/erstream/backends/dpa4c/halo_tiles.py +217 -0
  132. erstream-0.1.1/src/erstream/backends/dpa4c/lr_byte_image_packets_backend.py +75 -0
  133. erstream-0.1.1/src/erstream/backends/dpa4c/lr_candidate_session.py +89 -0
  134. erstream-0.1.1/src/erstream/backends/dpa4c/lr_charge_mask_cache_backend.py +117 -0
  135. erstream-0.1.1/src/erstream/backends/dpa4c/lr_composite_backend.py +155 -0
  136. erstream-0.1.1/src/erstream/backends/dpa4c/lr_csr_node_liveness_backend.py +56 -0
  137. erstream-0.1.1/src/erstream/backends/dpa4c/lr_cuda_backend.py +170 -0
  138. erstream-0.1.1/src/erstream/backends/dpa4c/lr_cufft_runtime.py +19 -0
  139. erstream-0.1.1/src/erstream/backends/dpa4c/lr_direct_csr_backend.py +82 -0
  140. erstream-0.1.1/src/erstream/backends/dpa4c/lr_edge_slack_backend.py +70 -0
  141. erstream-0.1.1/src/erstream/backends/dpa4c/lr_fft_shared_workspace_backend.py +73 -0
  142. erstream-0.1.1/src/erstream/backends/dpa4c/lr_fitting_liveness_backend.py +48 -0
  143. erstream-0.1.1/src/erstream/backends/dpa4c/lr_fused_spectrum_backend.py +57 -0
  144. erstream-0.1.1/src/erstream/backends/dpa4c/lr_graph_capacity_backend.py +69 -0
  145. erstream-0.1.1/src/erstream/backends/dpa4c/lr_graph_memory_catalog.py +72 -0
  146. erstream-0.1.1/src/erstream/backends/dpa4c/lr_graph_preflight.py +65 -0
  147. erstream-0.1.1/src/erstream/backends/dpa4c/lr_graph_resource_catalog.py +62 -0
  148. erstream-0.1.1/src/erstream/backends/dpa4c/lr_identity_strain_backend.py +98 -0
  149. erstream-0.1.1/src/erstream/backends/dpa4c/lr_inference_executor.py +157 -0
  150. erstream-0.1.1/src/erstream/backends/dpa4c/lr_inference_plan.py +129 -0
  151. erstream-0.1.1/src/erstream/backends/dpa4c/lr_inverse_arena_backend.py +58 -0
  152. erstream-0.1.1/src/erstream/backends/dpa4c/lr_lowering_registry.py +48 -0
  153. erstream-0.1.1/src/erstream/backends/dpa4c/lr_miller_inverse_arena_backend.py +52 -0
  154. erstream-0.1.1/src/erstream/backends/dpa4c/lr_miller_liveness_backend.py +54 -0
  155. erstream-0.1.1/src/erstream/backends/dpa4c/lr_observable_cache.py +54 -0
  156. erstream-0.1.1/src/erstream/backends/dpa4c/lr_padded_fft_backend.py +75 -0
  157. erstream-0.1.1/src/erstream/backends/dpa4c/lr_periodic_packet_backend.py +88 -0
  158. erstream-0.1.1/src/erstream/backends/dpa4c/lr_periodic_packet_catalog.py +32 -0
  159. erstream-0.1.1/src/erstream/backends/dpa4c/lr_pipeline_capacity_catalog.py +73 -0
  160. erstream-0.1.1/src/erstream/backends/dpa4c/lr_pipeline_compiler.py +235 -0
  161. erstream-0.1.1/src/erstream/backends/dpa4c/lr_pme_force_buffer_backend.py +106 -0
  162. erstream-0.1.1/src/erstream/backends/dpa4c/lr_pme_force_flow_backend.py +81 -0
  163. erstream-0.1.1/src/erstream/backends/dpa4c/lr_pme_resource_catalog.py +70 -0
  164. erstream-0.1.1/src/erstream/backends/dpa4c/lr_pme_unit_gradient_backend.py +96 -0
  165. erstream-0.1.1/src/erstream/backends/dpa4c/lr_prefix_mask_backend.py +83 -0
  166. erstream-0.1.1/src/erstream/backends/dpa4c/lr_reciprocal_phase_backend.py +70 -0
  167. erstream-0.1.1/src/erstream/backends/dpa4c/lr_resolved_executor.py +92 -0
  168. erstream-0.1.1/src/erstream/backends/dpa4c/lr_resource_catalog.py +52 -0
  169. erstream-0.1.1/src/erstream/backends/dpa4c/lr_runtime_key.py +181 -0
  170. erstream-0.1.1/src/erstream/backends/dpa4c/lr_segmented_edge_backend.py +120 -0
  171. erstream-0.1.1/src/erstream/backends/dpa4c/lr_single_system_pme_backend.py +90 -0
  172. erstream-0.1.1/src/erstream/backends/dpa4c/lr_source_row_backend.py +88 -0
  173. erstream-0.1.1/src/erstream/backends/dpa4c/lr_spatial_backend.py +79 -0
  174. erstream-0.1.1/src/erstream/backends/dpa4c/lr_strategy_catalog.py +137 -0
  175. erstream-0.1.1/src/erstream/backends/dpa4c/lr_strategy_family.py +40 -0
  176. erstream-0.1.1/src/erstream/backends/dpa4c/lr_streamed_backend.py +129 -0
  177. erstream-0.1.1/src/erstream/backends/dpa4c/lr_tuning_budget_backend.py +65 -0
  178. erstream-0.1.1/src/erstream/backends/dpa4c/multigpu.py +394 -0
  179. erstream-0.1.1/src/erstream/backends/dpa4c/native_loader.py +41 -0
  180. erstream-0.1.1/src/erstream/backends/dpa4c/profiles/b200.json +37 -0
  181. erstream-0.1.1/src/erstream/backends/dpa4c/profiles/h100.json +37 -0
  182. erstream-0.1.1/src/erstream/backends/dpa4c/profiles/rtx5090.json +39 -0
  183. erstream-0.1.1/src/erstream/backends/dpa4c/profiles/v100.json +40 -0
  184. erstream-0.1.1/src/erstream/backends/dpa4c/resources.py +252 -0
  185. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/__init__.py +3 -0
  186. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_bounded_fft.py +114 -0
  187. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_byte_image_packets.py +120 -0
  188. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_cell_reduce.py +60 -0
  189. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_charge_mask_cache.py +232 -0
  190. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_charge_projection.py +82 -0
  191. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_csr_node_liveness.py +74 -0
  192. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_deferred_vjp.py +171 -0
  193. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_direct_csr.py +220 -0
  194. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_donated_fft.py +110 -0
  195. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_dual_deferred.py +106 -0
  196. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_edge_reserve.py +35 -0
  197. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_edge_slack.py +45 -0
  198. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_fft_shared_workspace.py +118 -0
  199. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_fitting_liveness.py +48 -0
  200. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_fitting_subtile.py +36 -0
  201. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_fused_spectrum.py +111 -0
  202. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_graph_capacity_guard.py +35 -0
  203. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_graph_input_views.py +75 -0
  204. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_graph_layout.py +47 -0
  205. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_identity_strain.py +90 -0
  206. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_inference_optimizer.py +121 -0
  207. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_inverse_arena.py +155 -0
  208. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_lane_periodic_packets.py +195 -0
  209. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_local_virial.py +79 -0
  210. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_lr_input_views.py +43 -0
  211. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_miller_liveness.py +66 -0
  212. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_padded_fft.py +160 -0
  213. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_pme_cached_force_alias.py +121 -0
  214. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_pme_force_buffer.py +76 -0
  215. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_pme_force_flow.py +171 -0
  216. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_pme_unit_gradient.py +132 -0
  217. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_prefix_mask.py +50 -0
  218. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_reciprocal_phase.py +64 -0
  219. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_segmented_edges.py +179 -0
  220. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_single_system_pme.py +82 -0
  221. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_source_row.py +71 -0
  222. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_spatial_direct_query.py +105 -0
  223. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_state_readout.py +44 -0
  224. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_state_recompute.py +22 -0
  225. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_streamed_heads.py +133 -0
  226. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_tensor_fitting.py +205 -0
  227. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_tile_moments.py +56 -0
  228. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/dpa4clr_tuning_budget.py +70 -0
  229. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/sto_charge_graph.py +54 -0
  230. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/sto_destination_graph.py +146 -0
  231. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/sto_inference_executor.py +352 -0
  232. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/sto_minimal_graph.py +88 -0
  233. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/sto_pair_tables.py +61 -0
  234. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/sto_pme_plan.py +224 -0
  235. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/sto_spectral_virial.py +69 -0
  236. erstream-0.1.1/src/erstream/backends/dpa4c/runtime_ops/sto_tensor_fitting_v2.py +233 -0
  237. erstream-0.1.1/src/erstream/backends/dpa4c/source-manifest.json +146 -0
  238. erstream-0.1.1/src/erstream/backends/dpa4c/tiled_reference.py +121 -0
  239. erstream-0.1.1/src/erstream/backends/protocol.py +50 -0
  240. erstream-0.1.1/src/erstream/backends/registry.py +131 -0
  241. erstream-0.1.1/src/erstream/backends/session.py +64 -0
  242. erstream-0.1.1/src/erstream/charge_sign.py +100 -0
  243. erstream-0.1.1/src/erstream/cli.py +852 -0
  244. erstream-0.1.1/src/erstream/compat/__init__.py +7 -0
  245. erstream-0.1.1/src/erstream/compat/checkpoint.py +39 -0
  246. erstream-0.1.1/src/erstream/compat/mace_er_pin.py +63 -0
  247. erstream-0.1.1/src/erstream/compat/mixed_precision.py +57 -0
  248. erstream-0.1.1/src/erstream/compat/spice_isolated.py +28 -0
  249. erstream-0.1.1/src/erstream/core/__init__.py +0 -0
  250. erstream-0.1.1/src/erstream/core/born.py +167 -0
  251. erstream-0.1.1/src/erstream/core/buckets.py +47 -0
  252. erstream-0.1.1/src/erstream/core/layered.py +57 -0
  253. erstream-0.1.1/src/erstream/core/pair/__init__.py +3 -0
  254. erstream-0.1.1/src/erstream/core/pair/compact.py +145 -0
  255. erstream-0.1.1/src/erstream/core/pair/compiled_strain.py +53 -0
  256. erstream-0.1.1/src/erstream/core/pair/cuda_graphs.py +430 -0
  257. erstream-0.1.1/src/erstream/core/pair/first_order.py +164 -0
  258. erstream-0.1.1/src/erstream/core/pair/graph_keys.py +59 -0
  259. erstream-0.1.1/src/erstream/core/pair/graph_lifetime.py +146 -0
  260. erstream-0.1.1/src/erstream/core/pair/graph_tolerances.py +21 -0
  261. erstream-0.1.1/src/erstream/core/pair/kernel_dispatch.py +40 -0
  262. erstream-0.1.1/src/erstream/core/pair/launch_proxy.py +60 -0
  263. erstream-0.1.1/src/erstream/core/pair/launches.py +63 -0
  264. erstream-0.1.1/src/erstream/core/pair/method.py +104 -0
  265. erstream-0.1.1/src/erstream/core/pair/options.py +5 -0
  266. erstream-0.1.1/src/erstream/core/pair/segment_sum.py +163 -0
  267. erstream-0.1.1/src/erstream/core/pair/segment_triton.py +56 -0
  268. erstream-0.1.1/src/erstream/core/periodic.py +333 -0
  269. erstream-0.1.1/src/erstream/core/prune.py +205 -0
  270. erstream-0.1.1/src/erstream/core/slab.py +83 -0
  271. erstream-0.1.1/src/erstream/core/tile_shapes.py +228 -0
  272. erstream-0.1.1/src/erstream/core/tiled.py +415 -0
  273. erstream-0.1.1/src/erstream/core/tiles.py +798 -0
  274. erstream-0.1.1/src/erstream/core/topology_triton.py +55 -0
  275. erstream-0.1.1/src/erstream/diagnostics.py +69 -0
  276. erstream-0.1.1/src/erstream/evaluator.py +787 -0
  277. erstream-0.1.1/src/erstream/models/__init__.py +5 -0
  278. erstream-0.1.1/src/erstream/models/compiled_chains.py +321 -0
  279. erstream-0.1.1/src/erstream/models/compiled_epilogues.py +170 -0
  280. erstream-0.1.1/src/erstream/models/compiled_layout.py +25 -0
  281. erstream-0.1.1/src/erstream/models/indexed_cueq.py +140 -0
  282. erstream-0.1.1/src/erstream/models/kernels.py +177 -0
  283. erstream-0.1.1/src/erstream/models/loader.py +170 -0
  284. erstream-0.1.1/src/erstream/models/precision.py +202 -0
  285. erstream-0.1.1/src/erstream/models/radial_lookup.py +337 -0
  286. erstream-0.1.1/src/erstream/models/radial_triton.py +170 -0
  287. erstream-0.1.1/src/erstream/models/segment_sum.py +103 -0
  288. erstream-0.1.1/src/erstream/multigpu/__init__.py +0 -0
  289. erstream-0.1.1/src/erstream/multigpu/comm.py +73 -0
  290. erstream-0.1.1/src/erstream/multigpu/isolated.py +394 -0
  291. erstream-0.1.1/src/erstream/multigpu/periodic.py +508 -0
  292. erstream-0.1.1/src/erstream/multigpu/protocol.py +106 -0
  293. erstream-0.1.1/src/erstream/plan/__init__.py +108 -0
  294. erstream-0.1.1/src/erstream/plan/backend.py +57 -0
  295. erstream-0.1.1/src/erstream/plan/memory.py +250 -0
  296. erstream-0.1.1/src/erstream/plan/resource.py +507 -0
  297. erstream-0.1.1/src/erstream/plan/speed.py +107 -0
  298. erstream-0.1.1/src/erstream/profiling.py +84 -0
  299. erstream-0.1.1/src/erstream/reporting.py +36 -0
  300. erstream-0.1.1/src/erstream/runtime.py +41 -0
  301. erstream-0.1.1/src/erstream/solvers/__init__.py +0 -0
  302. erstream-0.1.1/src/erstream/solvers/dist_pme.py +353 -0
  303. erstream-0.1.1/src/erstream/solvers/freespace/__init__.py +0 -0
  304. erstream-0.1.1/src/erstream/solvers/freespace/distributed.py +166 -0
  305. erstream-0.1.1/src/erstream/solvers/freespace/exact.py +68 -0
  306. erstream-0.1.1/src/erstream/solvers/freespace/far_triton.py +66 -0
  307. erstream-0.1.1/src/erstream/solvers/freespace/fft_solver.py +402 -0
  308. erstream-0.1.1/src/erstream/solvers/freespace/near_bins.py +189 -0
  309. erstream-0.1.1/src/erstream/solvers/freespace/near_triton.py +141 -0
  310. erstream-0.1.1/src/erstream/solvers/freespace/solver.py +30 -0
  311. erstream-0.1.1/src/erstream/solvers/freespace/split.py +56 -0
  312. erstream-0.1.1/src/erstream/solvers/freespace/term.py +87 -0
  313. erstream-0.1.1/src/erstream/solvers/lean_pme.py +452 -0
  314. erstream-0.1.1/src/erstream/solvers/lr_global.py +60 -0
  315. erstream-0.1.1/src/erstream/solvers/mesh_policy.py +113 -0
  316. erstream-0.1.1/src/erstream/solvers/reference.py +99 -0
  317. erstream-0.1.1/src/erstream/vibrations.py +286 -0
  318. erstream-0.1.1/src/erstream.egg-info/PKG-INFO +198 -0
  319. erstream-0.1.1/src/erstream.egg-info/SOURCES.txt +354 -0
  320. erstream-0.1.1/src/erstream.egg-info/dependency_links.txt +1 -0
  321. erstream-0.1.1/src/erstream.egg-info/entry_points.txt +2 -0
  322. erstream-0.1.1/src/erstream.egg-info/requires.txt +37 -0
  323. erstream-0.1.1/src/erstream.egg-info/top_level.txt +1 -0
  324. erstream-0.1.1/tests/conftest.py +54 -0
  325. erstream-0.1.1/tests/dpa4c/__init__.py +3 -0
  326. erstream-0.1.1/tests/dpa4c/conftest.py +11 -0
  327. erstream-0.1.1/tests/dpa4c/test_fp64_policy.py +157 -0
  328. erstream-0.1.1/tests/dpa4c/test_halo_tiles.py +114 -0
  329. erstream-0.1.1/tests/dpa4c/test_multigpu.py +310 -0
  330. erstream-0.1.1/tests/dpa4c/test_native_loader.py +120 -0
  331. erstream-0.1.1/tests/dpa4c/test_public_backend.py +620 -0
  332. erstream-0.1.1/tests/dpa4c/test_source_compat.py +144 -0
  333. erstream-0.1.1/tests/dpa4c/test_tiled_reference.py +185 -0
  334. erstream-0.1.1/tests/dpa4c/toolchains.py +13 -0
  335. erstream-0.1.1/tests/fixtures/liquid_256.extxyz +770 -0
  336. erstream-0.1.1/tests/test_backend_dispatch.py +291 -0
  337. erstream-0.1.1/tests/test_born_owner_frame.py +167 -0
  338. erstream-0.1.1/tests/test_default_schedule.py +145 -0
  339. erstream-0.1.1/tests/test_energy_fd.py +332 -0
  340. erstream-0.1.1/tests/test_ewald_reference.py +61 -0
  341. erstream-0.1.1/tests/test_gpu.py +90 -0
  342. erstream-0.1.1/tests/test_kernels.py +343 -0
  343. erstream-0.1.1/tests/test_loader_global_state.py +38 -0
  344. erstream-0.1.1/tests/test_model_pipeline.py +369 -0
  345. erstream-0.1.1/tests/test_open.py +144 -0
  346. erstream-0.1.1/tests/test_pair_first_order_default.py +314 -0
  347. erstream-0.1.1/tests/test_plan_cli_evaluator.py +137 -0
  348. erstream-0.1.1/tests/test_planner_probe_errors.py +49 -0
  349. erstream-0.1.1/tests/test_short_range.py +241 -0
  350. erstream-0.1.1/tests/test_slab_ase.py +472 -0
  351. erstream-0.1.1/tests/test_solvers.py +129 -0
  352. erstream-0.1.1/tests/test_tile_shapes.py +179 -0
  353. erstream-0.1.1/tests/test_virial.py +237 -0
  354. erstream-0.1.1/tools/dpa4c/build_native.py +37 -0
  355. erstream-0.1.1/tools/dpa4c/sync_resources.py +25 -0
  356. erstream-0.1.1/tools/dpa4c/update_manifest.py +165 -0
@@ -0,0 +1,59 @@
1
+ # Changelog
2
+
3
+ ## 0.1.1 (2026-12-05)
4
+
5
+ - **Global PyTorch state.** Loading a MACE-ER checkpoint no longer leaves the process default dtype at FP64 or
6
+ TF32 disabled; the previous settings are restored after loading. Results are unchanged.
7
+ - **Device selection.** Radial-table and segment-reduction Triton kernels launch on the device of their inputs, so
8
+ a single-process run on a GPU other than the current one no longer launches on the wrong device.
9
+ - **Resource planner.** A probe that fails with an error other than out-of-memory or a planner refusal is no longer
10
+ hidden behind the unmeasured fallback: the planner raises when no probe succeeds and warns otherwise.
11
+ - **Packaging.** The `dpa4c` and `dpa4` extras no longer require `deepmd-lr` by name; install the plugin from
12
+ `plugins/deepmd-lr` as documented. The wheel ships the plugin's MIT license, and the version is defined once in
13
+ `erstream.__version__`.
14
+ - **Bundled licenses.** Preserve upstream deepmd-lr's MIT notice in its `LICENSE` and
15
+ identify ERStream modifications as LGPL-3.0-or-later in NOTICE and package metadata.
16
+ - **DeePMD plugin.** The bundled plugin lives in `plugins/deepmd-lr`; the `dpa4` extra
17
+ installs the pinned stack for DPA4-ER through its plugin interfaces.
18
+ - **DPA4C CPU replay.** Refuse PME reciprocal caches on a different device before entering
19
+ Toolkit-Ops native kernels, and keep the CPU rank fixture on CPU on GPU hosts.
20
+ - **DPA4C-ER.** Sync the bundled deepmd-lr plugin to upstream `64ac787`, retaining ERStream
21
+ execution adaptations and adding multipole, isolated/slab, ZBL, Hessian and shared DPA4 model support
22
+ in the plugin. The ERStream backend uses charge-only DPA4C models and Toolkit-Ops 0.5.0.
23
+ - **Multi-head models.** Multi-head MACE models load in mixed precision with the default kernels when `head` is given.
24
+ - **FP64 accuracy.** FP64 cuEquivariance results no longer lose accuracy when a mixed-precision model was loaded
25
+ earlier in the same process. Mixed-precision results can change slightly, within FP32 rounding.
26
+ - **Small systems.** Automatic planning no longer fails when the memory probe of a small system cannot resolve
27
+ per-atom growth (for example, 768 atoms with Z*(pair)). It uses a conservative bound for that system only.
28
+ - **Memory estimates.** A saved estimate is no longer reused for a larger system than the one it was measured on.
29
+ Automatic planning measures again instead; `erstream plan` uses its conservative default.
30
+ - **Multi-GPU without cuEquivariance.** Model signatures no longer depend on the GPU number. Mixed-precision
31
+ MACE-ER runs with `cueq=False` and kernels could stop with a signature mismatch on several GPUs. Signatures with
32
+ `cueq=False` change, so regenerate saved ones; those of the tested MACE-ER models with cuEquivariance do not.
33
+ - **Documentation.** The README and citation metadata link to the paper (arXiv:2611.37665). The guides
34
+ recommend comparisons with an FP64 reference where needed.
35
+
36
+ ## 0.1.0
37
+
38
+ Initial release. ERStream evaluates long-range machine-learning interatomic potentials with learned charges
39
+ on one GPU or on the GPUs of one node, partitioning each force call at the global electrostatic solve.
40
+
41
+ - **Models.** MACE-ER (MACE-ER-T1, MACE-ER-T2) through the pinned mace-er package, short-range MACE models,
42
+ and DPA4C-ER through the bundled DeePMD-kit plugin in `plugins/deepmd-lr`.
43
+ - **Observables.** Energies, forces, periodic virial and stress, learned charges and the nine-component pair
44
+ response Z*(pair) behind Born effective charges on every step; optional uniform external field; opt-in
45
+ per-term and per-atom energy reporting.
46
+ - **Boundaries and solvers.** Periodic smooth PME (lean single-GPU storage and slab-distributed multi-GPU),
47
+ restricted slabs with two periodic axes, and exact or split free-space electrostatics for isolated systems.
48
+ - **Z*(pair) method by architecture.** `one_hop` for receiver-local models (MACE-ER-T1, DPA4C-ER) and
49
+ `multi_hop` for multi-hop models (MACE-ER-T2), resolved once and used by every execution mode.
50
+ - **Precision.** Mixed precision by default (FP32 network, FP64 geometry, readouts and electrostatics), FP64
51
+ for reference runs, and experimental FP32.
52
+ - **Kernels and schedules.** Compiled epilogues for mixed MACE-ER-T2 and radial lookup tables for one-hop
53
+ models (MACE-ER-T1) by default, each checked against the exact network at load; the compact SPME schedule is
54
+ selected automatically when a run is eligible. Every default is recorded in the run plan and can be changed
55
+ with `kernels` and `execution_schedule`.
56
+ - **Memory and planning.** Automatic tile and memory planning with grid, Morton or recursive-bisection tile
57
+ shapes, streamed topology, bounded PME temporaries and single-node multi-GPU execution.
58
+ - **Interfaces.** Python API, ASE calculator, and the `erstream` command line for planning, MD, minimization
59
+ and FP64 equivalence gates.
@@ -0,0 +1,41 @@
1
+ cff-version: 1.2.0
2
+ message: "Please cite the ERStream paper and the model packages used in your workflow."
3
+ type: software
4
+ title: "ERStream: tiled single- and multi-GPU execution of long-range machine-learning interatomic potentials with learned charges"
5
+ authors:
6
+ - family-names: Yu
7
+ given-names: Xiaoyun
8
+ repository-code: "https://github.com/AM3GroupHub/ERStream"
9
+ version: "0.1.1"
10
+ date-released: "2026-12-05"
11
+ license:
12
+ - LGPL-3.0-or-later
13
+ - Apache-2.0
14
+ - MIT
15
+ preferred-citation:
16
+ type: article
17
+ title: "Scaling charge-aware machine learning molecular dynamics through memory-bounded GPU streaming"
18
+ authors:
19
+ - family-names: Yu
20
+ given-names: Xiaoyun
21
+ - family-names: Chen
22
+ given-names: Yicheng
23
+ - family-names: Zhong
24
+ given-names: Peichen
25
+ year: 2026
26
+ month: 11
27
+ journal: "arXiv preprint arXiv:2611.37665"
28
+ url: "https://arxiv.org/abs/2611.37665"
29
+ references:
30
+ - type: software
31
+ title: mace-er
32
+ repository-code: "https://github.com/AM3GroupHub/mace-er"
33
+ commit: "d0403b1c7e2b416d946c7e5922b0272069f930ff"
34
+ - type: software
35
+ title: MACE
36
+ repository-code: "https://github.com/ACEsuit/mace"
37
+ version: "0.3.15"
38
+ - type: software
39
+ title: NVIDIA ALCHEMI Toolkit-Ops
40
+ repository-code: "https://github.com/NVIDIA/nvalchemi-toolkit-ops"
41
+ version: "0.5.0"