Hello,
Not sure this is a pytorch issue .Very new to this and was trying something from a Youtube video called:
AI Text and Code Generation with GPT Neo and Python | GPT3 Clone
[GitHub - nicknochnack/GPTNeo 4}
Using Jupyter Notebook
This line was run:
generator = pipeline(‘text-generation’, model=‘EleutherAI/gpt-neo-2.7B’) # Second line
OSError: Unable to load weights from pytorch checkpoint file for ‘EleutherAI/gpt-neo-2.7B’ at 'C:\Users\USER7/.cache\huggingface\transformers\0839a11efa893f2a554f8f540f904b0db0e5320a2b1612eb02c3fd25471c189a.a144c17634fa6a7823e398888396dd623e204dce9e33c3175afabfbf24bd8f56’If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.
I used something called Jupyter Notebook to execute each line
What I do not know, is where to set tf=True
This was the first line:
!pip3 install torch==1.8.1+cpu torchvision==0.9.1+cpu torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html 4
which executed OK.
Thanks,
V