Key Error 'loss' while fine tuning GPT-2 with the Trainer utility

sgugger
Thu, 17 Dec 2020 15:40:02 +0000

So there is no labels, which is why it can’t train.