MLCrack

    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:

    1. Hyperparameters: learning rate, batch size, LoRA rank, data mix.

    2. Metrics: loss curves, eval benchmarks, human eval scores.

    3. Artifacts: model checkpoints, training data versions, prompts.

    4. Code versions: git commits, environment specs.

    5. 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.