I'm trying to train GPT-2 to use what I provide in a text file, napoleon.txt. When I run the encoder, it seems to work from the command prompt.
python encoder.py napoleon.txt napoleon.npz
It doesn't, however, actually create napoleon.npz. But this is only part of the problem. The larger issue is that train.py, what I actually need in order to train GPT-2, spits out an error every single time.
Traceback (most recent call last):
File "train.py", line 19, in <module>
from .dataset import Corpus, EncodedDataset
ImportError: attempted relative import with no known parent package
I've tried every single solution I found on the internet and that I could think of, but I'm stuck. Please help