How stas00/ml-engineering works
This repository is an open technical book and toolbox for LLM/VLM training engineers and operators, not a single executable application. The principal reader journey is to find a training or operations problem, consult guidance on infrastructure and orchestration, apply relevant training or inference practices, then use debugging and testing material to investigate results. The graph reflects the README’s documented sections and shortcuts; it does not imply that these chapters call one another. Source excerpts also identify concrete scripts, but most chapter implementations are documentation and were not sampled.
Main entry points: debug Debugging guidance · insights Engineering insights · training Training guidance · compute Compute guidance
Components 23
Orientation and guidance
- Engineering insights
insights - GPU upgrade analysis
insights/when-to-upgrade-gpus - GPU step benchmark
insights/when-to-upgrade-gpus/bench_decompose.py
Compute and infrastructure
- Compute guidance
compute - Storage guidance
storage - Network guidance
network - Orchestration guidance
orchestration - SLURM guidance
orchestration/slurm
Model lifecycle
- Training guidance
training - Checkpoint tools
training/checkpoints - Fault tolerance
training/fault-tolerance - Filesystem watchdog
training/fault-tolerance/fs-watchdog.py - Inference guidance
inference
Engineering tools
- Debugging guidance
debug - Python trace tool
debug/NicerTrace.py - Numerical overflow debugger
debug/underflow_overflow.py - Synthetic data scripts
debug/tiny-scripts/cm4-synthetic-testing.py - Testing guidance
testing - Testing utilities
testing/testing_utils.py
Learning resources
- ML resources
resources - Lessons learned course
courses/lesson-learned - Engineering skills
skills
Other components
- ML engineer
Connections 23
- ML engineer → Engineering insights: consults
README.md - ML engineer → Compute guidance: consults
README.md - ML engineer → Storage guidance: consults
README.md - ML engineer → Network guidance: consults
README.md - ML engineer → Orchestration guidance: consults
README.md - ML engineer → Training guidance: consults
README.md - ML engineer → Inference guidance: consults
README.md - ML engineer → Debugging guidance: consults
README.md - ML engineer → Testing guidance: consults
README.md - ML engineer → ML resources: consults
README.md - ML engineer → Lessons learned course: consults
README.md - ML engineer → Engineering skills: consults
README.md - Engineering insights → GPU upgrade analysis: links to
README.md - Engineering insights → GPU step benchmark: links to
README.md - Compute guidance → GPU step benchmark: links to
README.md - Orchestration guidance → SLURM guidance: links to
README.md - Training guidance → Checkpoint tools: covers
README.md - Training guidance → Fault tolerance: covers
README.md - Fault tolerance → Filesystem watchdog: includes
README.md - Debugging guidance → Python trace tool: includes
README.md - Debugging guidance → Numerical overflow debugger: includes
README.md - Debugging guidance → Synthetic data scripts: includes
README.md - Testing guidance → Testing utilities: includes
README.md