-
Notifications
You must be signed in to change notification settings - Fork 423
Open
Description
What would you like to report?
I'm using UMA to compute energies on large, heterogeneous batches of molecular crystals, as fast as possible.
predictor = pretrained_mlip.load_predict_unit(model_path)
uma_batch = atomicdata_list_to_batch([AtomicData.from_ase(atoms, task_name='omc') for atoms in data_list])
out = predictor.predict(uma_batch)
The force calculations seem to inevitably call .backward() within the model, and my profiler is telling me that this is taking up a very large fraction of the total compute time (local RTX 5080, cluster A100). This is causing a significant slowdown in my overall workflows, as I do not need the forces or stresses.
I have played with the overrides in load_predict_unit, as well as a number of internal model flags, to try to turn off force calculation. These either have had no effect, or broken the model.
Is it possible to deactivate force calculations / internal backprop, to get the fastest possible energy-only evaluations?
Metadata
Metadata
Assignees
Labels
No labels