MLCrack

    ML SYSTEM DESIGN & MLOPS · INTERVIEW QUESTION

    What is LLMOps and how does it differ from traditional MLOps?

    🟡 intermediate · ML Pipelines

    Hint: Think about prompt management, fine-tuning workflows, evaluation challenges.

    Answer

    LLMOps adapts MLOps practices for LLM-specific challenges:

    1. Prompt management: version control prompts, A/B test prompt variations, manage prompt templates. Replaces feature engineering.

    2. Fine-tuning pipelines: data preparation for instruction tuning, LoRA adapter management, preference data collection.

    Evaluation: automated eval with benchmarks + LLM-as-judge + human eval. No single metric captures quality.

    Serving: different infrastructure (GPU clusters, KV-cache management, batching strategies like vLLM's PagedAttention).

    1. Cost management: token-based pricing, caching frequent queries, model routing (cheap model for simple queries).

    2. Safety: guardrails, content filtering, jailbreak detection.

    3. Data flywheel: collect user feedback to improve prompts and fine-tuning data.

    Tools: LangSmith, Weights & Biases, Arize for LLM observability.