gpt-2 icon indicating copy to clipboard operation
gpt-2 copied to clipboard

upgrade to TensorFlow 2

Open alexis779 opened this issue 4 years ago • 2 comments

This PR upgrades the script to work with TensorFlow 2. Main goal was to be able to run it on Google colab, which has the new version.

  • Used TensorFlow utility to generate compatible code: https://www.tensorflow.org/guide/upgrade#directory_tree

  • Replaced hyperparameters model to simply use a dictionary

alexis779 avatar Aug 23 '20 17:08 alexis779

I've copied the files from this branch locally, and still have tensorflow.contrib issues. Even tried #231. Is the fix above still working or is something missing? and when will it get merged?

gselsidi avatar Sep 16 '20 20:09 gselsidi

Should you also modify DEVELOPERS.md, to reflect the prerequisite change?

ok-cleek avatar Jun 12 '22 14:06 ok-cleek