how to save a model as CV?

38 views
Skip to first unread message

peng liu

unread,
Mar 12, 2025, 2:36:26 AMMar 12
to PLUMED users
To all developers and users

I apply the deeplda to train the cv describe a protonation process. Now, I want to save this model as CV. And use this cv in plumed. 

I found no save model section in this example. Save model section was located in another example, viz., ex_committor (https://mlcolvar.readthedocs.io/en/stable/notebooks/examples/ex_committor.html).

I see two lines to save model. 
"
model.to_torchscript(f'model_{iter}_q.pt', method='trace') convert_model(f'model_{iter}_q.pt', 45)
"

I just wonder why the second line is needed? Is the first line not sufficient?

Thanks.
Reply all
Reply to author
Forward
0 new messages