Skip to content

About

distributed-ml-examples example programs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Distributed ML Examples

Runnable code examples that accompany the Distributed ML Notes learning series.

Each subdirectory is a self-contained toy program with its own README.md and requirements.txt.


Examples

Directory What it covers Related notes chapter
ddp-testrun PyTorch DDP training with Ring AllReduce on MNIST Chapter 3 — Worker-Only (AllReduce)
vllm-test vLLM serving: prefill vs decode, static vs continuous batching, TTFT, KV cache / PagedAttention Prefill vs Decode
test-LoRA-SVP LoRA math (ΔW ≈ B@A) + PEFT on Qwen2.5-0.5B + SVD→LoRA intro —

How to use

Each example is standalone. Navigate into the subdirectory and follow its README:

cd ddp-testrun
pip install -r requirements.txt
python ddp_train.py

Planned examples

  • allreduce-from-scratch — Ring AllReduce implemented manually without DDP
  • dataset-loading — Distributed dataset sharding and DataLoader setup

About

distributed-ml-examples example programs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages