deepmd.pt_expt.entrypoints.main
Training entrypoint for the pt_expt backend.
Module Contents
- deepmd.pt_expt.entrypoints.main.log[source]
- deepmd.pt_expt.entrypoints.main.get_trainer(config: dict[str, Any], init_model: str | None = None, restart_model: str | None = None) → deepmd.pt_expt.train.training.Trainer[source]
Build a training.Trainer from a normalised config.
- deepmd.pt_expt.entrypoints.main.train(input_file: str, init_model: str | None = None, restart: str | None = None, skip_neighbor_stat: bool = False, output: str = 'out.json') → None[source]
Run training with the pt_expt backend.
- Parameters:
- input_file
str Path to the JSON configuration file.
- init_model
str or None Path to a checkpoint to initialise weights from.
- restart
str or None Path to a checkpoint to restart training from.
- skip_neighbor_statbool
Skip neighbour statistics calculation.
- output
str Where to dump the normalised config.
- deepmd.pt_expt.entrypoints.main.freeze(model: str, output: str = 'frozen_model.pte', head: str | None = None) → None[source]
Freeze a pt_expt checkpoint into a .pte exported model.
- Parameters:
- model
str Path to the checkpoint file (.pt).
- output
str Path for the output .pte file.
- head
str or None Head to freeze in multi-task mode (not yet supported).
- deepmd.pt_expt.entrypoints.main.main(args: list[str] | argparse.Namespace | None = None) → None[source]
Entry point for the pt_expt backend CLI.
- Parameters:
- args
list[str] | argparse.Namespace | None Command-line arguments or pre-parsed namespace.