Stanford CS336 Assignment 2 (Systems), implemented from scratch: FlashAttention-2 in PyTorch + Triton (fwd + two-pass bwd), DDP variants, ZeRO-1 optimizer sharding, FSDP with mixed precision, profiling/benchmark harness, full writeup
cuda pytorch transformer triton cs336 performance-benchmarking gpu-kernels distributed-training mixed-precision distributed-data-parallel fsdp llm-training flash-attention activation-checkpointing zero-optimizer
-
Updated
Sep 14, 2026 - Python