Deploy Triton Inference Server on Railway
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.
Related posts
- Does Your Model Run on AWS Trainium? Look It Up
Hugging Face mediumAdeptA Hugging Face Space reports whether popular Transformers models run unmodified on AWS Trainium via the TorchNeuron PyTorch backend. For each model it shows the result, the number of Trainium cores used, wall time including compilation, peak device memory, and the run.py script to reproduce it. Each test shards the model with tensor or expert parallelism over the fewest trn2 cores that hold it, generates 32 tokens, and checks them against a CPU run or with a judge model. A PASS says nothing about throughput or long generations. Results are published as a queryable Parquet dataset, and precompiled NEFF graphs can be synced from a public cache to skip compilation.
- Deploy Hugging Face models easily with Amazon SageMaker
Hugging Face mediumAdeptHugging 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. Models can be deployed straight after a SageMaker training job via the Estimator, from a model.tar.gz in S3 via HuggingFaceModel's model_data, or directly from the Model Hub by setting the HF_MODEL_ID and HF_TASK environment variables. Requests use an `inputs` key plus optional pipeline `parameters`, and custom inference code can override the defaults when needed.
- Unlocking Real-time Predictions with Shopify's Machine Learning Platform
Shopify Engineering mediumAdeptShopify 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. The serving layer is written in Python and offers three tiers: no-code MLServer configs, low-code custom MLServer classes, and fully custom FastAPI services, all scaffolded by a Merlin CLI from cookiecutter templates. Users test serving layers in short-lived Merlin Workspaces, then deploy through Shopify's standard Services DB, Buildkite and Shipit pipelines with separate staging and production configs for autoscaling and resource tuning.
- Deploying 🤗 ViT on Kubernetes with TF Serving
Hugging Face mediumAdeptA 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. The walkthrough covers building the image via docker commit with the versioned model directory layout, pushing it to GCR, and writing Deployment, Service (LoadBalancer exposing gRPC 8500 and REST 8501) and HorizontalPodAutoscaler manifests applied with kubectl or Kustomize. It also explains how CPU requests drive HPA scaling decisions and how to tune TF Serving's inter-op and intra-op parallelism flags.
- Deploying TensorFlow Vision Models in Hugging Face with TF Serving
Hugging Face mediumAdeptA 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. A custom serving signature accepts base64-encoded JPEG strings, then decodes, resizes, normalizes and transposes them to channel-first, and returns a class label plus softmax confidence. Building these steps into the model cuts request payload size and avoids training-serving skew. The walkthrough covers launching tensorflow_model_server and querying both the REST endpoint (port 8501) and the gRPC endpoint (port 8500), including how to select a model version.