Skip to content

Energy only evaluations with pretrained_mlip #1713

@InfluenceFunctional

Description

@InfluenceFunctional

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions