Where should training code and pipeline definitions live?
Why A is the answer
In Git
Git gives training code and pipelines history, review and a single source of truth.
In detail
- Git gives history, review and a single source of truth.
- Compute should hold no unique work.
Use case
An illustrative scenario, not a real incident.
Pipeline code sat on one compute instance, and it was lost with that instance. In Git, it has history, review and a single source.
See it in different ways
mindmap
root((Reproducible run))
Code
Git
Data
Versioned data assets
Environment
Registered environment
Compute
Cluster that scales to zero
Results
MLflowflowchart LR S0["Write code"] --> S1["Commit"] --> S2["Review"] --> S3["Pipeline runs it"]
Key point: Code lives in Git.
Why the other options are wrong
- B. Only in a notebook on one compute instance
- One compute instance is a single point of loss.
- C. In the description of a registered model
- A description is not code storage.
- D. In the workspace, as notebooks that each person edits
- Notebooks edited by each person have no reviewed history.

