Torch Model Archiver is used for creating archives of trained neural net models that can be consumed by TorchServe inference
Torch Model Archiver is a tool used for creating archives of trained neural net models that can be consumed by TorchServe for inference.
Use the Torch Model Archiver CLI to create a .mar
file.
Torch Model Archiver is part of TorchServe <https://pypi.org/project/torchserve/>
__.
However, you can install Torch Model Archiver stand alone.
Detailed documentation and examples are provided in the README <https://github.com/pytorch/serve/blob/master/model-archiver/README.md>
__.
::
python -m pip install torch-model-archiver
You can check the latest source code as follows:
::
git clone https://github.com/pytorch/serve.git
If you use torchserve in a publication or project, please cite torchserve: https://github.com/pytorch/serve