Repository navigation
Tested on NVIDIA L4 and H200 GPUs and against a real object store. That found one bug, fixed here. Results: benchmarks/results/2026-11-09-hf-strategies-speed/.
Fix
- TensorFlow and ONNX Runtime jobs ran on the CPU. Both install CUDA libraries with pip but do not find them, even in a plain virtualenv (TensorFlow 2.21, ONNX Runtime 1.31). On Linux a job's
LD_LIBRARY_PATHnow starts with thenvidia/*/libfolders of its own packages, then the worker's (ADR-0022). Ask fortensorflow[and-cuda]andonnxruntime-gpu[cuda,cudnn]. JAX, CuPy, TensorFlow, ONNX Runtime and Transformers all ran as jobs on an L4, and PyTorch still worked next to TensorFlow in the same process. Upgrade workers to get this fix.
Validated
- On the 4 GPUs of one machine (4× L4): FSDP (sharding strategies, activation checkpointing, CPU offload, sharded checkpoints with resume), DeepSpeed ZeRO 1 to 3 with offload, tensor parallelism, DDP communication hooks,
sync_batchnorm, manual optimization, bitsandbytes and TensorRT. Until now these ran only across machines with one T4 each. - 2× H200 with NVLink: topology (
NV18), GPU choice, NCCL, FSDP, tensor parallelism and DDP. - Notebook forks on 4 L4s: one process per GPU, the trained weights come back.
- A private Hugging Face bucket (
hf://) as the object store: checkpoints, CSV logs, resume,load_from_checkpointand two DDP processes. Not yet S3, GCS or Azure. Saving waits for the upload.
Measured against PyTorch Lightning
The GPUlayer Trainer was faster in all 14 cases: 1.04 to 1.68x on 1 to 4 L4s, and 1.10 to 2.50x on 1 and 2 H200s. Small models take a few milliseconds per step on an H200, so CPU work per step decides the result, and it varies by host: the same case gave 2.50x on one host and 1.47x on another. The overall count is now 27 of 31 GPU cases.
New
scripts/validate_object_store.py <url>.--devices Nforvalidate_parallel.py,validate_deepspeed.pyandvalidate_nccl.py.
Not covered
AMD ROCm and Ryzen AI NPUs, TPUs, and NCCL between multi-GPU machines.