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. However, you can install Torch Model Archiver stand alone.
Detailed documentation and examples are provided in the README.
Installation
python -m pip install torch-model-archiver
Source code
You can check the latest source code as follows:
git clone https://github.com/pytorch/serve.git
Citation
If you use torchserve in a publication or project, please cite torchserve: https://github.com/pytorch/serve
Metadata
Release files for torch-model-archiver-nightly 2025.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torch_model_archiver_nightly-2025.2.7-py3-none-any.whl | Python 3 | none | any | Details |
Release files / torch_model_archiver_nightly-2025.2.7-py3-none-any.whl
| Download URL | torch_model_archiver_nightly-2025.2.7-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3439bb0db6fd85499ab2cc8e080658d20695d8f30984b8ad1a7afd7182de4b5e
|
|
BLAKE2b-256 checksum How to use checksums |
22c4cdc6c5b0e26bb3e09f5672ef43cb43a031bec97bea1c6bb85bffa56db2bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.21
|