AgentStack
SKILL verified MIT Self-run

Model Deployment

skill-ericwang915-data-scientist-skills-model-deployment · by ericwang915

Deploy ML models as REST APIs: FastAPI, Flask, Docker containerization, cloud deployment (AWS SageMaker, GCP Vertex AI, Azure ML), and serverless options. Use when taking a model from notebook to production.

No reviews yet
0 installs
15 views
0.0% view→install

Install

$ agentstack add skill-ericwang915-data-scientist-skills-model-deployment

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Model Deployment? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Model Deployment

Purpose

Deploy trained ML models as production services with proper API design, containerization, and scaling.

How It Works

Step 1: Package Model

  • Serialize model (joblib, pickle, ONNX, TorchScript)
  • Define input/output schema (Pydantic models)
  • Create prediction function with preprocessing

Step 2: Build API

| Framework | Best For | |-----------|----------| | FastAPI | Modern, async, auto-docs | | Flask | Simple, widely known | | BentoML | ML-specific, batching | | Ray Serve | Scalable, composable |

Step 3: Containerize

  • Dockerfile with minimal base image
  • Multi-stage build for smaller images
  • Health check endpoint
  • Environment variable configuration

Step 4: Deploy

| Target | Complexity | Scaling | |--------|-----------|---------| | Docker Compose | Low | Manual | | AWS SageMaker | Medium | Auto | | GCP Vertex AI | Medium | Auto | | Kubernetes | High | Full control | | Serverless (Lambda) | Low | Auto |

Step 5: Test & Monitor

  • Load testing (locust, k6)
  • Latency and throughput benchmarks
  • Error handling and fallbacks

Usage Examples

"Deploy my scikit-learn model as a FastAPI endpoint in Docker"
"Set up a SageMaker endpoint for real-time inference"

Output Format

  • API Code: FastAPI/Flask application
  • Dockerfile: Production-ready container
  • Deployment Config: Cloud/K8s configuration
  • Test Script: API testing and load testing code

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.