model-deployment-patterns

Installation
SKILL.md

Model Deployment Patterns

Expert patterns for model serving, ONNX export, Triton configuration, and traffic splitting.

Pattern 1: FastAPI Production Serving

Production-ready FastAPI service with model loaded at startup, health checks, and Prometheus metrics.

# app/main.py
from contextlib import asynccontextmanager
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
import joblib
import numpy as np
import time
import logging
from prometheus_fastapi_instrumentator import Instrumentator
Installs
1
First Seen
1 day ago