ML SYSTEM DESIGN & MLOPS · INTERVIEW QUESTION
What is experiment tracking and why is it important for LLM projects?
🟡 intermediate · Monitoring & Observability
Hint: Think about reproducibility, comparison, and collaboration.
Answer
Experiment tracking systematically records all aspects of ML experiments for reproducibility and comparison. What to track:
-
Hyperparameters: learning rate, batch size, LoRA rank, data mix.
-
Metrics: loss curves, eval benchmarks, human eval scores.
-
Artifacts: model checkpoints, training data versions, prompts.
-
Code versions: git commits, environment specs.
-
Compute: GPU hours, cost.
Tools: MLflow (open-source, broad), Weights & Biases (best visualization, LLM support), Neptune, Comet.
For LLMs specifically: track prompt versions, evaluation on multiple benchmarks (MMLU, HumanEval), human preference data, cost per token.
Why critical for LLMs: training is extremely expensive (can't easily re-run), many moving parts (data mix, tokenizer, training recipe), team collaboration across long training runs.
Best practice: log everything by default — storage is cheap, re-running experiments is not.
Use experiment comparison features to understand what changes actually mattered.
Related questions
- What is data drift and concept drift? How do you detect and handle them?
- 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?
- What are ML design patterns? Explain the Feature Store pattern.
- What is model distillation? How is it used in production?