openai / gpt-2

Code for the paper "Language Models are Unsupervised Multitask Learners"
https://openai.com/blog/better-language-models/
Other
22.57k stars 5.53k forks source link

WHEN I TRY TO TRAIN I GET THIS #292

Closed BigFatDecker closed 3 years ago

BigFatDecker commented 3 years ago

Training... Traceback (most recent call last): File "train.py", line 313, in main() File "train.py", line 291, in main feed_dict={train_context: sample_batch()}) File "train.py", line 267, in sample_batch return [datasampler.sample(1024) for in range(args.batch_size)] File "train.py", line 267, in return [datasampler.sample(1024) for in range(args.batch_size)] File "C:\Users\Nic\Documents\gpt-2\gpt-2\load_dataset.py", line 73, in sample assert length < self.total_size // len( ZeroDivisionError: integer division or modulo by zero i've sat here for over six hrs ive followed everything as closely as possible but just get error after error please help me