libffcv / ffcv

FFCV: Fast Forward Computer Vision (and other ML workloads!)
https://ffcv.io
Apache License 2.0
2.82k stars 178 forks source link

How to seed the PRNG such that ffcv results are reproducible? #164

Closed samuela closed 2 years ago

samuela commented 2 years ago

What random seeds do I need to set in order to ensure that I get deterministic results out of ffcv?

GuillaumeLeclerc commented 2 years ago

You need to limit your self to a single worker otherwise the scheduling randomness will vary the results. You also need to set a seed in the worker. Everything else should be considered a bug I think