ML SYSTEM DESIGN & MLOPS · INTERVIEW QUESTION
How do you deploy a fine-tuned LLM in production on cloud infrastructure?
🔴 advanced · Model Serving
Hint: Think about hosting options, serving frameworks, scaling, and safety.
Answer
Deployment pipeline:
-
Choose hosting: Managed FM (Azure OpenAI / AWS Bedrock — deploy with RPM/TPM quotas) or BYOM on cloud ML platforms (Azure ML, SageMaker — package with vLLM/TensorRT-LLM/TGI serving image).
-
Register & package: push model + serving container to model registry, create endpoint + deployment.
-
Networking & security: private endpoints, managed VNet, Managed Identity + Key Vault for secrets.
-
Scaling: no scale-to-zero for most online endpoints (keep ≥1 replica), use traffic-split for canary deployments (blue/green).
-
Observability: Azure Monitor / CloudWatch metrics + Application Insights for container logs, model monitoring for drift.
-
Safety: content safety filters (Azure AI Content Safety, Prompt Shields) wired pre/post-inference.
-
Quotas: plan TPM/RPM limits, request increases proactively. Serving frameworks: vLLM (PagedAttention), TGI (HuggingFace), TensorRT-LLM (NVIDIA) for optimal throughput.
Related questions
- What is model distillation? How is it used in production?
- What are the key techniques for making Transformers efficient in production? Explain KD, quantization, pruning, and graph optimization.
- What is continuous batching for LLM inference? How does it improve throughput?
- Design a real-time ML serving system for a recommendation engine handling 10k QPS.
- What is LLMOps and how does it differ from traditional MLOps?