torch-model-archiver
Torch Model Archiver is used for creating archives of trained neural net models that can be consumed by TorchServe inference
Decision gist · record as of 2026-08-14
Yes, if you are already using TorchServe and need to package models for serving—it is the standard tool for that task and has low install friction. However, approach with caution for new projects: the repository is archived and maintenance is abandoned, so security patches and compatibility updates with future PyTorch versions are unlikely. Evaluate whether TorchServe itself remains actively maintained and suitable for your deployment strategy.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires PyTorch and a trained model file; TorchServe is needed to serve the resulting .mar archive.
- Low install friction with a single lightweight runtime dependency.
- However, the repository is archived and maintenance is abandoned as of the latest release on 2024-09-30, with no commits since 2025-08-06.
License · maintenance · safety
Apache License Version 2.0 (permissive) — Apache License Version 2.0 is permissive, allowing commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
last release 2024-09-30 (683 days) · last repo commit 2025-08-06 · 4,347 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 103,470 downloads/mo, #12,803 on PyPI
Alternatives
Verify before relying
pip install torch-model-archiver
from torch_model_archiver.model_packaging import package_model
package_model(model_name, model_path, handler, export_path)- Whether the archived repository will receive security patches or bug fixes if issues are discovered.
- Compatibility with recent PyTorch and TorchServe versions given the abandoned maintenance status.
- Whether enum-compat dependency has known issues or is actively maintained.
What it is and what it does
Torch Model Archiver is a command-line tool that packages trained PyTorch neural network models into .mar (model archive) files suitable for inference serving with TorchServe. It bundles the model weights, architecture, and a handler script into a single deployable artifact that TorchServe can load and use to serve predictions. The tool is part of the TorchServe ecosystem but can be installed standalone.
The package has low install friction—it depends only on enum-compat—and is distributed as a pure Python wheel. However, the underlying repository is archived and marked as abandoned, meaning no active development or maintenance is occurring. The last release was in September 2024, and while no known vulnerabilities are recorded, the lack of ongoing maintenance may be a concern for long-term production use or compatibility with future PyTorch versions.
Use it for
- Package a trained PyTorch model into a .mar file for deployment on a TorchServe inference server.
- Automate model archiving in a CI/CD pipeline to prepare models for production serving.
- Bundle custom inference handlers with model weights for standardized deployment across teams.
- Create reproducible model archives for sharing trained models with consistent serving configuration.
- Prepare models for containerized inference services that consume TorchServe-compatible archives.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already using TorchServe and need to package models for serving—it is the standard tool for that task and has low install friction.
However, approach with caution for new projects: the repository is archived and maintenance is abandoned, so security patches and compatibility updates with future PyTorch versions are unlikely. Evaluate whether TorchServe itself remains actively maintained and suitable for your deployment strategy.
Install
torch-model-archiver on PyPI
Before you install
Low install friction with a single lightweight runtime dependency. However, the repository is archived and maintenance is abandoned as of the latest release on 2024-09-30, with no commits since 2025-08-06.
Requires PyTorch and a trained model file; TorchServe is needed to serve the resulting .mar archive.
License in practice
Apache License Version 2.0 is permissive, allowing commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
Quickstart
pip install torch-model-archiver
from torch_model_archiver.model_packaging import package_model
package_model(model_name, model_path, handler, export_path)
Verify before relying
- Whether the archived repository will receive security patches or bug fixes if issues are discovered.
- Compatibility with recent PyTorch and TorchServe versions given the abandoned maintenance status.
- Whether enum-compat dependency has known issues or is actively maintained.
Package facts
| License | Apache License Version 2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageenum-compat |
| Maintenance | Abandoned 683 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 103,470 / month, #12,803 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: torch_model_archiver-0.12.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “torch model archiver”
- torch-model-archiverTorch Model Archiver creates .mar archive files from trained neural…
- model-archiverModel Archiver creates `.mar` archive files from trained neural…
- multi-model-serverMulti Model Server is a tool for serving deep learning models…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also model-archiver · multi-model-server · rotary-embedding-torch · pte-adapter-model-explorer · ema-pytorch · segmentation-models-pytorch · torch · pytorch · pytorchcv · tlparse