Trouble Running Deployed Model: Exception: Argument passed to at() was not in the map. #36
-
Hi There, I am trying to run a model I trained based off 50 structures from an AIMD simulation of Tungsten at 3300K as an example. I have attached my config.yaml file I followed the instruction on https://github.com/mir-group/pair_allegro/tree/stress to install as I need NPT for my future simulations I made sure to install pytorch 1.11.0 (cuda 11.3 version) with pip and libtorch with C+11 supporting cuda 11.3 + MKL-include for the pair-allegro commands I did not install with Kokkos. I am able to train models, evaluate, and deploy them, however I notice they typically have 2-3x higher force mae and 2x higher E/N mae (another problem for another day perhaps). I had to write extxyz files myself since ase doesn't seem to be able to read my OUTCAR files, but I made sure to copy the exact format of the tutorial sitraj.xyz. I wanted to try and test pair_allegro on a simple single point calculation
(I create a supercell with cubic unit cells of tungsten, 10 x 10 x 10 using ase). However, I get the following error.
After doing some googling it may be I installed something incorrectly? But I am unsure of how to begin this debugging process and would appreciate any help you can provide! Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @mstapelberg , Thanks for your interest in our code! Your network has only |
Beta Was this translation helpful? Give feedback.
Hi @mstapelberg ,
Thanks for your interest in our code!
Your network has only
ForceOutput
and notStressForceOutput
, which means there is no stress output from the model when thestress
branchpair_allegro
(which by the way themulticut
branch is latest) tries to access, leading to this error. Here's an older example of how to do this by redeploying your trained model (mir-group/nequip#69 (comment)), for example.