Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting random seed when finetuning #262

Open
mesotron opened this issue Mar 13, 2021 · 0 comments
Open

Setting random seed when finetuning #262

mesotron opened this issue Mar 13, 2021 · 0 comments

Comments

@mesotron
Copy link

Is there a simple way to set the random seed to a constant at the beginning of finetuning, so that finetuning the same model on the same corpus for the same number of iterations will not result in different parameters each time? I have tried calling "tf.random.set_random_seed(0)" just before "sess = gpt2.start_tf_sess()", but that doesn't seem to have worked.

If I have to dig into the source code to do this, any tips on where/how would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant