---
title: "Deploy Triton Inference Server on Railway"
description: "NVIDIA Triton Inference Server can serve CPU-friendly ML models on Railway, with MinIO as an S3-compatible model repository."
url: "https://swe.quest/articles/deploy-triton-inference-server-on-railway-ef04464cb6f25df0"
canonical: "https://blog.railway.com/p/deploy-triton-inference-server-on-railway"
source: "Railway"
published: "2024-12-13"
difficulty: "medium"
kind: "How-to"
reading_minutes: 10
tags: ["inference","ml-platform","deployment","python"]
---

# Deploy Triton Inference Server on Railway

A post on [Railway](https://swe.quest/sources/railway.md), published 2024-12-13, 10 min read, How-to. Original: [https://blog.railway.com/p/deploy-triton-inference-server-on-railway](https://blog.railway.com/p/deploy-triton-inference-server-on-railway)

## Summary

NVIDIA Triton Inference Server can serve CPU-friendly ML models on Railway, with MinIO as an S3-compatible model repository. The walkthrough starts with PyTriton wrapping a simple AddSub model in a Docker image and calling it through the Triton HTTP client. It then moves to plain tritonserver in poll mode, reading a model repository from MinIO so models such as a Python AddSub and a TorchScript ResNet18 load dynamically when uploaded. Config.pbtxt layouts, the required AWS credential environment variables and a client for listing models and running inference are all shown.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [ML platforms](https://swe.quest/tags/ml-platform.md) (AI & ML)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- Docker basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- Python ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))
- PyTorch model basics

## Keywords

Triton Inference Server, PyTriton, MinIO, Railway, ResNet18, TorchScript

## Related posts

- [Does Your Model Run on AWS Trainium? Look It Up](https://swe.quest/articles/does-your-model-run-on-aws-trainium-look-it-up-4ce5c68bb56caf0e.md): Hugging Face · 2026-10-23 · Medium · 3 min read · Inference & serving, Hardware, Machine learning
  A Hugging Face Space reports whether popular Transformers models run unmodified on AWS Trainium via the TorchNeuron PyTorch backend.
- [Deploy Hugging Face models easily with Amazon SageMaker](https://swe.quest/articles/deploy-hugging-face-models-easily-with-amazon-sagemaker-e09e9e34ef94ffa8.md): Hugging Face · 2021-07-08 · Medium · 9 min read · Inference & serving, Cloud platforms, ML platforms, Python
  Hugging Face Inference Deep Learning Containers and the SageMaker Hugging Face Inference Toolkit let Transformers models be deployed as SageMaker endpoints with a few lines of Python, using transformers pipelines for zero-code pre- and post-processing.
- [Unlocking Real-time Predictions with Shopify's Machine Learning Platform](https://swe.quest/articles/unlocking-real-time-predictions-with-shopify-s-machine-learning-platform-f4124fdd81e9cd3f.md): Shopify Engineering · 2023-03-10 · Medium · 13 min read · ML platforms, Inference & serving, Kubernetes, Deployment, Python
  Shopify extended its Ray-based Merlin ML platform with online inference, running each real-time model as a dedicated service in its own namespace on GKE that loads models from the Comet ML registry and can read features from the Feast-based Pano store.
- [Deploying 🤗 ViT on Kubernetes with TF Serving](https://swe.quest/articles/deploying-vit-on-kubernetes-with-tf-serving-72269d9df3724559.md): Hugging Face · 2022-08-11 · Medium · 12 min read · Inference & serving, Kubernetes, Containers, Cloud platforms
  A Vision Transformer from Hugging Face Transformers, exported as a TensorFlow SavedModel, is packaged into a custom TensorFlow Serving Docker image and deployed to a GKE cluster.
- [Deploying TensorFlow Vision Models in Hugging Face with TF Serving](https://swe.quest/articles/deploying-tensorflow-vision-models-in-hugging-face-with-tf-serving-a278ea9a908befbd.md): Hugging Face · 2022-07-25 · Medium · 8 min read · Inference & serving, Computer vision, Python, RPC & gRPC
  A Vision Transformer image classifier from Hugging Face Transformers can be served locally with TensorFlow Serving by exporting it as a SavedModel with preprocessing and postprocessing embedded in the graph.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
