소스 정보
- 저장소
- pluginagentmarketplace/custom-plugin-mlops
- 최근 소스 활동
- 2025년 12월 30일 12:44
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SOC 직업 분류 기준
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-mlops --skill model-serving명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
Master ML experiment tracking - MLflow, W&B, Neptune, versioning, reproducibility
Master feature stores - Feast, data validation, versioning, online/offline serving
Production-grade ML infrastructure with Kubernetes, auto-scaling, and cost optimization
| name | model-serving |
| version | 2.0.0 |
| sasmp_version | 1.3.0 |
| description | Master model serving - inference optimization, scaling, deployment, edge serving |
| bonded_agent | 05-model-serving |
| bond_type | PRIMARY_BOND |
| category | deployment |
| difficulty | intermediate_to_advanced |
| estimated_hours | 35 |
| prerequisites | ["mlops-basics","training-pipelines"] |
| validation | {"pre_conditions":["Completed prerequisite skills","Trained model available"],"post_conditions":["Can deploy models with BentoML/Triton","Can optimize inference latency","Can configure auto-scaling"]} |
| observability | {"metrics":["models_deployed","inference_latency","optimization_speedup"]} |
Learn: Deploy ML models for production inference with optimization.
| Attribute | Value |
|---|---|
| Bonded Agent | 05-model-serving |
| Difficulty | Intermediate to Advanced |
| Duration | 35 hours |
| Prerequisites | mlops-basics, training-pipelines |
Platform Comparison:
| Platform | Multi-framework | Dynamic Batching | Kubernetes |
|---|---|---|---|
| TorchServe | PyTorch only | ✅ | ✅ |
| Triton | ✅ | ✅ | ✅ |
| BentoML | ✅ | ✅ | ✅ |
| Seldon | ✅ | ⚠️ | ✅ |
Service Definition:
import bentoml
from bentoml.io import JSON, NumpyNdarray
@bentoml.service(resources={"gpu": 1, "memory": "4Gi"})
class ModelService:
def __init__(self):
.model = bentoml.pytorch.load_model()
() -> :
torch.no_grad():
predictions = .model(input_array)
{: predictions.tolist()}
Exercises:
Optimization Techniques:
# 1. Dynamic Quantization
quantized_model = torch.quantization.quantize_dynamic(
model, {torch.nn.Linear}, dtype=torch.qint8
)
# 2. ONNX Export
torch.onnx.export(model, sample_input, "model.onnx")
# 3. TensorRT Conversion
import tensorrt as trt
# Convert ONNX to TensorRT for NVIDIA GPUs
Expected Speedups:
| Technique | Speedup | Accuracy Impact |
|---|---|---|
| FP16 | 2-3x | <1% |
| INT8 | 3-4x | 1-2% |
| TensorRT | 5-10x | <1% |
Kubernetes HPA:
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: model-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: model-serving
minReplicas: 2
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
# templates/serving.py
from fastapi import FastAPI
import torch
import numpy as np
app = FastAPI()
class ProductionServer:
def __init__(self, model_path: str):
self.model = torch.jit.load(model_path)
self.model.eval()
def predict(self, inputs: np.ndarray) -> np.ndarray:
with torch.no_grad():
tensor = torch.from_numpy(inputs)
outputs = self.model(tensor)
return outputs.numpy()
server = ProductionServer("model.pt")
@app.post("/predict")
async def predict(data: dict):
inputs = np.array(data["inputs"])
predictions = server.predict(inputs)
return {"predictions": predictions.tolist()}
| Issue | Cause | Solution |
|---|---|---|
| High latency | No optimization | Apply quantization, batching |
| Cold starts | Serverless | Pre-warming, min replicas |
| OOM | Model too large | Optimize, reduce batch size |
| Version | Date | Changes |
|---|---|---|
| 2.0.0 | 2024-12 | Production-grade with optimization |
| 1.0.0 | 2024-11 | Initial release |