xnn.common.cli.main#
- xnn.common.cli.main(argv=None)[source]#
Command-line entry point dispatching the
train,benchmark,exportandmdicommands.The first argument selects the command; the rest are that command’s options.
trainbuilds aConfigfrom the arguments, constructs the training/validation datasets, and runs the trainer.benchmarkloads aBenchmarkConfigand scores the listed pre-trained models on the dataset, writing a comparison table.exportloads a checkpoint into aForceStressOutput-wrapped model and writes it out for LAMMPS or as TorchScript.mdiserves a checkpoint as an MDI engine (seexnn.common.deploy.mdi_engine). With no arguments a usage line is printed; an unknown command prints an error message.