You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CuEquivariance can be used to accelerate training by using nequip.model.modify in the config file:
training_module:
_target_: allegro.train.EMALightningModule# ... other training module configurations ...model:
_target_: nequip.model.modifymodifiers:
- modifier: enable_CuEquivarianceContractermodel:
_target_: allegro.model.AllegroModel# ... your standard Allegro model configuration ...compile_mode: compile# ^ CuEquivariance composes with train-time compilation
Inference
CuEquivariance can be used to accelerate TorchScript and AOTInductor inference in ASE by doing nequip-compile with --modifiers enable_CuEquivarianceContracter.
AOT Inductor Compilation
nequip-compile \
path/to/model.ckpt \
path/to/compiled_model.nequip.pt2 \
--device cuda \
--mode aotinductor \
--target ase \
--modifiers enable_CuEquivarianceContracter
TorchScript Compilation
nequip-compile \
path/to/model.ckpt \
path/to/compiled_model.nequip.pth \
--device cuda \
--mode torchscript \
--target ase \
--modifiers enable_CuEquivarianceContracter