lightly
lightly copied to clipboard
feat: Add configuration logging for benchmark reproducibility + bug fixes
Adds comprehensive configuration logging to ImageNet ResNet50 benchmarks:
- Automatically saves full resolved config to config.txt in log directory
- Captures all CLI arguments + derived values (global_batch_size, world_size, etc.)
- Includes environment info (PyTorch version, CUDA availability, timestamp)
- Optional --verbose flag to print config to console before training
- Uses only Python stdlib (no new dependencies)
Also fixes persistent_workers bug:
- Fix ValueError when num_workers=0 with persistent_workers=True
- Only enable persistent_workers when num_workers > 0
/review