Repository navigation
How big are models usually trained with dpgen #1969
Replies: 1 comment
|
There is no single typical size. The frozen model's size is set by the descriptor and fitting net architecture you chose in your deepmd training config, plus the number of chemical species, not by dpgen itself. 10 MB is a normal result for a small network and does not indicate anything wrong. I checked this by training two models with deepmd-kit 3.2.0 (PyTorch backend, pip install deepmd-kit) on the same tiny synthetic dataset (2 elements, 5 atoms, 20 frames) and running dp freeze on each. First run used the exact descriptor and fitting net sizes from dpgen's own example at examples/run/ch4/param.json (se_a, neuron [10, 20, 40], axis_neuron 12, fitting net [120, 120, 120]): frozen_model.pth: 1,570,314 bytes (about 1.5 MB). Second run used a commonly used larger configuration (se_e2_a, neuron [25, 50, 100], axis_neuron 16, fitting net [240, 240, 240]), everything else identical: frozen_model2.pth: 8,358,586 bytes (about 8 MB). So moving from a small example network to a moderately larger one took the frozen model from 1.5 MB to 8 MB with no change to the dataset at all, just the descriptor and fitting net sizes in default_training_param. A ~10 MB frozen model from a real training run sits right where that second configuration lands, which is an ordinary network size, not an unusually small one. If you want a bigger or smaller model, change the neuron lists for descriptor and fitting_net in your training parameters, not anything in dpgen. |
Uh oh!
There was an error while loading. Please reload this page.
How big is the model usually trained by dpgen? Why is my frozen_model.pth only about 10 MB? Is this normal?
All reactions