MLCrack

    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:

    1. 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).

    2. Register & package: push model + serving container to model registry, create endpoint + deployment.

    3. Networking & security: private endpoints, managed VNet, Managed Identity + Key Vault for secrets.

    4. Scaling: no scale-to-zero for most online endpoints (keep ≥1 replica), use traffic-split for canary deployments (blue/green).

    5. Observability: Azure Monitor / CloudWatch metrics + Application Insights for container logs, model monitoring for drift.

    6. Safety: content safety filters (Azure AI Content Safety, Prompt Shields) wired pre/post-inference.

    7. Quotas: plan TPM/RPM limits, request increases proactively. Serving frameworks: vLLM (PagedAttention), TGI (HuggingFace), TensorRT-LLM (NVIDIA) for optimal throughput.