How to use seed everything in version 2.1.0 for pytorch 2.0.1

Hi. I hope to reproduce another model’s result. Seems they used old version for pytorch lightning. They used seed everything function. But seems this function is no longer available in version 2.1.0. How I can fix it or replace it?

The import is still the same, and the name was never changed.

import lightning as L

L.seed_everything(5)

or

import pytorch_lightning as pl

pl.seed_everything(7)

I am not sure why you thought it was removed.

1 Like