$npx skillfedfor your agent

torch-model-archiver

Torch Model Archiver is used for creating archives of trained neural net models that can be consumed by TorchServe inference

With conditionsPyPI Artificial IntelligenceReleased Sep 2024103.5K downloads / moApache License Version 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — torch_model_archiver-0.12.0-py3-none-any.whl
v0.12.0 · released 2024-09-30 · 1 runtime deps: enum-compat

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseApache License Version 2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
enum-compat
MaintenanceAbandoned 683 days since the last release
Last repo commit repository archived
First released
Downloads103,470 / month, #12,803 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: torch_model_archiver-0.12.0-py3-none-any.whl

Tags

Capabilities
torch model archivercreate mar files pytorchtorchserve model packagingneural network model archivepytorch model deploymenttorchserve model preparationdeep learning model serving
Topics
model-servingpytorch-ecosystemarchived
PyPI keywords
TorchServeTorchModelArchiveArchiverServerServingDeepLearningInferenceAI

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

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.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

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.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

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.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

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.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

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.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also model-archiver · multi-model-server · rotary-embedding-torch · pte-adapter-model-explorer · ema-pytorch · segmentation-models-pytorch · torch · pytorch · pytorchcv · tlparse