flashmd 0.2.8__tar.gz → 0.2.9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flashmd
3
- Version: 0.2.8
3
+ Version: 0.2.9
4
4
  Summary: Accelerated molecular dynamics with large-time-step predictions
5
5
  Author: flashmd developers
6
6
  License: Apache-2.0
@@ -19,10 +19,13 @@ Classifier: Topic :: Scientific/Engineering :: Chemistry
19
19
  Classifier: Topic :: Scientific/Engineering :: Physics
20
20
  Classifier: Topic :: Software Development :: Libraries
21
21
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
- Requires-Python: >=3.10
22
+ Requires-Python: >=3.11
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
25
  Requires-Dist: metatrain==2026.2
26
+ Requires-Dist: metatomic-ase
27
+ Requires-Dist: vesin>=0.5.4
28
+ Requires-Dist: nvalchemi-toolkit-ops==0.3.0
26
29
  Requires-Dist: ase
27
30
  Requires-Dist: huggingface_hub
28
31
  Provides-Extra: dev
@@ -128,7 +131,7 @@ Using FlashMD in i-PI
128
131
  ---------------------
129
132
 
130
133
  You can see
131
- [this cookbook recipe](https://atomistic-cookbook.org/examples/flashmd/flashmd-demo.html)
134
+ [this cookbook recipe](https://atomistic-cookbook.org/examples/flashmd/flashmd-demo.html)
132
135
  for usage examples. i-PI is our most mature interface, and the one that was used to
133
136
  generate all our published results.
134
137
 
@@ -191,3 +194,8 @@ Note that the results were obtained through the i-PI interface.
191
194
 
192
195
  Instructions and material to reproduce the results in the paper are available on
193
196
  Materials Cloud at https://doi.org/10.24435/materialscloud:b7-xq.
197
+
198
+ Maintainers
199
+ -----------
200
+
201
+ This project is [maintained](https://github.com/lab-cosmo/.github/blob/main/Maintainers.md) by [@frostedoyster](https://github.com/frostedoyster) and [@johannes-spies](https://github.com/johannes-spies), who will reply to issues and pull requests opened on this repository as soon as possible. You can mention them directly if you haven't received an answer after a couple of days.
@@ -95,7 +95,7 @@ Using FlashMD in i-PI
95
95
  ---------------------
96
96
 
97
97
  You can see
98
- [this cookbook recipe](https://atomistic-cookbook.org/examples/flashmd/flashmd-demo.html)
98
+ [this cookbook recipe](https://atomistic-cookbook.org/examples/flashmd/flashmd-demo.html)
99
99
  for usage examples. i-PI is our most mature interface, and the one that was used to
100
100
  generate all our published results.
101
101
 
@@ -158,3 +158,8 @@ Note that the results were obtained through the i-PI interface.
158
158
 
159
159
  Instructions and material to reproduce the results in the paper are available on
160
160
  Materials Cloud at https://doi.org/10.24435/materialscloud:b7-xq.
161
+
162
+ Maintainers
163
+ -----------
164
+
165
+ This project is [maintained](https://github.com/lab-cosmo/.github/blob/main/Maintainers.md) by [@frostedoyster](https://github.com/frostedoyster) and [@johannes-spies](https://github.com/johannes-spies), who will reply to issues and pull requests opened on this repository as soon as possible. You can mention them directly if you haven't received an answer after a couple of days.
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "flashmd"
3
- version = "0.2.8"
4
- requires-python = ">=3.10"
3
+ version = "0.2.9"
4
+ requires-python = ">=3.11"
5
5
 
6
6
  readme = "README.md"
7
7
  license = {text = "Apache-2.0"}
@@ -10,6 +10,9 @@ authors = [{name = "flashmd developers"}]
10
10
 
11
11
  dependencies = [
12
12
  "metatrain==2026.2",
13
+ "metatomic-ase",
14
+ "vesin>=0.5.4",
15
+ "nvalchemi-toolkit-ops==0.3.0", # tricks metatomic-ase into avoiding buggy vesin
13
16
  "ase",
14
17
  "huggingface_hub",
15
18
  ]
@@ -79,4 +82,13 @@ filterwarnings = [
79
82
  "ignore:custom data:UserWarning",
80
83
  "ignore:`torch.jit.script` is deprecated:DeprecationWarning",
81
84
  "ignore:`torch.jit.load` is deprecated:DeprecationWarning",
85
+ "ignore:`compute_requested_neighbors_from_options` is deprecated and will be removed in a future version:UserWarning",
86
+ "ignore:hf_xet\\.download_files\\(\\) is deprecated:DeprecationWarning",
87
+ "ignore:Due to '_pack_', the 'APICLaunchParamRecord' Structure will use memory layout compatible with MSVC:DeprecationWarning",
88
+ "ignore:`torch.jit.script` is not supported:DeprecationWarning",
89
+ "ignore:`torch.jit.script_method` is not supported:DeprecationWarning",
90
+ "ignore:`torch.jit.script_method` is deprecated:DeprecationWarning",
91
+ "ignore:`torch.jit.load` is not supported:DeprecationWarning",
92
+ "ignore:The 'nvalchemiops.neighborlist' module has been renamed to 'nvalchemiops.neighbors':DeprecationWarning",
93
+ "ignore:From version 0.3.0 onwards, PyTorch is now an optional dependency:DeprecationWarning",
82
94
  ]
@@ -1,4 +1,4 @@
1
- from metatomic.torch.ase_calculator import MetatomicCalculator
1
+ from metatomic_ase import MetatomicCalculator
2
2
 
3
3
 
4
4
  class EnergyCalculator(MetatomicCalculator):
@@ -28,6 +28,15 @@ class FlashMDStepper:
28
28
 
29
29
  self.dtype = getattr(torch, self.model.capabilities().dtype)
30
30
  self.device = device
31
+ self.neighbor_list_calculators = vesin.metatomic.neighbor_lists_for_model(
32
+ "angstrom", self.model
33
+ )
34
+
35
+ # vesin's CUDA brute_force algorithm is broken for triclinic cells,
36
+ # so we use cell_list for all CUDA calculations to avoid potential issues. See
37
+ # https://github.com/Luthaf/vesin/issues/157
38
+ for neighbor_list in self.neighbor_list_calculators:
39
+ neighbor_list._nl.algorithm = "cell_list"
31
40
 
32
41
  def step(self, system: System):
33
42
  if system.device.type != self.device.type:
@@ -35,7 +44,8 @@ class FlashMDStepper:
35
44
  if system.positions.dtype != self.dtype:
36
45
  raise ValueError("System dtype does not match stepper dtype.")
37
46
 
38
- vesin.metatomic.compute_requested_neighbors([system], "angstrom", self.model)
47
+ for calculator in self.neighbor_list_calculators:
48
+ calculator.add_neighbor_list(system)
39
49
 
40
50
  masses = system.get_data("masses").block().values
41
51
  model_outputs = self.model(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flashmd
3
- Version: 0.2.8
3
+ Version: 0.2.9
4
4
  Summary: Accelerated molecular dynamics with large-time-step predictions
5
5
  Author: flashmd developers
6
6
  License: Apache-2.0
@@ -19,10 +19,13 @@ Classifier: Topic :: Scientific/Engineering :: Chemistry
19
19
  Classifier: Topic :: Scientific/Engineering :: Physics
20
20
  Classifier: Topic :: Software Development :: Libraries
21
21
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
- Requires-Python: >=3.10
22
+ Requires-Python: >=3.11
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
25
  Requires-Dist: metatrain==2026.2
26
+ Requires-Dist: metatomic-ase
27
+ Requires-Dist: vesin>=0.5.4
28
+ Requires-Dist: nvalchemi-toolkit-ops==0.3.0
26
29
  Requires-Dist: ase
27
30
  Requires-Dist: huggingface_hub
28
31
  Provides-Extra: dev
@@ -128,7 +131,7 @@ Using FlashMD in i-PI
128
131
  ---------------------
129
132
 
130
133
  You can see
131
- [this cookbook recipe](https://atomistic-cookbook.org/examples/flashmd/flashmd-demo.html)
134
+ [this cookbook recipe](https://atomistic-cookbook.org/examples/flashmd/flashmd-demo.html)
132
135
  for usage examples. i-PI is our most mature interface, and the one that was used to
133
136
  generate all our published results.
134
137
 
@@ -191,3 +194,8 @@ Note that the results were obtained through the i-PI interface.
191
194
 
192
195
  Instructions and material to reproduce the results in the paper are available on
193
196
  Materials Cloud at https://doi.org/10.24435/materialscloud:b7-xq.
197
+
198
+ Maintainers
199
+ -----------
200
+
201
+ This project is [maintained](https://github.com/lab-cosmo/.github/blob/main/Maintainers.md) by [@frostedoyster](https://github.com/frostedoyster) and [@johannes-spies](https://github.com/johannes-spies), who will reply to issues and pull requests opened on this repository as soon as possible. You can mention them directly if you haven't received an answer after a couple of days.
@@ -1,4 +1,7 @@
1
1
  metatrain==2026.2
2
+ metatomic-ase
3
+ vesin>=0.5.4
4
+ nvalchemi-toolkit-ops==0.3.0
2
5
  ase
3
6
  huggingface_hub
4
7
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes