Lesson 2.5foundation2 h 30 min

Tooling: Git, GPUs, experiments and the Hugging Face Hub

Making your work reproducible, shareable and affordable

The difference between a learner who finishes projects and one who does not is rarely talent; it is whether yesterday's experiment can be found, rerun and compared today. Git, a reproducible environment, seeds, an experiment tracker and the Hugging Face Hub are the infrastructure for that. This lesson also tells you where to get free GPUs and how not to burn money on cloud ones — knowledge you will need from 4.9 PyTorch II: real training pipelines onward and for every API-based project in 9.11 Project: a cited RAG assistant over your own documents, with evals and 10.12 Project: build a research agent with tools, an MCP server and an eval harness.

You'll be able to

  • Use the core Git workflow (branch, commit, push, pull request) and know what never belongs in a repository
  • Pick a compute option — Colab, Kaggle, a cloud GPU or your own hardware — based on VRAM, quotas and price
  • Make a training run reproducible with seeds, pinned environments and logged configs, and know its limits
  • Track experiments with Weights & Biases or MLflow and compare runs honestly
  • Download models and datasets from the Hugging Face Hub, and publish your own model card and Space

Key ideas

  1. Git's daily subset is status/diff/add/commit/switch/push/pull; never commit secrets, large files or notebook outputs.
  2. Use free GPUs (Colab, Kaggle) through Phase 7; rent cloud GPUs only with budget alerts and checkpointing, and shut them down.
  3. VRAM is the binding constraint: weights × bytes + optimizer states + activations; a 7B model in fp16 is ~14 GB of weights alone.
Show 5 more key ideas
  1. Reproducibility has layers: pinned environment, seeds for random/NumPy/PyTorch, logged config + commit hash, determinism flags.
  2. Bit-exact reproduction across hardware is not guaranteed; report results over several seeds and treat differences within the spread as noise.
  3. Experiment trackers (W&B, MLflow) record config, metrics and artifacts per run; compare on held-out metrics, not training loss.
  4. The Hugging Face Hub provides datasets, pretrained models, model cards and Spaces for demos; datasets is Arrow-backed and lazy.
  5. A src/ + configs/ + README skeleton with a one-command reproduction is the backbone of a portfolio project.

Suggested path through this lesson