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

Beginner questions

Open kangsheng11 opened this issue 4 years ago • 5 comments

ModuleNotFoundError: No module named 'tensorflow.contrib'

May I know How can I solve this issue. Thank you

kangsheng11 avatar Mar 01 '21 13:03 kangsheng11

Sounds like tensorflow versioning issues. Two options:

  1. Run tensorflow == 1.13.1 (not ANY other)
  2. Run the tensorflow updating script on all your scripts in the GPT-2 folder, place hparams in your folder, then run tensorflow == 2.2.

I have done both and am running on TF = 2.2, with Python 3.7.3

See this thread: https://github.com/openai/gpt-2/issues/265

Good luck!

DaveXanatos avatar Mar 01 '21 15:03 DaveXanatos

Sounds like tensorflow versioning issues. Two options:

  1. Run tensorflow == 1.13.1 (not ANY other)
  2. Run the tensorflow updating script on all your scripts in the GPT-2 folder, place hparams in your folder, then run tensorflow == 2.2.

I have done both and am running on TF = 2.2, with Python 3.7.3

See this thread: #265

Good luck!

okay thank you really appreciate your help and explanations

kangsheng11 avatar Mar 02 '21 12:03 kangsheng11

excuse me, sorry, but what is the update script? i couldnt find it anywhere.

xndr-code avatar Apr 28 '21 20:04 xndr-code

Hi, my name is noman. I am using this gpt2 model. I am running application on K 80 GPU server. But the compute time is almost 15 to 20 seconds. Can you help if i am using the right gpu for huggingface pretrained models or not. I have listened about nvidia A 100 GPU server. But i am not sure if there will be a difference between K80 and A100 gpu servers plus A100 is quite expensive.

bshelly-web avatar Jun 01 '21 10:06 bshelly-web