talira

TorchServe

Serve, optimize and scale PyTorch models in production

open sourceApache-2.0self-hostablefree

TorchServe's makers archived or ended it on 7 Aug 2025.

Limited maintenance: no planned updates, bug fixes, new features or security patches; the GitHub repository was archived on 7 Aug 2025. Last release 0.12.0 (30 Sep 2024).

TorchServe is a model server for PyTorch models, made by Amazon and Meta and derived from AWS's Multi Model Server. You package a model and its handler with torch-model-archiver and TorchServe serves it over REST and gRPC inference APIs, with a management API for registering and scaling models, a metrics API with Prometheus export, batched inference, workflows (DAGs of models), and LLM deployment through vLLM or TensorRT-LLM engines. It was integrated into Amazon SageMaker, Google Vertex AI and KServe, and from 0.12 enforces token authorization and turns off model API control by default. The project is in limited maintenance and its GitHub repository was archived on 7 August 2025: existing releases remain available, with no further updates, bug fixes or security patches.

Problems it solves

  • serve a trained PyTorch model behind a REST endpoint with batching
  • package a PyTorch model with its preprocessing code into one archive to deploy
  • register, scale and unregister models on a running server through an API
  • expose PyTorch model inference over gRPC as well as HTTP
  • Prometheus metrics for our PyTorch model server
  • run several PyTorch models on one GPU server with separate workers
  • chain several PyTorch models into one inference workflow
  • serve a PyTorch model on SageMaker with the standard PyTorch model server

Features

  • REST and gRPC inference APIs with batched inference
  • management API to register, scale and unregister models
  • metrics API with Prometheus export and custom metrics
  • torch-model-archiver (.mar model archives) and custom handlers
  • workflows: DAGs of models
  • LLM deployment with vLLM or TensorRT-LLM engines
  • CPU, GPU, AWS Inferentia/Trainium and Google Cloud TPU inference
  • TorchScript, torch.compile, ONNX Runtime, IPEX and TensorRT optimizations
  • token authorization on by default; model API control off by default
  • Kubernetes deployment with autoscaling and session affinity
View 1 more
  • KServe integration (v1 and v2 protocols)

Capabilities

Has an APIplan not known
Has a command line toolplan not known

Alternatives

The same job

These do what TorchServe does.

  1. NVIDIA Dynamo-Triton Open source inference serving software that deploys AI models from any major framework
  2. Ray Serve Scalable model serving library for building online inference APIs
  3. BentoML Unified model serving framework for building model inference APIs and multi-model serving systems
  4. KServe Standardized distributed generative and predictive AI inference platform for scalable, multi-framework deployment on Kubernetes
  5. Seldon Core An MLOps and LLMOps framework for deploying, managing and scaling AI systems in Kubernetes

Compare TorchServe with the top 3